Package org.lwjgl.ovr

Class OVRTimewarpProjectionDesc

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

    public class OVRTimewarpProjectionDesc
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Projection information for OVRLayerEyeFovDepth.

    Use the utility function TimewarpProjectionDesc_FromProjection to generate this structure from the application's projection matrix.

    Member documentation

    • Projection22 – projection matrix element [2][2]
    • Projection23 – projection matrix element [2][3]
    • Projection32 – projection matrix element [3][2]

    Layout

    
     struct ovrTimewarpProjectionDesc {
         float Projection22;
         float Projection23;
         float Projection32;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • PROJECTION22, PROJECTION23, PROJECTION32

        The struct member offsets.
    • Constructor Detail

      • OVRTimewarpProjectionDesc

        public OVRTimewarpProjectionDesc​(java.nio.ByteBuffer container)
        Creates a OVRTimewarpProjectionDesc 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
      • Projection22

        public float Projection22()
        Returns the value of the Projection22 field.
      • Projection23

        public float Projection23()
        Returns the value of the Projection23 field.
      • Projection32

        public float Projection32()
        Returns the value of the Projection32 field.
      • malloc

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

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

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

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

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

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

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

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

        public static OVRTimewarpProjectionDesc.Buffer callocStack​(int capacity,
                                                                   org.lwjgl.system.MemoryStack stack)
        Returns a new OVRTimewarpProjectionDesc.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
      • nProjection22

        public static float nProjection22​(long struct)
        Unsafe version of Projection22().
      • nProjection23

        public static float nProjection23​(long struct)
        Unsafe version of Projection23().
      • nProjection32

        public static float nProjection32​(long struct)
        Unsafe version of Projection32().