Class XrSystemTrackingProperties

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrSystemTrackingProperties>
org.lwjgl.openxr.XrSystemTrackingProperties
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrSystemTrackingProperties extends org.lwjgl.system.Struct<XrSystemTrackingProperties> implements org.lwjgl.system.NativeResource
Tracking-related properties of a particular system.
See Also

XrSystemGraphicsProperties, XrSystemProperties, GetSystem, GetSystemProperties

Layout


 struct XrSystemTrackingProperties {
     XrBool32 orientationTracking();
     XrBool32 positionTracking();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • ORIENTATIONTRACKING

      public static final int ORIENTATIONTRACKING
      The struct member offsets.
    • POSITIONTRACKING

      public static final int POSITIONTRACKING
      The struct member offsets.
  • Constructor Details

    • XrSystemTrackingProperties

      public XrSystemTrackingProperties(ByteBuffer container)
      Creates a XrSystemTrackingProperties instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<XrSystemTrackingProperties>
    • orientationTracking

      public boolean orientationTracking()
      set to TRUE to indicate the system supports orientational tracking of the view pose(s), FALSE otherwise.
    • positionTracking

      public boolean positionTracking()
      set to TRUE to indicate the system supports positional tracking of the view pose(s), FALSE otherwise.
    • orientationTracking

      public XrSystemTrackingProperties orientationTracking(boolean value)
      Sets the specified value to the orientationTracking() field.
    • positionTracking

      public XrSystemTrackingProperties positionTracking(boolean value)
      Sets the specified value to the positionTracking() field.
    • set

      public XrSystemTrackingProperties set(boolean orientationTracking, boolean positionTracking)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static XrSystemTrackingProperties malloc()
      Returns a new XrSystemTrackingProperties instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static XrSystemTrackingProperties calloc()
      Returns a new XrSystemTrackingProperties instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static XrSystemTrackingProperties create()
      Returns a new XrSystemTrackingProperties instance allocated with BufferUtils.
    • create

      public static XrSystemTrackingProperties create(long address)
      Returns a new XrSystemTrackingProperties instance for the specified memory address.
    • createSafe

      public static @Nullable XrSystemTrackingProperties createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static XrSystemTrackingProperties.Buffer malloc(int capacity)
      Returns a new XrSystemTrackingProperties.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static XrSystemTrackingProperties.Buffer calloc(int capacity)
      Returns a new XrSystemTrackingProperties.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrSystemTrackingProperties.Buffer create(int capacity)
      Returns a new XrSystemTrackingProperties.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrSystemTrackingProperties.Buffer create(long address, int capacity)
      Create a XrSystemTrackingProperties.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable XrSystemTrackingProperties.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static XrSystemTrackingProperties malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new XrSystemTrackingProperties instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static XrSystemTrackingProperties calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new XrSystemTrackingProperties instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static XrSystemTrackingProperties.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new XrSystemTrackingProperties.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static XrSystemTrackingProperties.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new XrSystemTrackingProperties.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • norientationTracking

      public static int norientationTracking(long struct)
      Unsafe version of orientationTracking().
    • npositionTracking

      public static int npositionTracking(long struct)
      Unsafe version of positionTracking().
    • norientationTracking

      public static void norientationTracking(long struct, int value)
      Unsafe version of orientationTracking.
    • npositionTracking

      public static void npositionTracking(long struct, int value)
      Unsafe version of positionTracking.