Package physx.cooking

Class PxTriangleMeshDesc


public class PxTriangleMeshDesc extends PxSimpleTriangleMesh
  • 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

      public static PxTriangleMeshDesc wrapPointer(long address)
    • arrayGet

      public static PxTriangleMeshDesc arrayGet(long baseAddress, int index)
    • 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:
      destroy in class PxSimpleTriangleMesh
    • getMaterialIndices

      public PxU16StridedData getMaterialIndices()
      Returns:
      WebIDL type: PxU16StridedData [Value]
    • setMaterialIndices

      public void setMaterialIndices(PxU16StridedData value)
      Parameters:
      value - WebIDL type: PxU16StridedData [Value]