Package physx.cooking
Class PxTriangleMeshDesc
- java.lang.Object
-
- physx.NativeObject
-
- physx.geomutils.PxSimpleTriangleMesh
-
- physx.cooking.PxTriangleMeshDesc
-
public class PxTriangleMeshDesc extends PxSimpleTriangleMesh
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T>
-
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFstatic intSIZEOF-
Fields inherited from class physx.NativeObject
address, isExternallyAllocated
-
-
Constructor Summary
Constructors Modifier Constructor Description PxTriangleMeshDesc()protectedPxTriangleMeshDesc(long address)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PxTriangleMeshDesccreateAt(long address)static <T> PxTriangleMeshDesccreateAt(T allocator, NativeObject.Allocator<T> allocate)voiddestroy()PxU16StridedDatagetMaterialIndices()booleanisValid()voidsetMaterialIndices(PxU16StridedData value)voidsetToDefault()static PxTriangleMeshDescwrapPointer(long address)-
Methods inherited from class physx.geomutils.PxSimpleTriangleMesh
getFlags, getPoints, getTriangles, setFlags, setPoints, setTriangles
-
Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
-
-
-
Field Detail
-
SIZEOF
public static final int SIZEOF
-
ALIGNOF
public static final int ALIGNOF
- See Also:
- Constant Field Values
-
-
Method Detail
-
wrapPointer
public static PxTriangleMeshDesc wrapPointer(long address)
-
createAt
public static PxTriangleMeshDesc createAt(long address)
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxTriangleMeshDesc
-
createAt
public static <T> PxTriangleMeshDesc createAt(T allocator, NativeObject.Allocator<T> allocate)
- 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
public PxU16StridedData getMaterialIndices()
- Returns:
- WebIDL type:
PxU16StridedData[Value]
-
setMaterialIndices
public void setMaterialIndices(PxU16StridedData value)
- Parameters:
value- WebIDL type:PxU16StridedData[Value]
-
setToDefault
public void setToDefault()
- Overrides:
setToDefaultin classPxSimpleTriangleMesh
-
isValid
public boolean isValid()
- Overrides:
isValidin classPxSimpleTriangleMesh- Returns:
- WebIDL type: boolean
-
-