public abstract class IsRenderableBase extends java.lang.Object implements IsRenderable
TRANSPARENT, TWO_DIMENSIONAL| Constructor and Description |
|---|
IsRenderableBase() |
| 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).
|
abstract 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.
|
public void prerender(RenderList list)
list.addIfVisible (obj);
for each of the objects in question.prerender in interface IsRenderablelist - list of objects to be renderedpublic abstract void render(Renderer renderer, int flags)
Renderer.render in interface IsRenderablerenderer - 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.public void updateBounds(Vector3d pmin, Vector3d pmax)
updateBounds in interface IsRenderablepmin - minimum pointpmax - maximum pointpublic int getRenderHints()
TRANSPARENT and
TWO_DIMENSIONAL.getRenderHints in interface IsRenderable