org.xith3d.render
Class RenderAtomPeer

java.lang.Object
  extended by org.xith3d.render.RenderAtomPeer
Direct Known Subclasses:
BoundsAtomPeer, BoundsAtomPeer, ShapeAtomPeer, ShapeAtomPeer

public abstract class RenderAtomPeer
extends java.lang.Object


Constructor Summary
RenderAtomPeer()
           
 
Method Summary
abstract  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

RenderAtomPeer

public RenderAtomPeer()
Method Detail

renderAtom

public abstract 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.

Parameters:
atom - the RenderAtom to render
glObj -
renderPeer - the RenderPeer to render on
glCaps -
view -
options -
nanoTime -
nanoStep -
renderMode -
frameId - the current rendered frame's id
Returns:
the number of rendered triangles