crystalspace.jbind.impl.video.vbufmgr
Class csVertexBuffer

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csutil.scf.csBase
          extended bycrystalspace.jbind.impl.video.vbufmgr.csVertexBuffer
All Implemented Interfaces:
iBase, iPointer, iVertexBuffer

public class csVertexBuffer
extends csBase
implements iVertexBuffer

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csVertexBuffer(iPointer nPointer)
           
 
Method Summary
 csBox3 getBoundingBox()
          Get a bounding box for all the vertices.
 csColor[] getColors()
          Get the current array of colors.
 java.lang.String getName()
          Return the name of the interface
 int getPriority()
          Get the priority.
 csVector2[] getTexels()
          Get the current array of texels.
 float[] getUserArray(int index)
          Get all of the current user arrays.
 int getUserArrayComponentCount(int index)
          Get the number of components of one of the current user arrays.
 int getVersion()
          Return the version of the interface
 int getVertexCount()
          Get the number of vertices.
 csVector3[] getVertices()
          Get the current array of vertices.
 boolean isLocked()
          Check if the buffer is locked.
protected  boolean isNativePointerValidSafe(long pointer)
           
 
Methods inherited from class crystalspace.jbind.impl.csutil.scf.csBase
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe
 
Methods inherited from class crystalspace.jbind.impl.csNativeObject
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe
 
Methods inherited from interface crystalspace.jbind.interfaces.iPointer
changePointer, getPointer, isMemoryOwner, setMemoryOwner
 

Constructor Detail

csVertexBuffer

public csVertexBuffer(iPointer nPointer)
Parameters:
nPointer -
Method Detail

getVersion

public int getVersion()
Description copied from interface: iBase
Return the version of the interface

Specified by:
getVersion in interface iBase
Specified by:
getVersion in class csBase
See Also:
iBase.getVersion()

getName

public java.lang.String getName()
Description copied from interface: iBase
Return the name of the interface

Specified by:
getName in interface iBase
Specified by:
getName in class csBase
See Also:
iBase.getName()

isNativePointerValidSafe

protected boolean isNativePointerValidSafe(long pointer)
Specified by:
isNativePointerValidSafe in class csNativeObject
See Also:
csNativeObject.isNativePointerValidSafe(long)

getBoundingBox

public csBox3 getBoundingBox()
Description copied from interface: iVertexBuffer
Get a bounding box for all the vertices.

Specified by:
getBoundingBox in interface iVertexBuffer
Returns:
See Also:
iVertexBuffer.getBoundingBox()

getColors

public csColor[] getColors()
Description copied from interface: iVertexBuffer
Get the current array of colors.

Specified by:
getColors in interface iVertexBuffer
Returns:
See Also:
iVertexBuffer.getColors()

getPriority

public int getPriority()
Description copied from interface: iVertexBuffer
Get the priority.

Specified by:
getPriority in interface iVertexBuffer
Returns:
See Also:
iVertexBuffer.getPriority()

getTexels

public csVector2[] getTexels()
Description copied from interface: iVertexBuffer
Get the current array of texels.

Specified by:
getTexels in interface iVertexBuffer
Returns:
See Also:
iVertexBuffer.getTexels()

getUserArray

public float[] getUserArray(int index)
Description copied from interface: iVertexBuffer
Get all of the current user arrays.

Specified by:
getUserArray in interface iVertexBuffer
Parameters:
index -
Returns:
See Also:
iVertexBuffer.getUserArray(int)

getUserArrayComponentCount

public int getUserArrayComponentCount(int index)
Description copied from interface: iVertexBuffer
Get the number of components of one of the current user arrays.

Specified by:
getUserArrayComponentCount in interface iVertexBuffer
Parameters:
index -
Returns:
See Also:
iVertexBuffer.getUserArrayComponentCount(int)

getVertexCount

public int getVertexCount()
Description copied from interface: iVertexBuffer
Get the number of vertices.

Specified by:
getVertexCount in interface iVertexBuffer
Returns:
See Also:
iVertexBuffer.getVertexCount()

getVertices

public csVector3[] getVertices()
Description copied from interface: iVertexBuffer
Get the current array of vertices.

Specified by:
getVertices in interface iVertexBuffer
Returns:
See Also:
iVertexBuffer.getVertices()

isLocked

public boolean isLocked()
Description copied from interface: iVertexBuffer
Check if the buffer is locked.

Specified by:
isLocked in interface iVertexBuffer
Returns:
See Also:
iVertexBuffer.isLocked()