Package org.lwjgl.openxr
Class XrSessionBeginInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSessionBeginInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSessionBeginInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStruct containing session begin info.Valid Usage (Implicit)
typemust beTYPE_SESSION_BEGIN_INFOnextmust beNULLor a valid pointer to the next structure in a structure chain. See also:XrSecondaryViewConfigurationSessionBeginInfoMSFTprimaryViewConfigurationTypemust be a validXrViewConfigurationTypevalue
See Also
Layout
struct XrSessionBeginInfo { XrStructureTypetype(); void const *next(); XrViewConfigurationTypeprimaryViewConfigurationType(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSessionBeginInfo.BufferAn array ofXrSessionBeginInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNEXT
PRIMARYVIEWCONFIGURATIONTYPEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSessionBeginInfo(java.nio.ByteBuffer container)Creates aXrSessionBeginInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSessionBeginInfocalloc()Returns a newXrSessionBeginInfoinstance allocated withmemCalloc.static XrSessionBeginInfo.Buffercalloc(int capacity)Returns a newXrSessionBeginInfo.Bufferinstance allocated withmemCalloc.static XrSessionBeginInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSessionBeginInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSessionBeginInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSessionBeginInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSessionBeginInfocreate()Returns a newXrSessionBeginInfoinstance allocated withBufferUtils.static XrSessionBeginInfo.Buffercreate(int capacity)Returns a newXrSessionBeginInfo.Bufferinstance allocated withBufferUtils.static XrSessionBeginInfocreate(long address)Returns a newXrSessionBeginInfoinstance for the specified memory address.static XrSessionBeginInfo.Buffercreate(long address, int capacity)Create aXrSessionBeginInfo.Bufferinstance at the specified memory.static XrSessionBeginInfocreateSafe(long address)static XrSessionBeginInfo.BuffercreateSafe(long address, int capacity)static XrSessionBeginInfomalloc()Returns a newXrSessionBeginInfoinstance allocated withmemAlloc.static XrSessionBeginInfo.Buffermalloc(int capacity)Returns a newXrSessionBeginInfo.Bufferinstance allocated withmemAlloc.static XrSessionBeginInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSessionBeginInfo.Bufferinstance allocated on the specifiedMemoryStack.static XrSessionBeginInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSessionBeginInfoinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrSessionBeginInfonext(long value)Sets the specified value to thenext()field.XrSessionBeginInfonext(XrSecondaryViewConfigurationSessionBeginInfoMSFT value)Prepends the specifiedXrSecondaryViewConfigurationSessionBeginInfoMSFTvalue to thenextchain.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intnprimaryViewConfigurationType(long struct)Unsafe version ofprimaryViewConfigurationType().static voidnprimaryViewConfigurationType(long struct, int value)Unsafe version ofprimaryViewConfigurationType.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.intprimaryViewConfigurationType()theXrViewConfigurationTypeto use during this session to provide images for the form factor’s primary displays.XrSessionBeginInfoprimaryViewConfigurationType(int value)Sets the specified value to theprimaryViewConfigurationType()field.XrSessionBeginInfoset(int type, long next, int primaryViewConfigurationType)Initializes this struct with the specified values.XrSessionBeginInfoset(XrSessionBeginInfo src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrSessionBeginInfotype(int value)Sets the specified value to thetype()field.XrSessionBeginInfotype$Default()Sets theTYPE_SESSION_BEGIN_INFOvalue to thetype()field.
-
-
-
Constructor Detail
-
XrSessionBeginInfo
public XrSessionBeginInfo(java.nio.ByteBuffer container)
Creates aXrSessionBeginInfoinstance 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
-
type
public int type()
theXrStructureTypeof this structure.
-
next
public long next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR.
-
primaryViewConfigurationType
public int primaryViewConfigurationType()
theXrViewConfigurationTypeto use during this session to provide images for the form factor’s primary displays.
-
type
public XrSessionBeginInfo type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSessionBeginInfo type$Default()
Sets theTYPE_SESSION_BEGIN_INFOvalue to thetype()field.
-
next
public XrSessionBeginInfo next(long value)
Sets the specified value to thenext()field.
-
next
public XrSessionBeginInfo next(XrSecondaryViewConfigurationSessionBeginInfoMSFT value)
Prepends the specifiedXrSecondaryViewConfigurationSessionBeginInfoMSFTvalue to thenextchain.
-
primaryViewConfigurationType
public XrSessionBeginInfo primaryViewConfigurationType(int value)
Sets the specified value to theprimaryViewConfigurationType()field.
-
set
public XrSessionBeginInfo set(int type, long next, int primaryViewConfigurationType)
Initializes this struct with the specified values.
-
set
public XrSessionBeginInfo set(XrSessionBeginInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSessionBeginInfo malloc()
Returns a newXrSessionBeginInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSessionBeginInfo calloc()
Returns a newXrSessionBeginInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSessionBeginInfo create()
Returns a newXrSessionBeginInfoinstance allocated withBufferUtils.
-
create
public static XrSessionBeginInfo create(long address)
Returns a newXrSessionBeginInfoinstance for the specified memory address.
-
createSafe
@Nullable public static XrSessionBeginInfo createSafe(long address)
-
malloc
public static XrSessionBeginInfo.Buffer malloc(int capacity)
Returns a newXrSessionBeginInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSessionBeginInfo.Buffer calloc(int capacity)
Returns a newXrSessionBeginInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSessionBeginInfo.Buffer create(int capacity)
Returns a newXrSessionBeginInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSessionBeginInfo.Buffer create(long address, int capacity)
Create aXrSessionBeginInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSessionBeginInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSessionBeginInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSessionBeginInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSessionBeginInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSessionBeginInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSessionBeginInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSessionBeginInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSessionBeginInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSessionBeginInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
nprimaryViewConfigurationType
public static int nprimaryViewConfigurationType(long struct)
Unsafe version ofprimaryViewConfigurationType().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nprimaryViewConfigurationType
public static void nprimaryViewConfigurationType(long struct, int value)Unsafe version ofprimaryViewConfigurationType.
-
-