All Implemented Interfaces:
AutoCloseable , org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
public class XrSessionBeginInfo
extends org.lwjgl.system.Struct<XrSessionBeginInfo >
implements org.lwjgl.system.NativeResource
Nested Class Summary
Nested Classes
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default
Field Summary
Fields
static final int
The struct alignment in bytes.
static final int
The struct member offsets.
static final int
The struct member offsets.
static final int
The struct size in bytes.
static final int
The struct member offsets.
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
Constructor Summary
Constructors
Creates a
XrSessionBeginInfo instance at the current position of the specified
ByteBuffer container.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Returns a new XrSessionBeginInfo instance allocated with memCalloc.
calloc (int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XrSessionBeginInfo.Buffer instance allocated on the specified
MemoryStack and initializes all its bits to zero.
calloc (org.lwjgl.system.MemoryStack stack)
Returns a new XrSessionBeginInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
Returns a new XrSessionBeginInfo instance allocated with BufferUtils.
Returns a new XrSessionBeginInfo instance for the specified memory address.
create (long address,
int capacity)
Like
create, but returns
null if
address is
NULL.
Like
create, but returns
null if
address is
NULL.
Returns a new XrSessionBeginInfo instance allocated with memAlloc.
malloc (int capacity,
org.lwjgl.system.MemoryStack stack)
malloc (org.lwjgl.system.MemoryStack stack)
Returns a new XrSessionBeginInfo instance allocated on the specified MemoryStack.
long
NULL or a pointer to the next structure in a structure chain.
Sets the specified value to the
next() field.
static long
static void
nnext (long struct,
long value)
static int
static void
static int
static void
ntype (long struct,
int value)
int
the XrViewConfigurationType to use during this session to provide images for the form factor’s primary displays.
set (int type,
long next,
int primaryViewConfigurationType)
Initializes this struct with the specified values.
Copies the specified struct data to this struct.
int
int
the XrStructureType of this structure.
Sets the specified value to the
type() field.
Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validate
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
Field Details
SIZEOF
public static final int SIZEOF
The struct size in bytes.
ALIGNOF
public static final int ALIGNOF
The struct alignment in bytes.
TYPE
public static final int TYPE
The struct member offsets.
NEXT
public static final int NEXT
The struct member offsets.
PRIMARYVIEWCONFIGURATIONTYPE
public static final int PRIMARYVIEWCONFIGURATIONTYPE
The struct member offsets.
Constructor Details
XrSessionBeginInfo
Creates a
XrSessionBeginInfo 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 Details
sizeof
public int sizeof ()
Specified by:
sizeof in class org.lwjgl.system.Struct<XrSessionBeginInfo >
type
public int type ()
the XrStructureType of this structure.
next
public long next ()
NULL or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR.
primaryViewConfigurationType
public int primaryViewConfigurationType ()
the XrViewConfigurationType to use during this session to provide images for the form factor’s primary displays.
type
Sets the specified value to the
type() field.
next
Sets the specified value to the
next() field.
primaryViewConfigurationType
set
Initializes this struct with the specified values.
set
Copies the specified struct data to this struct.
Parameters:
src - the source struct
Returns:
this struct
malloc
Returns a new XrSessionBeginInfo instance allocated with memAlloc. The instance must be explicitly freed.
calloc
Returns a new XrSessionBeginInfo instance allocated with memCalloc. The instance must be explicitly freed.
create
Returns a new XrSessionBeginInfo instance allocated with BufferUtils.
create
Returns a new XrSessionBeginInfo instance for the specified memory address.
createSafe
Like
create, but returns
null if
address is
NULL.
malloc
Parameters:
capacity - the buffer capacity
calloc
Parameters:
capacity - the buffer capacity
create
Parameters:
capacity - the buffer capacity
create
Parameters:
address - the memory address
capacity - the buffer capacity
createSafe
Like
create, but returns
null if
address is
NULL.
malloc
Returns a new XrSessionBeginInfo instance allocated on the specified MemoryStack.
Parameters:
stack - the stack from which to allocate
calloc
Returns a new XrSessionBeginInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
Parameters:
stack - the stack from which to allocate
malloc
Parameters:
capacity - the buffer capacity
stack - the stack from which to allocate
calloc
Returns a new
XrSessionBeginInfo.Buffer instance allocated on the specified
MemoryStack and initializes all its bits to zero.
Parameters:
capacity - the buffer capacity
stack - the stack from which to allocate
ntype
public static int ntype (long struct)
nnext
public static long nnext (long struct)
nprimaryViewConfigurationType
public static int nprimaryViewConfigurationType (long struct)
ntype
public static void ntype (long struct,
int value)
nnext
public static void nnext (long struct,
long value)
nprimaryViewConfigurationType
public static void nprimaryViewConfigurationType (long struct,
int value)