crystalspace.jbind.impl.csgeom.vtpool
Class csVertexArrayPool
java.lang.Object
crystalspace.jbind.impl.csNativeObject
crystalspace.jbind.impl.csgeom.vtpool.csVertexArrayPool
- All Implemented Interfaces:
- iPointer
- public class csVertexArrayPool
- extends csNativeObject
This is a generalized vertex array pool. Use this to obtain vertex arrays of
some length. This is an abstract class.
- Author:
- Java wrapper - Quentin Anciaux, c++ version -
http://crystal.sourceforge.net/docs/online/pubapi/classcsVertexArrayPool.php
Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, equals, finalize, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
csVertexArrayPool
public csVertexArrayPool(iPointer nPointer)
- Parameters:
nPointer
-
csVertexArrayPool
public csVertexArrayPool()
nDelete
protected void nDelete(long pointer)
- Specified by:
nDelete
in class csNativeObject
- See Also:
csNativeObject.nDelete(long)
isNativePointerValidSafe
protected boolean isNativePointerValidSafe(long pointer)
- Specified by:
isNativePointerValidSafe
in class csNativeObject
- See Also:
csNativeObject.isNativePointerValidSafe(long)
freeVertexArray
public void freeVertexArray(csVector3Array ar)
- Free an array of n vertices. Implementations of FreeVertexArray() are
guaranteed to check if 'ar' == 0 and do nothing in that case. Implemented
in csDefaultVertexArrayPool, csStackedVertexArrayPool, and
csPooledVertexArrayPool.
- Parameters:
ar
-
getVertexArray
public csVector3Array getVertexArray(int n)
- Fetch a new array of n vertices. Return 0 on failure. Implemented in
csDefaultVertexArrayPool, csStackedVertexArrayPool, and
csPooledVertexArrayPool.
- Parameters:
n
-
- Returns: