Package org.lwjgl.ovr

Class OVRTrackerPose

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

public class OVRTrackerPose extends org.lwjgl.system.Struct<OVRTrackerPose> implements org.lwjgl.system.NativeResource
Specifies the pose for a single sensor.

Layout


 struct ovrTrackerPose {
     unsigned int TrackerFlags();
     ovrPosef Pose();
     ovrPosef LeveledPose();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int TRACKERFLAGS
      The struct member offsets.
    • POSE

      public static final int POSE
      The struct member offsets.
    • LEVELEDPOSE

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

    • OVRTrackerPose

      public OVRTrackerPose(ByteBuffer container)
      Creates a OVRTrackerPose 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<OVRTrackerPose>
    • TrackerFlags

      public int TrackerFlags()
      ovrTrackerFlags.
    • Pose

      public OVRPosef Pose()
      the sensor's pose. This pose includes sensor tilt (roll and pitch). For a leveled coordinate system use LeveledPose.
    • LeveledPose

      public OVRPosef LeveledPose()
      t the sensor's leveled pose, aligned with gravity. This value includes pos and yaw of the sensor, but not roll and pitch. It can be used as a reference point to render real-world objects in the correct location.
    • malloc

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

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

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

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

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

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

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

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

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

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

      @Deprecated public static OVRTrackerPose mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static OVRTrackerPose callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static OVRTrackerPose mallocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static OVRTrackerPose callocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static OVRTrackerPose.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static OVRTrackerPose.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static OVRTrackerPose.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static OVRTrackerPose.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

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

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

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

      public static OVRTrackerPose.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new OVRTrackerPose.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
    • nTrackerFlags

      public static int nTrackerFlags(long struct)
      Unsafe version of TrackerFlags().
    • nPose

      public static OVRPosef nPose(long struct)
      Unsafe version of Pose().
    • nLeveledPose

      public static OVRPosef nLeveledPose(long struct)
      Unsafe version of LeveledPose().