public interface IsRenderable
Renderable
interface.Modifier and Type | Field and Description |
---|---|
static int |
TRANSPARENT
A rendering hint that suggests the object should be rendered with
transparency enabled
|
static int |
TWO_DIMENSIONAL
A rendering hint that suggests the object should be rendered at the
end (in the foreground), after clip planes (e.g.
|
Modifier and Type | Method and Description |
---|---|
int |
getRenderHints()
Returns a bit code giving rendering hints about this renderable.
|
void |
prerender(RenderList list)
Called prior to rendering to allow this object to update the internal
state required for rendering (such as by caching rendering coordinates).
|
void |
render(Renderer renderer,
int flags)
Render this object using the functionality of the supplied
Renderer . |
void |
updateBounds(Vector3d pmin,
Vector3d pmax)
Update the minimum and maximum points for this object.
|
static final int TRANSPARENT
static final int TWO_DIMENSIONAL
void prerender(RenderList list)
list.addIfVisible (obj);
for each of the objects in question.list
- list of objects to be renderedvoid render(Renderer renderer, int flags)
Renderer
.renderer
- provides the functionality used to perform the rendering.flags
- flags that may be used to control different
aspects of the rendering. Flags are defined in Renderer
and currently include
Renderer.HIGHLIGHT
and
Renderer.SORT_FACES
.void updateBounds(Vector3d pmin, Vector3d pmax)
pmin
- minimum pointpmax
- maximum pointint getRenderHints()
TRANSPARENT
and
TWO_DIMENSIONAL
.