Package org.lwjgl.openxr
Class XrSceneComponentsLocateInfoMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSceneComponentsLocateInfoMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSceneComponentsLocateInfoMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescribes the information to locate scene components.Valid Usage (Implicit)
- The
XR_MSFT_scene_understandingextension must be enabled prior to usingXrSceneComponentsLocateInfoMSFT typemust beTYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chainbaseSpacemust be a validXrSpacehandle- If
componentIdCountis not 0,componentIdsmust be a pointer to an array ofcomponentIdCountXrUuidMSFTstructures
See Also
XrUuidMSFT,LocateSceneComponentsMSFTLayout
struct XrSceneComponentsLocateInfoMSFT { XrStructureTypetype(); void const *next(); XrSpacebaseSpace(); XrTimetime(); uint32_tcomponentIdCount();XrUuidMSFTconst *componentIds(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSceneComponentsLocateInfoMSFT.BufferAn array ofXrSceneComponentsLocateInfoMSFTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBASESPACE
COMPONENTIDCOUNT
COMPONENTIDS
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTIME
TYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSceneComponentsLocateInfoMSFT(java.nio.ByteBuffer container)Creates aXrSceneComponentsLocateInfoMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longbaseSpace()anXrSpacewithin which the scene components will be located.XrSceneComponentsLocateInfoMSFTbaseSpace(XrSpace value)Sets the specified value to thebaseSpace()field.static XrSceneComponentsLocateInfoMSFTcalloc()Returns a newXrSceneComponentsLocateInfoMSFTinstance allocated withmemCalloc.static XrSceneComponentsLocateInfoMSFT.Buffercalloc(int capacity)Returns a newXrSceneComponentsLocateInfoMSFT.Bufferinstance allocated withmemCalloc.static XrSceneComponentsLocateInfoMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneComponentsLocateInfoMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneComponentsLocateInfoMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneComponentsLocateInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcomponentIdCount()auint32_tdescribing the count of elements in thecomponentIdsarray.XrSceneComponentsLocateInfoMSFTcomponentIdCount(int value)Sets the specified value to thecomponentIdCount()field.XrUuidMSFT.BuffercomponentIds()an array ofXrUuidMSFTidentifiers for the scene components to location.XrSceneComponentsLocateInfoMSFTcomponentIds(XrUuidMSFT.Buffer value)Sets the address of the specifiedXrUuidMSFT.Bufferto thecomponentIds()field.static XrSceneComponentsLocateInfoMSFTcreate()Returns a newXrSceneComponentsLocateInfoMSFTinstance allocated withBufferUtils.static XrSceneComponentsLocateInfoMSFT.Buffercreate(int capacity)Returns a newXrSceneComponentsLocateInfoMSFT.Bufferinstance allocated withBufferUtils.static XrSceneComponentsLocateInfoMSFTcreate(long address)Returns a newXrSceneComponentsLocateInfoMSFTinstance for the specified memory address.static XrSceneComponentsLocateInfoMSFT.Buffercreate(long address, int capacity)Create aXrSceneComponentsLocateInfoMSFT.Bufferinstance at the specified memory.static XrSceneComponentsLocateInfoMSFTcreateSafe(long address)static XrSceneComponentsLocateInfoMSFT.BuffercreateSafe(long address, int capacity)static XrSceneComponentsLocateInfoMSFTmalloc()Returns a newXrSceneComponentsLocateInfoMSFTinstance allocated withmemAlloc.static XrSceneComponentsLocateInfoMSFT.Buffermalloc(int capacity)Returns a newXrSceneComponentsLocateInfoMSFT.Bufferinstance allocated withmemAlloc.static XrSceneComponentsLocateInfoMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneComponentsLocateInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSceneComponentsLocateInfoMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneComponentsLocateInfoMSFTinstance allocated on the specifiedMemoryStack.static longnbaseSpace(long struct)Unsafe version ofbaseSpace().static voidnbaseSpace(long struct, XrSpace value)Unsafe version ofbaseSpace.static intncomponentIdCount(long struct)Unsafe version ofcomponentIdCount().static voidncomponentIdCount(long struct, int value)Sets the specified value to thecomponentIdCountfield of the specifiedstruct.static XrUuidMSFT.BufferncomponentIds(long struct)Unsafe version ofcomponentIds().static voidncomponentIds(long struct, XrUuidMSFT.Buffer value)Unsafe version ofcomponentIds.longnext()NULLor a pointer to the next structure in a structure chain.XrSceneComponentsLocateInfoMSFTnext(long value)Sets the specified value to thenext()field.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static longntime(long struct)Unsafe version oftime().static voidntime(long struct, long value)Unsafe version oftime.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrSceneComponentsLocateInfoMSFTset(int type, long next, XrSpace baseSpace, long time, int componentIdCount, XrUuidMSFT.Buffer componentIds)Initializes this struct with the specified values.XrSceneComponentsLocateInfoMSFTset(XrSceneComponentsLocateInfoMSFT src)Copies the specified struct data to this struct.intsizeof()longtime()anXrTimeat which to locate the scene components.XrSceneComponentsLocateInfoMSFTtime(long value)Sets the specified value to thetime()field.inttype()theXrStructureTypeof this structure.XrSceneComponentsLocateInfoMSFTtype(int value)Sets the specified value to thetype()field.XrSceneComponentsLocateInfoMSFTtype$Default()Sets theTYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFTvalue to thetype()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrSceneComponentsLocateInfoMSFT
public XrSceneComponentsLocateInfoMSFT(java.nio.ByteBuffer container)
Creates aXrSceneComponentsLocateInfoMSFTinstance 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 or this extension.
-
baseSpace
public long baseSpace()
anXrSpacewithin which the scene components will be located.
-
time
public long time()
anXrTimeat which to locate the scene components.
-
componentIdCount
public int componentIdCount()
auint32_tdescribing the count of elements in thecomponentIdsarray.
-
componentIds
@Nullable public XrUuidMSFT.Buffer componentIds()
an array ofXrUuidMSFTidentifiers for the scene components to location.
-
type
public XrSceneComponentsLocateInfoMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSceneComponentsLocateInfoMSFT type$Default()
Sets theTYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFTvalue to thetype()field.
-
next
public XrSceneComponentsLocateInfoMSFT next(long value)
Sets the specified value to thenext()field.
-
baseSpace
public XrSceneComponentsLocateInfoMSFT baseSpace(XrSpace value)
Sets the specified value to thebaseSpace()field.
-
time
public XrSceneComponentsLocateInfoMSFT time(long value)
Sets the specified value to thetime()field.
-
componentIdCount
public XrSceneComponentsLocateInfoMSFT componentIdCount(int value)
Sets the specified value to thecomponentIdCount()field.
-
componentIds
public XrSceneComponentsLocateInfoMSFT componentIds(@Nullable XrUuidMSFT.Buffer value)
Sets the address of the specifiedXrUuidMSFT.Bufferto thecomponentIds()field.
-
set
public XrSceneComponentsLocateInfoMSFT set(int type, long next, XrSpace baseSpace, long time, int componentIdCount, @Nullable XrUuidMSFT.Buffer componentIds)
Initializes this struct with the specified values.
-
set
public XrSceneComponentsLocateInfoMSFT set(XrSceneComponentsLocateInfoMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSceneComponentsLocateInfoMSFT malloc()
Returns a newXrSceneComponentsLocateInfoMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSceneComponentsLocateInfoMSFT calloc()
Returns a newXrSceneComponentsLocateInfoMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSceneComponentsLocateInfoMSFT create()
Returns a newXrSceneComponentsLocateInfoMSFTinstance allocated withBufferUtils.
-
create
public static XrSceneComponentsLocateInfoMSFT create(long address)
Returns a newXrSceneComponentsLocateInfoMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrSceneComponentsLocateInfoMSFT createSafe(long address)
-
malloc
public static XrSceneComponentsLocateInfoMSFT.Buffer malloc(int capacity)
Returns a newXrSceneComponentsLocateInfoMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSceneComponentsLocateInfoMSFT.Buffer calloc(int capacity)
Returns a newXrSceneComponentsLocateInfoMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneComponentsLocateInfoMSFT.Buffer create(int capacity)
Returns a newXrSceneComponentsLocateInfoMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneComponentsLocateInfoMSFT.Buffer create(long address, int capacity)
Create aXrSceneComponentsLocateInfoMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSceneComponentsLocateInfoMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSceneComponentsLocateInfoMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneComponentsLocateInfoMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSceneComponentsLocateInfoMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneComponentsLocateInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSceneComponentsLocateInfoMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneComponentsLocateInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSceneComponentsLocateInfoMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneComponentsLocateInfoMSFT.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().
-
nbaseSpace
public static long nbaseSpace(long struct)
Unsafe version ofbaseSpace().
-
ntime
public static long ntime(long struct)
Unsafe version oftime().
-
ncomponentIdCount
public static int ncomponentIdCount(long struct)
Unsafe version ofcomponentIdCount().
-
ncomponentIds
@Nullable public static XrUuidMSFT.Buffer ncomponentIds(long struct)
Unsafe version ofcomponentIds().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
ntime
public static void ntime(long struct, long value)Unsafe version oftime.
-
ncomponentIdCount
public static void ncomponentIdCount(long struct, int value)Sets the specified value to thecomponentIdCountfield of the specifiedstruct.
-
ncomponentIds
public static void ncomponentIds(long struct, @Nullable XrUuidMSFT.Buffer value)Unsafe version ofcomponentIds.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-