Package org.lwjgl.openxr
Class XrSceneComponentsMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSceneComponentsMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSceneComponentsMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceScene components.Valid Usage (Implicit)
- The
XR_MSFT_scene_understandingextension must be enabled prior to usingXrSceneComponentsMSFT typemust beTYPE_SCENE_COMPONENTS_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chain. See also:XrSceneMeshesMSFT,XrSceneObjectsMSFT,XrScenePlanesMSFT- If
componentCapacityInputis not 0,componentsmust be a pointer to an array ofcomponentCapacityInputXrSceneComponentMSFTstructures
See Also
XrSceneComponentMSFT,GetSceneComponentsMSFTLayout
struct XrSceneComponentsMSFT { XrStructureTypetype(); void *next(); uint32_tcomponentCapacityInput(); uint32_tcomponentCountOutput();XrSceneComponentMSFT*components(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSceneComponentsMSFT.BufferAn array ofXrSceneComponentsMSFTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOMPONENTCAPACITYINPUT
COMPONENTCOUNTOUTPUT
COMPONENTS
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSceneComponentsMSFT(java.nio.ByteBuffer container)Creates aXrSceneComponentsMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSceneComponentsMSFTcalloc()Returns a newXrSceneComponentsMSFTinstance allocated withmemCalloc.static XrSceneComponentsMSFT.Buffercalloc(int capacity)Returns a newXrSceneComponentsMSFT.Bufferinstance allocated withmemCalloc.static XrSceneComponentsMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneComponentsMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneComponentsMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneComponentsMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcomponentCapacityInput()the capacity of the array, or 0 to indicate a request to retrieve the required capacity.XrSceneComponentsMSFTcomponentCapacityInput(int value)Sets the specified value to thecomponentCapacityInput()field.intcomponentCountOutput()a pointer to the count of components, or a pointer to the required capacity in the case thatcomponentCapacityInputis 0.XrSceneComponentsMSFTcomponentCountOutput(int value)Sets the specified value to thecomponentCountOutput()field.XrSceneComponentMSFT.Buffercomponents()an array ofXrSceneComponentMSFT.XrSceneComponentsMSFTcomponents(XrSceneComponentMSFT.Buffer value)Sets the address of the specifiedXrSceneComponentMSFT.Bufferto thecomponents()field.static XrSceneComponentsMSFTcreate()Returns a newXrSceneComponentsMSFTinstance allocated withBufferUtils.static XrSceneComponentsMSFT.Buffercreate(int capacity)Returns a newXrSceneComponentsMSFT.Bufferinstance allocated withBufferUtils.static XrSceneComponentsMSFTcreate(long address)Returns a newXrSceneComponentsMSFTinstance for the specified memory address.static XrSceneComponentsMSFT.Buffercreate(long address, int capacity)Create aXrSceneComponentsMSFT.Bufferinstance at the specified memory.static XrSceneComponentsMSFTcreateSafe(long address)static XrSceneComponentsMSFT.BuffercreateSafe(long address, int capacity)static XrSceneComponentsMSFTmalloc()Returns a newXrSceneComponentsMSFTinstance allocated withmemAlloc.static XrSceneComponentsMSFT.Buffermalloc(int capacity)Returns a newXrSceneComponentsMSFT.Bufferinstance allocated withmemAlloc.static XrSceneComponentsMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneComponentsMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSceneComponentsMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneComponentsMSFTinstance allocated on the specifiedMemoryStack.static intncomponentCapacityInput(long struct)Unsafe version ofcomponentCapacityInput().static voidncomponentCapacityInput(long struct, int value)Sets the specified value to thecomponentCapacityInputfield of the specifiedstruct.static intncomponentCountOutput(long struct)Unsafe version ofcomponentCountOutput().static voidncomponentCountOutput(long struct, int value)Unsafe version ofcomponentCountOutput.static XrSceneComponentMSFT.Bufferncomponents(long struct)Unsafe version ofcomponents().static voidncomponents(long struct, XrSceneComponentMSFT.Buffer value)Unsafe version ofcomponents.longnext()NULLor a pointer to the next structure in a structure chain.XrSceneComponentsMSFTnext(long value)Sets the specified value to thenext()field.XrSceneComponentsMSFTnext(XrSceneMeshesMSFT value)Prepends the specifiedXrSceneMeshesMSFTvalue to thenextchain.XrSceneComponentsMSFTnext(XrSceneObjectsMSFT value)Prepends the specifiedXrSceneObjectsMSFTvalue to thenextchain.XrSceneComponentsMSFTnext(XrScenePlanesMSFT value)Prepends the specifiedXrScenePlanesMSFTvalue to thenextchain.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrSceneComponentsMSFTset(int type, long next, int componentCapacityInput, int componentCountOutput, XrSceneComponentMSFT.Buffer components)Initializes this struct with the specified values.XrSceneComponentsMSFTset(XrSceneComponentsMSFT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrSceneComponentsMSFTtype(int value)Sets the specified value to thetype()field.XrSceneComponentsMSFTtype$Default()Sets theTYPE_SCENE_COMPONENTS_MSFTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrSceneComponentsMSFT
public XrSceneComponentsMSFT(java.nio.ByteBuffer container)
Creates aXrSceneComponentsMSFTinstance 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.
-
componentCapacityInput
public int componentCapacityInput()
the capacity of the array, or 0 to indicate a request to retrieve the required capacity.
-
componentCountOutput
public int componentCountOutput()
a pointer to the count of components, or a pointer to the required capacity in the case thatcomponentCapacityInputis 0.
-
components
@Nullable public XrSceneComponentMSFT.Buffer components()
an array ofXrSceneComponentMSFT.
-
type
public XrSceneComponentsMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSceneComponentsMSFT type$Default()
Sets theTYPE_SCENE_COMPONENTS_MSFTvalue to thetype()field.
-
next
public XrSceneComponentsMSFT next(long value)
Sets the specified value to thenext()field.
-
next
public XrSceneComponentsMSFT next(XrSceneMeshesMSFT value)
Prepends the specifiedXrSceneMeshesMSFTvalue to thenextchain.
-
next
public XrSceneComponentsMSFT next(XrSceneObjectsMSFT value)
Prepends the specifiedXrSceneObjectsMSFTvalue to thenextchain.
-
next
public XrSceneComponentsMSFT next(XrScenePlanesMSFT value)
Prepends the specifiedXrScenePlanesMSFTvalue to thenextchain.
-
componentCapacityInput
public XrSceneComponentsMSFT componentCapacityInput(int value)
Sets the specified value to thecomponentCapacityInput()field.
-
componentCountOutput
public XrSceneComponentsMSFT componentCountOutput(int value)
Sets the specified value to thecomponentCountOutput()field.
-
components
public XrSceneComponentsMSFT components(@Nullable XrSceneComponentMSFT.Buffer value)
Sets the address of the specifiedXrSceneComponentMSFT.Bufferto 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
public XrSceneComponentsMSFT set(XrSceneComponentsMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSceneComponentsMSFT malloc()
Returns a newXrSceneComponentsMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSceneComponentsMSFT calloc()
Returns a newXrSceneComponentsMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSceneComponentsMSFT create()
Returns a newXrSceneComponentsMSFTinstance allocated withBufferUtils.
-
create
public static XrSceneComponentsMSFT create(long address)
Returns a newXrSceneComponentsMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrSceneComponentsMSFT createSafe(long address)
-
malloc
public static XrSceneComponentsMSFT.Buffer malloc(int capacity)
Returns a newXrSceneComponentsMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSceneComponentsMSFT.Buffer calloc(int capacity)
Returns a newXrSceneComponentsMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneComponentsMSFT.Buffer create(int capacity)
Returns a newXrSceneComponentsMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneComponentsMSFT.Buffer create(long address, int capacity)
Create aXrSceneComponentsMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSceneComponentsMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSceneComponentsMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneComponentsMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSceneComponentsMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneComponentsMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSceneComponentsMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneComponentsMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSceneComponentsMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneComponentsMSFT.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().
-
ncomponentCapacityInput
public static int ncomponentCapacityInput(long struct)
Unsafe version ofcomponentCapacityInput().
-
ncomponentCountOutput
public static int ncomponentCountOutput(long struct)
Unsafe version ofcomponentCountOutput().
-
ncomponents
@Nullable public static XrSceneComponentMSFT.Buffer ncomponents(long struct)
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 thecomponentCapacityInputfield of the specifiedstruct.
-
ncomponentCountOutput
public static void ncomponentCountOutput(long struct, int value)Unsafe version ofcomponentCountOutput.
-
ncomponents
public static void ncomponents(long struct, @Nullable XrSceneComponentMSFT.Buffer value)Unsafe version ofcomponents.
-
-