@NoOffset @Properties(inherit=BulletCollision.class) public class btTriangleIndexVertexArray extends btStridingMeshInterface
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
btTriangleIndexVertexArray() |
btTriangleIndexVertexArray(int numTriangles,
int[] triangleIndexBase,
int triangleIndexStride,
int numVertices,
double[] vertexBase,
int vertexStride) |
btTriangleIndexVertexArray(int numTriangles,
IntBuffer triangleIndexBase,
int triangleIndexStride,
int numVertices,
DoubleBuffer vertexBase,
int vertexStride) |
btTriangleIndexVertexArray(int numTriangles,
IntPointer triangleIndexBase,
int triangleIndexStride,
int numVertices,
DoublePointer vertexBase,
int vertexStride) |
btTriangleIndexVertexArray(long size)
Native array allocator.
|
btTriangleIndexVertexArray(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addIndexedMesh(btIndexedMesh mesh) |
void |
addIndexedMesh(btIndexedMesh mesh,
int indexType) |
btIndexedMeshArray |
getIndexedMeshArray() |
void |
getLockedReadOnlyVertexIndexBase(byte[] vertexbase,
int[] numverts,
int[] type,
int[] vertexStride,
byte[] indexbase,
int[] indexstride,
int[] numfaces,
int[] indicestype) |
void |
getLockedReadOnlyVertexIndexBase(byte[] vertexbase,
int[] numverts,
int[] type,
int[] vertexStride,
byte[] indexbase,
int[] indexstride,
int[] numfaces,
int[] indicestype,
int subpart) |
void |
getLockedReadOnlyVertexIndexBase(ByteBuffer vertexbase,
IntBuffer numverts,
IntBuffer type,
IntBuffer vertexStride,
ByteBuffer indexbase,
IntBuffer indexstride,
IntBuffer numfaces,
IntBuffer indicestype) |
void |
getLockedReadOnlyVertexIndexBase(ByteBuffer vertexbase,
IntBuffer numverts,
IntBuffer type,
IntBuffer vertexStride,
ByteBuffer indexbase,
IntBuffer indexstride,
IntBuffer numfaces,
IntBuffer indicestype,
int subpart) |
void |
getLockedReadOnlyVertexIndexBase(BytePointer vertexbase,
IntPointer numverts,
IntPointer type,
IntPointer vertexStride,
BytePointer indexbase,
IntPointer indexstride,
IntPointer numfaces,
IntPointer indicestype) |
void |
getLockedReadOnlyVertexIndexBase(BytePointer vertexbase,
IntPointer numverts,
IntPointer type,
IntPointer vertexStride,
BytePointer indexbase,
IntPointer indexstride,
IntPointer numfaces,
IntPointer indicestype,
int subpart) |
void |
getLockedReadOnlyVertexIndexBase(PointerPointer vertexbase,
IntPointer numverts,
IntPointer type,
IntPointer vertexStride,
PointerPointer indexbase,
IntPointer indexstride,
IntPointer numfaces,
IntPointer indicestype,
int subpart) |
void |
getLockedVertexIndexBase(byte[] vertexbase,
int[] numverts,
int[] type,
int[] vertexStride,
byte[] indexbase,
int[] indexstride,
int[] numfaces,
int[] indicestype) |
void |
getLockedVertexIndexBase(byte[] vertexbase,
int[] numverts,
int[] type,
int[] vertexStride,
byte[] indexbase,
int[] indexstride,
int[] numfaces,
int[] indicestype,
int subpart) |
void |
getLockedVertexIndexBase(ByteBuffer vertexbase,
IntBuffer numverts,
IntBuffer type,
IntBuffer vertexStride,
ByteBuffer indexbase,
IntBuffer indexstride,
IntBuffer numfaces,
IntBuffer indicestype) |
void |
getLockedVertexIndexBase(ByteBuffer vertexbase,
IntBuffer numverts,
IntBuffer type,
IntBuffer vertexStride,
ByteBuffer indexbase,
IntBuffer indexstride,
IntBuffer numfaces,
IntBuffer indicestype,
int subpart) |
void |
getLockedVertexIndexBase(BytePointer vertexbase,
IntPointer numverts,
IntPointer type,
IntPointer vertexStride,
BytePointer indexbase,
IntPointer indexstride,
IntPointer numfaces,
IntPointer indicestype) |
void |
getLockedVertexIndexBase(BytePointer vertexbase,
IntPointer numverts,
IntPointer type,
IntPointer vertexStride,
BytePointer indexbase,
IntPointer indexstride,
IntPointer numfaces,
IntPointer indicestype,
int subpart) |
void |
getLockedVertexIndexBase(PointerPointer vertexbase,
IntPointer numverts,
IntPointer type,
IntPointer vertexStride,
PointerPointer indexbase,
IntPointer indexstride,
IntPointer numfaces,
IntPointer indicestype,
int subpart)
get read and write access to a subpart of a triangle mesh
this subpart has a continuous array of vertices and indices
in this way the mesh can be handled as chunks of memory with striding
very similar to OpenGL vertexarray support
make a call to unLockVertexBase when the read and write access is finished
|
int |
getNumSubParts()
getNumSubParts returns the number of separate subparts
each subpart has a continuous array of vertices and indices
|
btTriangleIndexVertexArray |
getPointer(long i) |
void |
getPremadeAabb(btVector3 aabbMin,
btVector3 aabbMax) |
boolean |
hasPremadeAabb() |
btTriangleIndexVertexArray |
position(long position) |
void |
preallocateIndices(int numindices) |
void |
preallocateVertices(int numverts) |
void |
setPremadeAabb(btVector3 aabbMin,
btVector3 aabbMax) |
void |
unLockReadOnlyVertexBase(int subpart) |
void |
unLockVertexBase(int subpart)
unLockVertexBase finishes the access to a subpart of the triangle mesh
make a call to unLockVertexBase when the read and write access (using getLockedVertexIndexBase) is finished
|
calculateAabbBruteForce, calculateSerializeBufferSize, getScaling, InternalProcessAllTriangles, serialize, setScaling
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public btTriangleIndexVertexArray(Pointer p)
Pointer(Pointer)
.public btTriangleIndexVertexArray(long size)
Pointer.position(long)
.public btTriangleIndexVertexArray()
public btTriangleIndexVertexArray(int numTriangles, IntPointer triangleIndexBase, int triangleIndexStride, int numVertices, @Cast(value="btScalar*") DoublePointer vertexBase, int vertexStride)
public btTriangleIndexVertexArray(int numTriangles, IntBuffer triangleIndexBase, int triangleIndexStride, int numVertices, @Cast(value="btScalar*") DoubleBuffer vertexBase, int vertexStride)
public btTriangleIndexVertexArray position(long position)
public btTriangleIndexVertexArray getPointer(long i)
getPointer
in class Pointer
public void addIndexedMesh(@Const @ByRef btIndexedMesh mesh, @Cast(value="PHY_ScalarType") int indexType)
public void addIndexedMesh(@Const @ByRef btIndexedMesh mesh)
public void getLockedVertexIndexBase(@Cast(value="unsigned char**") PointerPointer vertexbase, @ByRef IntPointer numverts, @Cast(value="PHY_ScalarType*") @ByRef IntPointer type, @ByRef IntPointer vertexStride, @Cast(value="unsigned char**") PointerPointer indexbase, @ByRef IntPointer indexstride, @ByRef IntPointer numfaces, @Cast(value="PHY_ScalarType*") @ByRef IntPointer indicestype, int subpart)
btStridingMeshInterface
getLockedVertexIndexBase
in class btStridingMeshInterface
public void getLockedVertexIndexBase(@Cast(value="unsigned char**") @ByPtrPtr BytePointer vertexbase, @ByRef IntPointer numverts, @Cast(value="PHY_ScalarType*") @ByRef IntPointer type, @ByRef IntPointer vertexStride, @Cast(value="unsigned char**") @ByPtrPtr BytePointer indexbase, @ByRef IntPointer indexstride, @ByRef IntPointer numfaces, @Cast(value="PHY_ScalarType*") @ByRef IntPointer indicestype)
getLockedVertexIndexBase
in class btStridingMeshInterface
public void getLockedVertexIndexBase(@Cast(value="unsigned char**") @ByPtrPtr BytePointer vertexbase, @ByRef IntPointer numverts, @Cast(value="PHY_ScalarType*") @ByRef IntPointer type, @ByRef IntPointer vertexStride, @Cast(value="unsigned char**") @ByPtrPtr BytePointer indexbase, @ByRef IntPointer indexstride, @ByRef IntPointer numfaces, @Cast(value="PHY_ScalarType*") @ByRef IntPointer indicestype, int subpart)
getLockedVertexIndexBase
in class btStridingMeshInterface
public void getLockedVertexIndexBase(@Cast(value="unsigned char**") @ByPtrPtr ByteBuffer vertexbase, @ByRef IntBuffer numverts, @Cast(value="PHY_ScalarType*") @ByRef IntBuffer type, @ByRef IntBuffer vertexStride, @Cast(value="unsigned char**") @ByPtrPtr ByteBuffer indexbase, @ByRef IntBuffer indexstride, @ByRef IntBuffer numfaces, @Cast(value="PHY_ScalarType*") @ByRef IntBuffer indicestype, int subpart)
getLockedVertexIndexBase
in class btStridingMeshInterface
public void getLockedVertexIndexBase(@Cast(value="unsigned char**") @ByPtrPtr ByteBuffer vertexbase, @ByRef IntBuffer numverts, @Cast(value="PHY_ScalarType*") @ByRef IntBuffer type, @ByRef IntBuffer vertexStride, @Cast(value="unsigned char**") @ByPtrPtr ByteBuffer indexbase, @ByRef IntBuffer indexstride, @ByRef IntBuffer numfaces, @Cast(value="PHY_ScalarType*") @ByRef IntBuffer indicestype)
getLockedVertexIndexBase
in class btStridingMeshInterface
public void getLockedVertexIndexBase(@Cast(value="unsigned char**") @ByPtrPtr byte[] vertexbase, @ByRef int[] numverts, @Cast(value="PHY_ScalarType*") @ByRef int[] type, @ByRef int[] vertexStride, @Cast(value="unsigned char**") @ByPtrPtr byte[] indexbase, @ByRef int[] indexstride, @ByRef int[] numfaces, @Cast(value="PHY_ScalarType*") @ByRef int[] indicestype, int subpart)
getLockedVertexIndexBase
in class btStridingMeshInterface
public void getLockedVertexIndexBase(@Cast(value="unsigned char**") @ByPtrPtr byte[] vertexbase, @ByRef int[] numverts, @Cast(value="PHY_ScalarType*") @ByRef int[] type, @ByRef int[] vertexStride, @Cast(value="unsigned char**") @ByPtrPtr byte[] indexbase, @ByRef int[] indexstride, @ByRef int[] numfaces, @Cast(value="PHY_ScalarType*") @ByRef int[] indicestype)
getLockedVertexIndexBase
in class btStridingMeshInterface
public void getLockedReadOnlyVertexIndexBase(@Cast(value="const unsigned char**") PointerPointer vertexbase, @ByRef IntPointer numverts, @Cast(value="PHY_ScalarType*") @ByRef IntPointer type, @ByRef IntPointer vertexStride, @Cast(value="const unsigned char**") PointerPointer indexbase, @ByRef IntPointer indexstride, @ByRef IntPointer numfaces, @Cast(value="PHY_ScalarType*") @ByRef IntPointer indicestype, int subpart)
getLockedReadOnlyVertexIndexBase
in class btStridingMeshInterface
public void getLockedReadOnlyVertexIndexBase(@Cast(value="const unsigned char**") @ByPtrPtr BytePointer vertexbase, @ByRef IntPointer numverts, @Cast(value="PHY_ScalarType*") @ByRef IntPointer type, @ByRef IntPointer vertexStride, @Cast(value="const unsigned char**") @ByPtrPtr BytePointer indexbase, @ByRef IntPointer indexstride, @ByRef IntPointer numfaces, @Cast(value="PHY_ScalarType*") @ByRef IntPointer indicestype)
getLockedReadOnlyVertexIndexBase
in class btStridingMeshInterface
public void getLockedReadOnlyVertexIndexBase(@Cast(value="const unsigned char**") @ByPtrPtr BytePointer vertexbase, @ByRef IntPointer numverts, @Cast(value="PHY_ScalarType*") @ByRef IntPointer type, @ByRef IntPointer vertexStride, @Cast(value="const unsigned char**") @ByPtrPtr BytePointer indexbase, @ByRef IntPointer indexstride, @ByRef IntPointer numfaces, @Cast(value="PHY_ScalarType*") @ByRef IntPointer indicestype, int subpart)
getLockedReadOnlyVertexIndexBase
in class btStridingMeshInterface
public void getLockedReadOnlyVertexIndexBase(@Cast(value="const unsigned char**") @ByPtrPtr ByteBuffer vertexbase, @ByRef IntBuffer numverts, @Cast(value="PHY_ScalarType*") @ByRef IntBuffer type, @ByRef IntBuffer vertexStride, @Cast(value="const unsigned char**") @ByPtrPtr ByteBuffer indexbase, @ByRef IntBuffer indexstride, @ByRef IntBuffer numfaces, @Cast(value="PHY_ScalarType*") @ByRef IntBuffer indicestype, int subpart)
getLockedReadOnlyVertexIndexBase
in class btStridingMeshInterface
public void getLockedReadOnlyVertexIndexBase(@Cast(value="const unsigned char**") @ByPtrPtr ByteBuffer vertexbase, @ByRef IntBuffer numverts, @Cast(value="PHY_ScalarType*") @ByRef IntBuffer type, @ByRef IntBuffer vertexStride, @Cast(value="const unsigned char**") @ByPtrPtr ByteBuffer indexbase, @ByRef IntBuffer indexstride, @ByRef IntBuffer numfaces, @Cast(value="PHY_ScalarType*") @ByRef IntBuffer indicestype)
getLockedReadOnlyVertexIndexBase
in class btStridingMeshInterface
public void getLockedReadOnlyVertexIndexBase(@Cast(value="const unsigned char**") @ByPtrPtr byte[] vertexbase, @ByRef int[] numverts, @Cast(value="PHY_ScalarType*") @ByRef int[] type, @ByRef int[] vertexStride, @Cast(value="const unsigned char**") @ByPtrPtr byte[] indexbase, @ByRef int[] indexstride, @ByRef int[] numfaces, @Cast(value="PHY_ScalarType*") @ByRef int[] indicestype, int subpart)
getLockedReadOnlyVertexIndexBase
in class btStridingMeshInterface
public void getLockedReadOnlyVertexIndexBase(@Cast(value="const unsigned char**") @ByPtrPtr byte[] vertexbase, @ByRef int[] numverts, @Cast(value="PHY_ScalarType*") @ByRef int[] type, @ByRef int[] vertexStride, @Cast(value="const unsigned char**") @ByPtrPtr byte[] indexbase, @ByRef int[] indexstride, @ByRef int[] numfaces, @Cast(value="PHY_ScalarType*") @ByRef int[] indicestype)
getLockedReadOnlyVertexIndexBase
in class btStridingMeshInterface
public void unLockVertexBase(int subpart)
unLockVertexBase
in class btStridingMeshInterface
public void unLockReadOnlyVertexBase(int subpart)
unLockReadOnlyVertexBase
in class btStridingMeshInterface
public int getNumSubParts()
getNumSubParts
in class btStridingMeshInterface
@Cast(value="IndexedMeshArray*") @ByRef public btIndexedMeshArray getIndexedMeshArray()
public void preallocateVertices(int numverts)
preallocateVertices
in class btStridingMeshInterface
public void preallocateIndices(int numindices)
preallocateIndices
in class btStridingMeshInterface
@Cast(value="bool") public boolean hasPremadeAabb()
hasPremadeAabb
in class btStridingMeshInterface
public void setPremadeAabb(@Const @ByRef btVector3 aabbMin, @Const @ByRef btVector3 aabbMax)
setPremadeAabb
in class btStridingMeshInterface
public void getPremadeAabb(btVector3 aabbMin, btVector3 aabbMax)
getPremadeAabb
in class btStridingMeshInterface
Copyright © 2024. All rights reserved.