com.bulletphysics.collision.shapes
Class IndexedMesh

java.lang.Object
  extended by com.bulletphysics.collision.shapes.IndexedMesh

public class IndexedMesh
extends Object

IndexedMesh indexes into existing vertex and index arrays, in a similar way to OpenGL's glDrawElements. Instead of the number of indices, we pass the number of triangles.


Field Summary
 ScalarType indexType
           
 int numTriangles
           
 int numVertices
           
 ByteBuffer triangleIndexBase
           
 int triangleIndexStride
           
 ByteBuffer vertexBase
           
 int vertexStride
           
 
Constructor Summary
IndexedMesh()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numTriangles

public int numTriangles

triangleIndexBase

public ByteBuffer triangleIndexBase

triangleIndexStride

public int triangleIndexStride

numVertices

public int numVertices

vertexBase

public ByteBuffer vertexBase

vertexStride

public int vertexStride

indexType

public ScalarType indexType
Constructor Detail

IndexedMesh

public IndexedMesh()