Package physx.support

Class PxArray_PxU16

java.lang.Object
physx.NativeObject
physx.support.PxArray_PxU16

public class PxArray_PxU16 extends NativeObject
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxArray_PxU16

      protected PxArray_PxU16(long address)
    • PxArray_PxU16

      public PxArray_PxU16()
    • PxArray_PxU16

      public PxArray_PxU16(int size)
      Parameters:
      size - WebIDL type: unsigned long
  • Method Details

    • wrapPointer

      public static PxArray_PxU16 wrapPointer(long address)
    • arrayGet

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

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

      public static <T> PxArray_PxU16 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 PxArray_PxU16
    • createAt

      public static PxArray_PxU16 createAt(long address, int size)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      size - WebIDL type: unsigned long
      Returns:
      Stack allocated object of PxArray_PxU16
    • createAt

      public static <T> PxArray_PxU16 createAt(T allocator, NativeObject.Allocator<T> allocate, int size)
      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.
      size - WebIDL type: unsigned long
      Returns:
      Stack allocated object of PxArray_PxU16
    • destroy

      public void destroy()
    • get

      public short get(int index)
      Parameters:
      index - WebIDL type: unsigned long
      Returns:
      WebIDL type: unsigned short
    • set

      public void set(int index, short value)
      Parameters:
      index - WebIDL type: unsigned long
      value - WebIDL type: unsigned short
    • begin

      public NativeObject begin()
      Returns:
      WebIDL type: VoidPtr
    • size

      public int size()
      Returns:
      WebIDL type: unsigned long
    • pushBack

      public void pushBack(short value)
      Parameters:
      value - WebIDL type: unsigned short
    • clear

      public void clear()