Package org.lwjgl.openxr
Class XrSceneComponentsMSFT
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct XrSceneComponentsMSFT {
XrStructureType type;
void * next;
uint32_t componentCapacityInput;
uint32_t componentCountOutput;
{@link XrSceneComponentMSFT XrSceneComponentMSFT} * components;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 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
ConstructorsConstructorDescriptionXrSceneComponentsMSFT
(ByteBuffer container) Creates aXrSceneComponentsMSFT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrSceneComponentsMSFT
calloc()
Returns a newXrSceneComponentsMSFT
instance allocated withmemCalloc
.static XrSceneComponentsMSFT.Buffer
calloc
(int capacity) Returns a newXrSceneComponentsMSFT.Buffer
instance allocated withmemCalloc
.static XrSceneComponentsMSFT.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newXrSceneComponentsMSFT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrSceneComponentsMSFT
calloc
(MemoryStack stack) Returns a newXrSceneComponentsMSFT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
componentCapacityInput
(int value) Sets the specified value to thecomponentCapacityInput
field.int
componentCountOutput
(int value) Sets the specified value to thecomponentCountOutput
field.@Nullable XrSceneComponentMSFT.Buffer
components
(@Nullable XrSceneComponentMSFT.Buffer value) Sets the address of the specifiedXrSceneComponentMSFT.Buffer
to thecomponents
field.static XrSceneComponentsMSFT
create()
Returns a newXrSceneComponentsMSFT
instance allocated withBufferUtils
.static XrSceneComponentsMSFT.Buffer
create
(int capacity) Returns a newXrSceneComponentsMSFT.Buffer
instance allocated withBufferUtils
.static XrSceneComponentsMSFT
create
(long address) Returns a newXrSceneComponentsMSFT
instance for the specified memory address.static XrSceneComponentsMSFT.Buffer
create
(long address, int capacity) Create aXrSceneComponentsMSFT.Buffer
instance at the specified memory.static @Nullable XrSceneComponentsMSFT
createSafe
(long address) static @Nullable XrSceneComponentsMSFT.Buffer
createSafe
(long address, int capacity) static XrSceneComponentsMSFT
malloc()
Returns a newXrSceneComponentsMSFT
instance allocated withmemAlloc
.static XrSceneComponentsMSFT.Buffer
malloc
(int capacity) Returns a newXrSceneComponentsMSFT.Buffer
instance allocated withmemAlloc
.static XrSceneComponentsMSFT.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newXrSceneComponentsMSFT.Buffer
instance allocated on the specifiedMemoryStack
.static XrSceneComponentsMSFT
malloc
(MemoryStack stack) Returns a newXrSceneComponentsMSFT
instance allocated on the specifiedMemoryStack
.static int
ncomponentCapacityInput
(long struct) Unsafe version ofcomponentCapacityInput()
.static void
ncomponentCapacityInput
(long struct, int value) Sets the specified value to thecomponentCapacityInput
field of the specifiedstruct
.static int
ncomponentCountOutput
(long struct) Unsafe version ofcomponentCountOutput()
.static void
ncomponentCountOutput
(long struct, int value) Unsafe version ofcomponentCountOutput
.static @Nullable XrSceneComponentMSFT.Buffer
ncomponents
(long struct) Unsafe version ofcomponents()
.static void
ncomponents
(long struct, @Nullable XrSceneComponentMSFT.Buffer value) Unsafe version ofcomponents
.long
next()
next
(long value) Sets the specified value to thenext
field.next
(XrSceneMarkerQRCodesMSFT value) Prepends the specifiedXrSceneMarkerQRCodesMSFT
value to thenext
chain.next
(XrSceneMarkersMSFT value) Prepends the specifiedXrSceneMarkersMSFT
value to thenext
chain.next
(XrSceneMeshesMSFT value) Prepends the specifiedXrSceneMeshesMSFT
value to thenext
chain.next
(XrSceneObjectsMSFT value) Prepends the specifiedXrSceneObjectsMSFT
value to thenext
chain.next
(XrScenePlanesMSFT value) Prepends the specifiedXrScenePlanesMSFT
value to thenext
chain.static long
nnext
(long struct) Unsafe version ofnext()
.static void
nnext
(long struct, long value) Unsafe version ofnext
.static int
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(long struct, int value) Unsafe version oftype
.set
(int type, long next, int componentCapacityInput, int componentCountOutput, @Nullable XrSceneComponentMSFT.Buffer components) Initializes this struct with the specified values.set
(XrSceneComponentsMSFT src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
type()
type
(int value) Sets the specified value to thetype
field.Sets theTYPE_SCENE_COMPONENTS_MSFT
value to thetype
field.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 SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
COMPONENTCAPACITYINPUT
public static final int COMPONENTCAPACITYINPUTThe struct member offsets. -
COMPONENTCOUNTOUTPUT
public static final int COMPONENTCOUNTOUTPUTThe struct member offsets. -
COMPONENTS
public static final int COMPONENTSThe struct member offsets.
-
-
Constructor Details
-
XrSceneComponentsMSFT
Creates aXrSceneComponentsMSFT
instance at the current position of the specifiedByteBuffer
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()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<XrSceneComponentsMSFT>
-
type
public int type()- Returns:
- the value of the
type
field.
-
next
public long next()- Returns:
- the value of the
next
field.
-
componentCapacityInput
public int componentCapacityInput()- Returns:
- the value of the
componentCapacityInput
field.
-
componentCountOutput
public int componentCountOutput()- Returns:
- the value of the
componentCountOutput
field.
-
components
- Returns:
- a
XrSceneComponentMSFT.Buffer
view of the struct array pointed to by thecomponents
field.
-
type
Sets the specified value to thetype
field. -
type$Default
Sets theTYPE_SCENE_COMPONENTS_MSFT
value to thetype
field. -
next
Sets the specified value to thenext
field. -
next
Prepends the specifiedXrSceneMarkerQRCodesMSFT
value to thenext
chain. -
next
Prepends the specifiedXrSceneMarkersMSFT
value to thenext
chain. -
next
Prepends the specifiedXrSceneMeshesMSFT
value to thenext
chain. -
next
Prepends the specifiedXrSceneObjectsMSFT
value to thenext
chain. -
next
Prepends the specifiedXrScenePlanesMSFT
value to thenext
chain. -
componentCapacityInput
Sets the specified value to thecomponentCapacityInput
field. -
componentCountOutput
Sets the specified value to thecomponentCountOutput
field. -
components
Sets the address of the specifiedXrSceneComponentMSFT.Buffer
to thecomponents
field. -
set
public XrSceneComponentsMSFT set(int type, long next, int componentCapacityInput, int componentCountOutput, @Nullable XrSceneComponentMSFT.Buffer components) 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 newXrSceneComponentsMSFT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrSceneComponentsMSFT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrSceneComponentsMSFT
instance allocated withBufferUtils
. -
create
Returns a newXrSceneComponentsMSFT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSceneComponentsMSFT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrSceneComponentsMSFT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrSceneComponentsMSFT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrSceneComponentsMSFT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSceneComponentsMSFT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrSceneComponentsMSFT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrSceneComponentsMSFT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrSceneComponentsMSFT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype()
. -
nnext
public static long nnext(long struct) Unsafe version ofnext()
. -
ncomponentCapacityInput
public static int ncomponentCapacityInput(long struct) Unsafe version ofcomponentCapacityInput()
. -
ncomponentCountOutput
public static int ncomponentCountOutput(long struct) Unsafe version ofcomponentCountOutput()
. -
ncomponents
Unsafe version ofcomponents()
. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype
. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext
. -
ncomponentCapacityInput
public static void ncomponentCapacityInput(long struct, int value) Sets the specified value to thecomponentCapacityInput
field of the specifiedstruct
. -
ncomponentCountOutput
public static void ncomponentCountOutput(long struct, int value) Unsafe version ofcomponentCountOutput
. -
ncomponents
Unsafe version ofcomponents
.
-