org.xith3d.render.jsr231
Class BoundsAtomPeer
java.lang.Object
org.xith3d.render.RenderAtomPeer
org.xith3d.render.jsr231.BoundsAtomPeer
public class BoundsAtomPeer
- extends RenderAtomPeer
The Bounds Atom peer (renders bounds around atom nodes)
|
Method Summary |
protected static int |
drawBounds(javax.media.opengl.GL gl,
org.openmali.spatial.bounds.Bounds bounds,
org.openmali.vecmath2.Colorf color,
OpenGLStatesCache statesCache)
Draws bounds around shapes as a debugging aid |
int |
renderAtom(RenderAtom<?> atom,
java.lang.Object glObj,
RenderPeer renderPeer,
OpenGLCapabilities glCaps,
View view,
RenderOptions options,
long nanoTime,
long nanoStep,
RenderPeer.RenderMode renderMode,
long frameId)
Renders the geometry of the atom. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoundsAtomPeer
public BoundsAtomPeer()
drawBounds
protected static final int drawBounds(javax.media.opengl.GL gl,
org.openmali.spatial.bounds.Bounds bounds,
org.openmali.vecmath2.Colorf color,
OpenGLStatesCache statesCache)
- Draws bounds around shapes as a debugging aid
- Parameters:
bounds -
renderAtom
public int renderAtom(RenderAtom<?> atom,
java.lang.Object glObj,
RenderPeer renderPeer,
OpenGLCapabilities glCaps,
View view,
RenderOptions options,
long nanoTime,
long nanoStep,
RenderPeer.RenderMode renderMode,
long frameId)
- Renders the geometry of the atom. It is up to the implementation to do
this as efficiently as possible.
- Specified by:
renderAtom in class RenderAtomPeer
- Parameters:
atom - the RenderAtom to renderrenderPeer - the RenderPeer to render onframeId - the current rendered frame's id
- Returns:
- the number of rendered triangles