Package org.lwjgl.ovr

Class OVRSessionStatus

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • ISVISIBLE, HMDPRESENT, HMDMOUNTED, DISPLAYLOST, SHOULDQUIT, SHOULDRECENTER, HASINPUTFOCUS, OVERLAYPRESENT, DEPTHREQUESTED

        The struct member offsets.
    • 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()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • IsVisible

        public boolean IsVisible()
        True if the process has VR focus and thus is visible in the HMD.
      • HmdPresent

        public boolean HmdPresent()
        True if an HMD is present.
      • HmdMounted

        public boolean HmdMounted()
        True if the HMD is on the user's head.
      • DisplayLost

        public boolean DisplayLost()
        True if the session is in a display-lost state. See SubmitFrame.
      • ShouldQuit

        public boolean ShouldQuit()
        True if the application should initiate shutdown.
      • HasInputFocus

        public boolean HasInputFocus()
        True if the application is the foreground application and receives input (e.g. Touch controller state). If this is false then the application is in the background (but possibly still visible) should hide any input representations such as hands.
      • OverlayPresent

        public boolean OverlayPresent()
        True if a system overlay is present, such as a dashboard. In this case the application (if visible) should pause while still drawing, avoid drawing near-field graphics so they don't visually fight with the system overlay, and consume fewer CPU and GPU resources.

        Deprecated, do not use.

      • DepthRequested

        public boolean DepthRequested()
        True if runtime is requesting that the application provide depth buffers with projection layers.
      • malloc

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

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

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

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

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

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

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

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

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

        public static OVRSessionStatus calloc​(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
      • malloc

        public static OVRSessionStatus.Buffer malloc​(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
      • calloc

        public static OVRSessionStatus.Buffer calloc​(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
      • nIsVisible

        public static boolean nIsVisible​(long struct)
        Unsafe version of IsVisible().
      • nHmdPresent

        public static boolean nHmdPresent​(long struct)
        Unsafe version of HmdPresent().
      • nHmdMounted

        public static boolean nHmdMounted​(long struct)
        Unsafe version of HmdMounted().
      • nDisplayLost

        public static boolean nDisplayLost​(long struct)
        Unsafe version of DisplayLost().
      • nShouldQuit

        public static boolean nShouldQuit​(long struct)
        Unsafe version of ShouldQuit().
      • nShouldRecenter

        public static boolean nShouldRecenter​(long struct)
        Unsafe version of ShouldRecenter().
      • nHasInputFocus

        public static boolean nHasInputFocus​(long struct)
        Unsafe version of HasInputFocus().
      • nOverlayPresent

        public static boolean nOverlayPresent​(long struct)
        Unsafe version of OverlayPresent().
      • nDepthRequested

        public static boolean nDepthRequested​(long struct)
        Unsafe version of DepthRequested().