org.jagatoo.geometry
Class GeomNioData

java.lang.Object
  extended by org.jagatoo.geometry.GeomNioData
Direct Known Subclasses:
GeomNioFloatData, GeomNioIntData

public abstract class GeomNioData
extends java.lang.Object

Base abstract class for all GeomData implementations.


Field Summary
protected  boolean dirty
           
 
Constructor Summary
GeomNioData(int maxElems, int maxSize, int elemSize, int stride, boolean reversed)
           
 
Method Summary
 int getCount()
           
 int getElemSize()
           
 int getInitialIndex()
           
 int getMaxElements()
           
 int getMaxSize()
           
 int getStride()
           
 boolean isReversed()
           
protected  void setDirty(boolean dirty)
          Used by the renderer to set the data as non-dirty, plus for any function which wishes to dirty the data.
 void start()
          Resets the buffer to zero and prepares to receive data from the various set() calls.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dirty

protected boolean dirty
Constructor Detail

GeomNioData

public GeomNioData(int maxElems,
                   int maxSize,
                   int elemSize,
                   int stride,
                   boolean reversed)
Method Detail

getMaxElements

public final int getMaxElements()

getMaxSize

public final int getMaxSize()

getElemSize

public final int getElemSize()

getStride

public final int getStride()

isReversed

public final boolean isReversed()

setDirty

protected void setDirty(boolean dirty)
Used by the renderer to set the data as non-dirty, plus for any function which wishes to dirty the data.

Parameters:
dirty -

start

public void start()
Resets the buffer to zero and prepares to receive data from the various set() calls. In some implementations this will destroy data.


getInitialIndex

public int getInitialIndex()

getCount

public int getCount()