Package org.lwjgl.ovr

Class OVRSessionStatus

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


    public class OVRSessionStatus
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Specifies status information for the current session.

    Member documentation

    • IsVisible – True if the process has VR focus and thus is visible in the HMD.
    • HmdPresent – True if an HMD is present.
    • HmdMounted – True if the HMD is on the user's head.
    • DisplayLost – True if the session is in a display-lost state. See SubmitFrame.
    • ShouldQuit – True if the application should initiate shutdown.
    • ShouldRecenter – True if UX has requested re-centering. Must call ClearShouldRecenterFlag, RecenterTrackingOrigin or SpecifyTrackingOrigin.

    Layout

     struct ovrSessionStatus {
         ovrBool IsVisible;
         ovrBool HmdPresent;
         ovrBool HmdMounted;
         ovrBool DisplayLost;
         ovrBool ShouldQuit;
         ovrBool ShouldRecenter;
         ovrBool Internal[2];
     }
    • Field Detail

      • SIZEOF

        public static final int SIZEOF
        The struct size in bytes.
    • Constructor Detail

      • OVRSessionStatus

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

        public boolean IsVisible()
        Returns the value of the IsVisible field.
      • HmdPresent

        public boolean HmdPresent()
        Returns the value of the HmdPresent field.
      • HmdMounted

        public boolean HmdMounted()
        Returns the value of the HmdMounted field.
      • DisplayLost

        public boolean DisplayLost()
        Returns the value of the DisplayLost field.
      • ShouldQuit

        public boolean ShouldQuit()
        Returns the value of the ShouldQuit field.
      • ShouldRecenter

        public boolean ShouldRecenter()
        Returns the value of the ShouldRecenter field.
      • Internal

        public java.nio.ByteBuffer Internal()
        Returns a ByteBuffer view of the Internal field.
      • Internal

        public boolean Internal(int index)
        Returns the value at the specified index of the Internal field.
      • create

        public static OVRSessionStatus create(long address)
        Returns a new OVRSessionStatus instance for the specified memory address or null if the address is NULL.
      • callocStack

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

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

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

        public static OVRSessionStatus.Buffer callocStack(int capacity)
        Returns a new OVRSessionStatus.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
        Parameters:
        capacity - the buffer capacity
      • mallocStack

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

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