com.bulletphysics.collision.shapes
Class ByteBufferVertexData

java.lang.Object
  extended by com.bulletphysics.collision.shapes.VertexData
      extended by com.bulletphysics.collision.shapes.ByteBufferVertexData

public class ByteBufferVertexData
extends VertexData


Field Summary
 int indexCount
           
 ByteBuffer indexData
           
 int indexStride
           
 ScalarType indexType
           
 int vertexCount
           
 ByteBuffer vertexData
           
 int vertexStride
           
 ScalarType vertexType
           
 
Constructor Summary
ByteBufferVertexData()
           
 
Method Summary
 int getIndex(int idx)
           
 int getIndexCount()
           
<T extends Tuple3f>
T
getVertex(int idx, T out)
           
 int getVertexCount()
           
 void setVertex(int idx, float x, float y, float z)
           
 
Methods inherited from class com.bulletphysics.collision.shapes.VertexData
getTriangle, setVertex
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vertexData

public ByteBuffer vertexData

vertexCount

public int vertexCount

vertexStride

public int vertexStride

vertexType

public ScalarType vertexType

indexData

public ByteBuffer indexData

indexCount

public int indexCount

indexStride

public int indexStride

indexType

public ScalarType indexType
Constructor Detail

ByteBufferVertexData

public ByteBufferVertexData()
Method Detail

getVertexCount

public int getVertexCount()
Specified by:
getVertexCount in class VertexData

getIndexCount

public int getIndexCount()
Specified by:
getIndexCount in class VertexData

getVertex

public <T extends Tuple3f> T getVertex(int idx,
                                       T out)
Specified by:
getVertex in class VertexData

setVertex

public void setVertex(int idx,
                      float x,
                      float y,
                      float z)
Specified by:
setVertex in class VertexData

getIndex

public int getIndex(int idx)
Specified by:
getIndex in class VertexData