Package physx.common

Class PxBaseFlags

java.lang.Object
physx.NativeObject
physx.common.PxBaseFlags

public class PxBaseFlags extends NativeObject
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxBaseFlags

      protected PxBaseFlags()
    • PxBaseFlags

      protected PxBaseFlags(long address)
    • PxBaseFlags

      public PxBaseFlags(short flags)
      Parameters:
      flags - WebIDL type: unsigned short
  • Method Details

    • wrapPointer

      public static PxBaseFlags wrapPointer(long address)
    • arrayGet

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

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

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

      public void destroy()
    • isSet

      public boolean isSet(PxBaseFlagEnum flag)
      Parameters:
      flag - WebIDL type: PxBaseFlagEnum [enum]
      Returns:
      WebIDL type: boolean
    • raise

      public void raise(PxBaseFlagEnum flag)
      Parameters:
      flag - WebIDL type: PxBaseFlagEnum [enum]
    • clear

      public void clear(PxBaseFlagEnum flag)
      Parameters:
      flag - WebIDL type: PxBaseFlagEnum [enum]