java.lang.Object
physx.NativeObject
physx.geometry.PxSimpleTriangleMesh
physx.cooking.PxTriangleMeshDesc
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxTriangleMeshDescarrayGet(long baseAddress, int index) static PxTriangleMeshDesccreateAt(long address) static <T> PxTriangleMeshDesccreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()voidstatic PxTriangleMeshDescwrapPointer(long address) Methods inherited from class physx.geometry.PxSimpleTriangleMesh
getFlags, getPoints, getTriangles, isValid, setFlags, setPoints, setToDefault, setTrianglesMethods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxTriangleMeshDesc
protected PxTriangleMeshDesc(long address) -
PxTriangleMeshDesc
public PxTriangleMeshDesc()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxTriangleMeshDesc
-
createAt
- Type Parameters:
T- Allocator class, e.g. LWJGL's MemoryStack.- Parameters:
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.- Returns:
- Stack allocated object of PxTriangleMeshDesc
-
destroy
public void destroy()- Overrides:
destroyin classPxSimpleTriangleMesh
-
getMaterialIndices
- Returns:
- WebIDL type:
PxU16StridedData[Value]
-
setMaterialIndices
- Parameters:
value- WebIDL type:PxU16StridedData[Value]
-