Package physx.common

Class PxBoundedData


public class PxBoundedData extends PxStridedData
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxBoundedData

      protected PxBoundedData(long address)
    • PxBoundedData

      public PxBoundedData()
  • Method Details

    • wrapPointer

      public static PxBoundedData wrapPointer(long address)
    • arrayGet

      public static PxBoundedData arrayGet(long baseAddress, int index)
    • createAt

      public static PxBoundedData createAt(long address)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      Returns:
      Stack allocated object of PxBoundedData
    • createAt

      public static <T> PxBoundedData 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 PxBoundedData
    • destroy

      public void destroy()
      Overrides:
      destroy in class PxStridedData
    • getCount

      public int getCount()
      Returns:
      WebIDL type: unsigned long
    • setCount

      public void setCount(int value)
      Parameters:
      value - WebIDL type: unsigned long