Package org.lwjgl.ovr
Class OVRSessionStatus
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.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.NativeResourceSpecifies 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. SeeSubmitFrame.ShouldQuit– True if the application should initiate shutdown.ShouldRecenter– True if UX has requested re-centering. Must callClearShouldRecenterFlag,RecenterTrackingOriginorSpecifyTrackingOrigin.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– 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– True if runtime is requesting that the application provide depth buffers with projection layers.
Layout
struct ovrSessionStatus { ovrBool IsVisible; ovrBool HmdPresent; ovrBool HmdMounted; ovrBool DisplayLost; ovrBool ShouldQuit; ovrBool ShouldRecenter; ovrBool HasInputFocus; ovrBool OverlayPresent; ovrBool DepthRequested; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRSessionStatus.BufferAn array ofOVRSessionStatusstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDEPTHREQUESTED
DISPLAYLOST
HASINPUTFOCUS
HMDMOUNTED
HMDPRESENT
ISVISIBLE
OVERLAYPRESENT
SHOULDQUIT
SHOULDRECENTERThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description OVRSessionStatus(java.nio.ByteBuffer container)Creates aOVRSessionStatusinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRSessionStatuscalloc()Returns a newOVRSessionStatusinstance allocated withmemCalloc.static OVRSessionStatus.Buffercalloc(int capacity)Returns a newOVRSessionStatus.Bufferinstance allocated withmemCalloc.static OVRSessionStatuscallocStack()Returns a newOVRSessionStatusinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRSessionStatus.BuffercallocStack(int capacity)Returns a newOVRSessionStatus.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRSessionStatus.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRSessionStatus.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRSessionStatuscallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRSessionStatusinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRSessionStatuscreate()Returns a newOVRSessionStatusinstance allocated withBufferUtils.static OVRSessionStatus.Buffercreate(int capacity)Returns a newOVRSessionStatus.Bufferinstance allocated withBufferUtils.static OVRSessionStatuscreate(long address)Returns a newOVRSessionStatusinstance for the specified memory address.static OVRSessionStatus.Buffercreate(long address, int capacity)Create aOVRSessionStatus.Bufferinstance at the specified memory.static OVRSessionStatuscreateSafe(long address)static OVRSessionStatus.BuffercreateSafe(long address, int capacity)booleanDepthRequested()Returns the value of theDepthRequestedfield.booleanDisplayLost()Returns the value of theDisplayLostfield.booleanHasInputFocus()Returns the value of theHasInputFocusfield.booleanHmdMounted()Returns the value of theHmdMountedfield.booleanHmdPresent()Returns the value of theHmdPresentfield.booleanIsVisible()Returns the value of theIsVisiblefield.static OVRSessionStatusmalloc()Returns a newOVRSessionStatusinstance allocated withmemAlloc.static OVRSessionStatus.Buffermalloc(int capacity)Returns a newOVRSessionStatus.Bufferinstance allocated withmemAlloc.static OVRSessionStatusmallocStack()Returns a newOVRSessionStatusinstance allocated on the thread-localMemoryStack.static OVRSessionStatus.BuffermallocStack(int capacity)Returns a newOVRSessionStatus.Bufferinstance allocated on the thread-localMemoryStack.static OVRSessionStatus.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRSessionStatus.Bufferinstance allocated on the specifiedMemoryStack.static OVRSessionStatusmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRSessionStatusinstance allocated on the specifiedMemoryStack.static booleannDepthRequested(long struct)Unsafe version ofDepthRequested().static booleannDisplayLost(long struct)Unsafe version ofDisplayLost().static booleannHasInputFocus(long struct)Unsafe version ofHasInputFocus().static booleannHmdMounted(long struct)Unsafe version ofHmdMounted().static booleannHmdPresent(long struct)Unsafe version ofHmdPresent().static booleannIsVisible(long struct)Unsafe version ofIsVisible().static booleannOverlayPresent(long struct)Unsafe version ofOverlayPresent().static booleannShouldQuit(long struct)Unsafe version ofShouldQuit().static booleannShouldRecenter(long struct)Unsafe version ofShouldRecenter().booleanOverlayPresent()Returns the value of theOverlayPresentfield.booleanShouldQuit()Returns the value of theShouldQuitfield.booleanShouldRecenter()Returns the value of theShouldRecenterfield.intsizeof()
-
-
-
Constructor Detail
-
OVRSessionStatus
public OVRSessionStatus(java.nio.ByteBuffer container)
Creates aOVRSessionStatusinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
IsVisible
public boolean IsVisible()
Returns the value of theIsVisiblefield.
-
HmdPresent
public boolean HmdPresent()
Returns the value of theHmdPresentfield.
-
HmdMounted
public boolean HmdMounted()
Returns the value of theHmdMountedfield.
-
DisplayLost
public boolean DisplayLost()
Returns the value of theDisplayLostfield.
-
ShouldQuit
public boolean ShouldQuit()
Returns the value of theShouldQuitfield.
-
ShouldRecenter
public boolean ShouldRecenter()
Returns the value of theShouldRecenterfield.
-
HasInputFocus
public boolean HasInputFocus()
Returns the value of theHasInputFocusfield.
-
OverlayPresent
public boolean OverlayPresent()
Returns the value of theOverlayPresentfield.
-
DepthRequested
public boolean DepthRequested()
Returns the value of theDepthRequestedfield.
-
malloc
public static OVRSessionStatus malloc()
Returns a newOVRSessionStatusinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRSessionStatus calloc()
Returns a newOVRSessionStatusinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRSessionStatus create()
Returns a newOVRSessionStatusinstance allocated withBufferUtils.
-
create
public static OVRSessionStatus create(long address)
Returns a newOVRSessionStatusinstance for the specified memory address.
-
createSafe
@Nullable public static OVRSessionStatus createSafe(long address)
-
malloc
public static OVRSessionStatus.Buffer malloc(int capacity)
Returns a newOVRSessionStatus.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRSessionStatus.Buffer calloc(int capacity)
Returns a newOVRSessionStatus.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRSessionStatus.Buffer create(int capacity)
Returns a newOVRSessionStatus.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRSessionStatus.Buffer create(long address, int capacity)
Create aOVRSessionStatus.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static OVRSessionStatus.Buffer createSafe(long address, int capacity)
-
mallocStack
public static OVRSessionStatus mallocStack()
Returns a newOVRSessionStatusinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRSessionStatus callocStack()
Returns a newOVRSessionStatusinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRSessionStatus mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRSessionStatusinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRSessionStatus callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRSessionStatusinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static OVRSessionStatus.Buffer mallocStack(int capacity)
Returns a newOVRSessionStatus.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRSessionStatus.Buffer callocStack(int capacity)
Returns a newOVRSessionStatus.Bufferinstance allocated on the thread-localMemoryStackand 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 newOVRSessionStatus.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static OVRSessionStatus.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRSessionStatus.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nIsVisible
public static boolean nIsVisible(long struct)
Unsafe version ofIsVisible().
-
nHmdPresent
public static boolean nHmdPresent(long struct)
Unsafe version ofHmdPresent().
-
nHmdMounted
public static boolean nHmdMounted(long struct)
Unsafe version ofHmdMounted().
-
nDisplayLost
public static boolean nDisplayLost(long struct)
Unsafe version ofDisplayLost().
-
nShouldQuit
public static boolean nShouldQuit(long struct)
Unsafe version ofShouldQuit().
-
nShouldRecenter
public static boolean nShouldRecenter(long struct)
Unsafe version ofShouldRecenter().
-
nHasInputFocus
public static boolean nHasInputFocus(long struct)
Unsafe version ofHasInputFocus().
-
nOverlayPresent
public static boolean nOverlayPresent(long struct)
Unsafe version ofOverlayPresent().
-
nDepthRequested
public static boolean nDepthRequested(long struct)
Unsafe version ofDepthRequested().
-
-