Package org.lwjgl.ovr

Class OVRTrackerDesc

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • FRUSTUMHFOVINRADIANS, FRUSTUMVFOVINRADIANS, FRUSTUMNEARZINMETERS, FRUSTUMFARZINMETERS

        The struct member offsets.
    • Constructor Detail

      • OVRTrackerDesc

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

        public float FrustumHFovInRadians()
        sensor frustum horizontal field-of-view (if present).
      • FrustumVFovInRadians

        public float FrustumVFovInRadians()
        sensor frustum vertical field-of-view (if present).
      • FrustumNearZInMeters

        public float FrustumNearZInMeters()
        sensor frustum near Z (if present).
      • FrustumFarZInMeters

        public float FrustumFarZInMeters()
        sensor frustum far Z (if present).
      • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static float nFrustumHFovInRadians​(long struct)
        Unsafe version of FrustumHFovInRadians().
      • nFrustumVFovInRadians

        public static float nFrustumVFovInRadians​(long struct)
        Unsafe version of FrustumVFovInRadians().
      • nFrustumNearZInMeters

        public static float nFrustumNearZInMeters​(long struct)
        Unsafe version of FrustumNearZInMeters().
      • nFrustumFarZInMeters

        public static float nFrustumFarZInMeters​(long struct)
        Unsafe version of FrustumFarZInMeters().