org.xith3d.render.lwjgl
Class BoundsAtomPeer

java.lang.Object
  extended by org.xith3d.render.RenderAtomPeer
      extended by org.xith3d.render.lwjgl.BoundsAtomPeer

public class BoundsAtomPeer
extends RenderAtomPeer

Insert package comments here


Constructor Summary
BoundsAtomPeer()
           
 
Method Summary
protected static int drawBounds(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
 

Constructor Detail

BoundsAtomPeer

public BoundsAtomPeer()
Method Detail

drawBounds

protected static final int drawBounds(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 render
renderPeer - the RenderPeer to render on
frameId - the current rendered frame's id
Returns:
the number of rendered triangles