org.jagatoo.geometry
Class GeomNioData
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dirty
protected boolean dirty
GeomNioData
public GeomNioData(int maxElems,
int maxSize,
int elemSize,
int stride,
boolean reversed)
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()