Package org.lwjgl.ovr

Class OVRFovStencilDesc

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STENCILTYPE, STENCILFLAGS, EYE, FOVPORT, HMDTOEYEROTATION

        The struct member offsets.
    • Constructor Detail

      • OVRFovStencilDesc

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

        public int StencilType()
        Returns the value of the StencilType field.
      • StencilFlags

        public int StencilFlags()
        Returns the value of the StencilFlags field.
      • Eye

        public int Eye()
        Returns the value of the Eye field.
      • HmdToEyeRotation

        public OVRQuatf HmdToEyeRotation()
        Returns a OVRQuatf view of the HmdToEyeRotation field.
      • StencilType

        public OVRFovStencilDesc StencilType​(int value)
        Sets the specified value to the StencilType field.
      • StencilFlags

        public OVRFovStencilDesc StencilFlags​(int value)
        Sets the specified value to the StencilFlags field.
      • Eye

        public OVRFovStencilDesc Eye​(int value)
        Sets the specified value to the Eye field.
      • FovPort

        public OVRFovStencilDesc FovPort​(java.util.function.Consumer<OVRFovPort> consumer)
        Passes the FovPort field to the specified Consumer.
      • HmdToEyeRotation

        public OVRFovStencilDesc HmdToEyeRotation​(java.util.function.Consumer<OVRQuatf> consumer)
        Passes the HmdToEyeRotation field to the specified Consumer.
      • set

        public OVRFovStencilDesc set​(int StencilType,
                                     int StencilFlags,
                                     int Eye,
                                     OVRFovPort FovPort,
                                     OVRQuatf HmdToEyeRotation)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

        public static int nStencilType​(long struct)
        Unsafe version of StencilType().
      • nStencilFlags

        public static int nStencilFlags​(long struct)
        Unsafe version of StencilFlags().
      • nEye

        public static int nEye​(long struct)
        Unsafe version of Eye().
      • nStencilType

        public static void nStencilType​(long struct,
                                        int value)
        Unsafe version of StencilType.
      • nStencilFlags

        public static void nStencilFlags​(long struct,
                                         int value)
        Unsafe version of StencilFlags.
      • nEye

        public static void nEye​(long struct,
                                int value)
        Unsafe version of Eye.
      • nFovPort

        public static void nFovPort​(long struct,
                                    OVRFovPort value)
        Unsafe version of FovPort.
      • nHmdToEyeRotation

        public static void nHmdToEyeRotation​(long struct,
                                             OVRQuatf value)
        Unsafe version of HmdToEyeRotation.