public class PxTriangleMeshDesc extends PxSimpleTriangleMesh
NativeObject.Allocator<T>| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF |
static int |
SIZEOF |
address, isExternallyAllocated| Modifier | Constructor and Description |
|---|---|
|
PxTriangleMeshDesc() |
protected |
PxTriangleMeshDesc(long address) |
| Modifier and Type | Method and Description |
|---|---|
static PxTriangleMeshDesc |
createAt(long address) |
static <T> PxTriangleMeshDesc |
createAt(T allocator,
NativeObject.Allocator<T> allocate) |
void |
destroy() |
PxU16StridedData |
getMaterialIndices() |
boolean |
isValid() |
void |
setMaterialIndices(PxU16StridedData value) |
void |
setToDefault() |
static PxTriangleMeshDesc |
wrapPointer(long address) |
getFlags, getPoints, getTriangles, setFlags, setPoints, setTrianglescheckNotNull, equals, getAddress, hashCodepublic static final int SIZEOF
public static final int ALIGNOF
protected PxTriangleMeshDesc(long address)
public PxTriangleMeshDesc()
public static PxTriangleMeshDesc wrapPointer(long address)
public static PxTriangleMeshDesc createAt(long address)
address - Pre-allocated memory, where the object is created.public static <T> PxTriangleMeshDesc createAt(T allocator, NativeObject.Allocator<T> allocate)
T - Allocator class, e.g. LWJGL's MemoryStack.allocator - Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.allocate - Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.public void destroy()
destroy in class PxSimpleTriangleMeshpublic PxU16StridedData getMaterialIndices()
PxU16StridedData [Value]public void setMaterialIndices(PxU16StridedData value)
value - WebIDL type: PxU16StridedData [Value]public void setToDefault()
setToDefault in class PxSimpleTriangleMeshpublic boolean isValid()
isValid in class PxSimpleTriangleMesh