Package org.lwjgl.ovr

Class OVRPoseStatef

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • THEPOSE, ANGULARVELOCITY, LINEARVELOCITY, ANGULARACCELERATION, LINEARACCELERATION, TIMEINSECONDS

        The struct member offsets.
    • Constructor Detail

      • OVRPoseStatef

        public OVRPoseStatef​(java.nio.ByteBuffer container)
        Creates a OVRPoseStatef 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()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • ThePose

        public OVRPosef ThePose()
        position and orientation
      • AngularVelocity

        public OVRVector3f AngularVelocity()
        angular velocity in radians per second
      • LinearVelocity

        public OVRVector3f LinearVelocity()
        velocity in meters per second
      • AngularAcceleration

        public OVRVector3f AngularAcceleration()
        angular acceleration in radians per second per second
      • LinearAcceleration

        public OVRVector3f LinearAcceleration()
        acceleration in meters per second per second
      • TimeInSeconds

        public double TimeInSeconds()
        absolute time that this pose refers to. See GetTimeInSeconds
      • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static OVRPosef nThePose​(long struct)
        Unsafe version of ThePose().
      • nTimeInSeconds

        public static double nTimeInSeconds​(long struct)
        Unsafe version of TimeInSeconds().