public class btIndexedMesh extends BulletBase
| Modifier and Type | Field and Description |
|---|---|
Object |
tag
The tag to identify this btIndexedMesh, may be null.
|
className| Constructor and Description |
|---|
btIndexedMesh() |
btIndexedMesh(FloatBuffer vertices,
int sizeInBytesOfEachVertex,
int vertexCount,
int positionOffsetInBytes,
ShortBuffer indices,
int indexOffset,
int indexCount)
Construct a new btIndexedMesh based on the supplied vertex and index data.
|
btIndexedMesh(long cPtr,
boolean cMemoryOwn)
Construct a new btIndexedMesh, normally you should not need this constructor it's intended for low-level usage.
|
btIndexedMesh(Mesh mesh)
Construct a new btIndexedMesh based on the supplied
Mesh
The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh. |
btIndexedMesh(Mesh mesh,
int offset,
int count)
Construct a new btIndexedMesh based on the supplied
Mesh
The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh. |
btIndexedMesh(MeshPart meshPart)
Construct a new btIndexedMesh based on the supplied
MeshPart
The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh. |
| Modifier and Type | Method and Description |
|---|---|
static long |
getCPtr(btIndexedMesh obj) |
int |
getIndexType() |
int |
getNumTriangles() |
int |
getNumVertices() |
ByteBuffer |
getTriangleIndexBase() |
int |
getTriangleIndexStride() |
ByteBuffer |
getVertexBase() |
int |
getVertexStride() |
int |
getVertexType() |
static btIndexedMesh |
obtain(MeshPart meshPart)
Create or reuse a btIndexedMesh instance based on the specified
MeshPart. |
static btIndexedMesh |
obtain(Object tag,
FloatBuffer vertices,
int sizeInBytesOfEachVertex,
int vertexCount,
int positionOffsetInBytes,
ShortBuffer indices,
int indexOffset,
int indexCount)
Create or reuse a btIndexedMesh instance based on the specified tag.
|
void |
operatorDelete(long ptr) |
void |
operatorDelete(long arg0,
long arg1) |
void |
operatorDeleteArray(long ptr) |
void |
operatorDeleteArray(long arg0,
long arg1) |
long |
operatorNew(long sizeInBytes) |
long |
operatorNew(long arg0,
long ptr) |
long |
operatorNewArray(long sizeInBytes) |
long |
operatorNewArray(long arg0,
long ptr) |
void |
set(FloatBuffer vertices,
int sizeInBytesOfEachVertex,
int vertexCount,
int positionOffsetInBytes,
ShortBuffer indices,
int indexOffset,
int indexCount)
Convenience method to set this btIndexedMesh to the specified vertex and index data.
|
void |
set(Mesh mesh)
Convenience method to set this btIndexedMesh to the specified
Mesh
The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh. |
void |
set(Mesh mesh,
int offset,
int count)
Convenience method to set this btIndexedMesh to the specified
Mesh
The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh. |
void |
set(MeshPart meshPart)
Convenience method to set this btIndexedMesh to the specified
MeshPart
The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh. |
void |
set(Object tag,
FloatBuffer vertices,
int sizeInBytesOfEachVertex,
int vertexCount,
int positionOffsetInBytes,
ShortBuffer indices,
int indexOffset,
int indexCount)
Convenience method to set this btIndexedMesh to the specified vertex and index data.
|
void |
set(Object tag,
Mesh mesh)
Convenience method to set this btIndexedMesh to the specified
Mesh
The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh. |
void |
set(Object tag,
Mesh mesh,
int offset,
int count)
Convenience method to set this btIndexedMesh to the specified
Mesh
The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh. |
void |
setIndexType(int value) |
void |
setIndices(ShortBuffer indices,
int indexOffset,
int indexCount) |
void |
setNumTriangles(int value) |
void |
setNumVertices(int value) |
void |
setTriangleIndexBase(ByteBuffer value) |
void |
setTriangleIndexBase(ShortBuffer data) |
void |
setTriangleIndexStride(int value) |
void |
setVertexBase(ByteBuffer value) |
void |
setVertexBase(FloatBuffer data) |
void |
setVertexStride(int value) |
void |
setVertexType(int value) |
void |
setVertices(FloatBuffer vertices,
int sizeInBytesOfEachVertex,
int vertexCount,
int positionOffsetInBytes) |
dispose, equals, getCPointer, hashCode, hasOwnership, isDisposed, isObtained, obtain, release, releaseOwnership, takeOwnership, toStringpublic Object tag
public btIndexedMesh(long cPtr,
boolean cMemoryOwn)
public btIndexedMesh(Mesh mesh)
Mesh
The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh.
The buffers for the vertices and indices are shared amonst both.public btIndexedMesh(MeshPart meshPart)
MeshPart
The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh.
The buffers for the vertices and indices are shared amonst both.public btIndexedMesh(Mesh mesh, int offset, int count)
Mesh
The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh.
The buffers for the vertices and indices are shared amonst both.public btIndexedMesh(FloatBuffer vertices, int sizeInBytesOfEachVertex, int vertexCount, int positionOffsetInBytes, ShortBuffer indices, int indexOffset, int indexCount)
public btIndexedMesh()
public static long getCPtr(btIndexedMesh obj)
public static btIndexedMesh obtain(MeshPart meshPart)
MeshPart.
Use BulletBase.release() to release the mesh when it's no longer needed.public static btIndexedMesh obtain(Object tag, FloatBuffer vertices, int sizeInBytesOfEachVertex, int vertexCount, int positionOffsetInBytes, ShortBuffer indices, int indexOffset, int indexCount)
BulletBase.release() to release the mesh when it's no longer needed.public void set(Mesh mesh)
Mesh
The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh.
The buffers for the vertices and indices are shared amonst both.public void set(Object tag, Mesh mesh)
Mesh
The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh.
The buffers for the vertices and indices are shared amonst both.public void set(MeshPart meshPart)
MeshPart
The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh.
The buffers for the vertices and indices are shared amonst both.public void set(Mesh mesh, int offset, int count)
Mesh
The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh.
The buffers for the vertices and indices are shared amonst both.public void set(Object tag, Mesh mesh, int offset, int count)
Mesh
The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh.
The buffers for the vertices and indices are shared amonst both.public void set(FloatBuffer vertices, int sizeInBytesOfEachVertex, int vertexCount, int positionOffsetInBytes, ShortBuffer indices, int indexOffset, int indexCount)
public void set(Object tag, FloatBuffer vertices, int sizeInBytesOfEachVertex, int vertexCount, int positionOffsetInBytes, ShortBuffer indices, int indexOffset, int indexCount)
public long operatorNew(long sizeInBytes)
public void operatorDelete(long ptr)
public long operatorNew(long arg0,
long ptr)
public void operatorDelete(long arg0,
long arg1)
public long operatorNewArray(long sizeInBytes)
public void operatorDeleteArray(long ptr)
public long operatorNewArray(long arg0,
long ptr)
public void operatorDeleteArray(long arg0,
long arg1)
public void setNumTriangles(int value)
public int getNumTriangles()
public void setTriangleIndexBase(ByteBuffer value)
public ByteBuffer getTriangleIndexBase()
public void setTriangleIndexStride(int value)
public int getTriangleIndexStride()
public void setNumVertices(int value)
public int getNumVertices()
public void setVertexBase(ByteBuffer value)
public ByteBuffer getVertexBase()
public void setVertexStride(int value)
public int getVertexStride()
public void setIndexType(int value)
public int getIndexType()
public void setVertexType(int value)
public int getVertexType()
public void setTriangleIndexBase(ShortBuffer data)
public void setVertexBase(FloatBuffer data)
public void setVertices(FloatBuffer vertices, int sizeInBytesOfEachVertex, int vertexCount, int positionOffsetInBytes)
public void setIndices(ShortBuffer indices, int indexOffset, int indexCount)
Copyright © 2021. All rights reserved.