crystalspace.jbind.impl.csgeom.vtpool
Class csVertexArrayPool

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.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

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csVertexArrayPool()
           
csVertexArrayPool(iPointer nPointer)
           
 
Method Summary
 void freeVertexArray(csVector3Array ar)
          Free an array of n vertices.
 csVector3Array getVertexArray(int n)
          Fetch a new array of n vertices.
protected  boolean isNativePointerValidSafe(long pointer)
           
protected  void nDelete(long pointer)
           
 
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
 

Constructor Detail

csVertexArrayPool

public csVertexArrayPool(iPointer nPointer)
Parameters:
nPointer -

csVertexArrayPool

public csVertexArrayPool()
Method Detail

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: