Package org.lwjgl.ovr

Class OVRTrackerPose

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class OVRTrackerPose
    extends Struct
    implements NativeResource
    Specifies the pose for a single sensor.

    Member documentation

    • TrackerFlagsovrTrackerFlags.
    • Pose – the sensor's pose. This pose includes sensor tilt (roll and pitch). For a leveled coordinate system use LeveledPose.
    • 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.

    Layout

    
     struct ovrTrackerPose {
         unsigned int TrackerFlags;
         ovrPosef Pose;
         ovrPosef LeveledPose;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TRACKERFLAGS, POSE, LEVELEDPOSE

        The struct member offsets.
    • Constructor Detail

      • OVRTrackerPose

        public OVRTrackerPose​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • TrackerFlags

        public int TrackerFlags()
        Returns the value of the TrackerFlags field.
      • LeveledPose

        public OVRPosef LeveledPose()
        Returns a OVRPosef view of the LeveledPose field.
      • 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​(long address)
        Returns a new OVRTrackerPose instance for the specified memory address.
      • createSafe

        @Nullable
        public static OVRTrackerPose createSafe​(long address)
        Like create, but returns null if address is NULL.
      • 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

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

        public static OVRTrackerPose mallocStack()
        Returns a new OVRTrackerPose instance allocated on the thread-local MemoryStack.
      • callocStack

        public static OVRTrackerPose callocStack()
        Returns a new OVRTrackerPose instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static OVRTrackerPose mallocStack​(MemoryStack stack)
        Returns a new OVRTrackerPose instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static OVRTrackerPose callocStack​(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
      • nTrackerFlags

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

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