Package org.lwjgl.openxr
Class XrSceneComponentLocationMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSceneComponentLocationMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSceneComponentLocationMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescribes the location of a scene component.Valid Usage (Implicit)
- The
XR_MSFT_scene_understandingextension must be enabled prior to usingXrSceneComponentLocationMSFT flagsmust be 0 or a valid combination ofXrSpaceLocationFlagBitsvalues
See Also
XrPosef,XrSceneComponentLocationsMSFTLayout
struct XrSceneComponentLocationMSFT { XrSpaceLocationFlagsflags();XrPosefpose(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSceneComponentLocationMSFT.BufferAn array ofXrSceneComponentLocationMSFTstructs.
-
Constructor Summary
Constructors Constructor Description XrSceneComponentLocationMSFT(java.nio.ByteBuffer container)Creates aXrSceneComponentLocationMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSceneComponentLocationMSFTcalloc()Returns a newXrSceneComponentLocationMSFTinstance allocated withmemCalloc.static XrSceneComponentLocationMSFT.Buffercalloc(int capacity)Returns a newXrSceneComponentLocationMSFT.Bufferinstance allocated withmemCalloc.static XrSceneComponentLocationMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneComponentLocationMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneComponentLocationMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneComponentLocationMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneComponentLocationMSFTcreate()Returns a newXrSceneComponentLocationMSFTinstance allocated withBufferUtils.static XrSceneComponentLocationMSFT.Buffercreate(int capacity)Returns a newXrSceneComponentLocationMSFT.Bufferinstance allocated withBufferUtils.static XrSceneComponentLocationMSFTcreate(long address)Returns a newXrSceneComponentLocationMSFTinstance for the specified memory address.static XrSceneComponentLocationMSFT.Buffercreate(long address, int capacity)Create aXrSceneComponentLocationMSFT.Bufferinstance at the specified memory.static XrSceneComponentLocationMSFTcreateSafe(long address)static XrSceneComponentLocationMSFT.BuffercreateSafe(long address, int capacity)longflags()a bitfield, with bit masks defined inXrSpaceLocationFlagBits, to indicate which members contain valid data.XrSceneComponentLocationMSFTflags(long value)Sets the specified value to theflags()field.static XrSceneComponentLocationMSFTmalloc()Returns a newXrSceneComponentLocationMSFTinstance allocated withmemAlloc.static XrSceneComponentLocationMSFT.Buffermalloc(int capacity)Returns a newXrSceneComponentLocationMSFT.Bufferinstance allocated withmemAlloc.static XrSceneComponentLocationMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneComponentLocationMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSceneComponentLocationMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneComponentLocationMSFTinstance allocated on the specifiedMemoryStack.static longnflags(long struct)Unsafe version offlags().static voidnflags(long struct, long value)Unsafe version offlags.static XrPosefnpose(long struct)Unsafe version ofpose().static voidnpose(long struct, XrPosef value)Unsafe version ofpose.XrPosefpose()anXrPosefdefining the position and orientation of the scene component within the reference frame of the correspondingXrSceneComponentsLocateInfoMSFT::baseSpace.XrSceneComponentLocationMSFTpose(java.util.function.Consumer<XrPosef> consumer)Passes thepose()field to the specifiedConsumer.XrSceneComponentLocationMSFTpose(XrPosef value)XrSceneComponentLocationMSFTset(long flags, XrPosef pose)Initializes this struct with the specified values.XrSceneComponentLocationMSFTset(XrSceneComponentLocationMSFT src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
XrSceneComponentLocationMSFT
public XrSceneComponentLocationMSFT(java.nio.ByteBuffer container)
Creates aXrSceneComponentLocationMSFTinstance 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
-
flags
public long flags()
a bitfield, with bit masks defined inXrSpaceLocationFlagBits, to indicate which members contain valid data.
-
pose
public XrPosef pose()
anXrPosefdefining the position and orientation of the scene component within the reference frame of the correspondingXrSceneComponentsLocateInfoMSFT::baseSpace.
-
flags
public XrSceneComponentLocationMSFT flags(long value)
Sets the specified value to theflags()field.
-
pose
public XrSceneComponentLocationMSFT pose(XrPosef value)
-
pose
public XrSceneComponentLocationMSFT pose(java.util.function.Consumer<XrPosef> consumer)
Passes thepose()field to the specifiedConsumer.
-
set
public XrSceneComponentLocationMSFT set(long flags, XrPosef pose)
Initializes this struct with the specified values.
-
set
public XrSceneComponentLocationMSFT set(XrSceneComponentLocationMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSceneComponentLocationMSFT malloc()
Returns a newXrSceneComponentLocationMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSceneComponentLocationMSFT calloc()
Returns a newXrSceneComponentLocationMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSceneComponentLocationMSFT create()
Returns a newXrSceneComponentLocationMSFTinstance allocated withBufferUtils.
-
create
public static XrSceneComponentLocationMSFT create(long address)
Returns a newXrSceneComponentLocationMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrSceneComponentLocationMSFT createSafe(long address)
-
malloc
public static XrSceneComponentLocationMSFT.Buffer malloc(int capacity)
Returns a newXrSceneComponentLocationMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSceneComponentLocationMSFT.Buffer calloc(int capacity)
Returns a newXrSceneComponentLocationMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneComponentLocationMSFT.Buffer create(int capacity)
Returns a newXrSceneComponentLocationMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneComponentLocationMSFT.Buffer create(long address, int capacity)
Create aXrSceneComponentLocationMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSceneComponentLocationMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSceneComponentLocationMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneComponentLocationMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSceneComponentLocationMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneComponentLocationMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSceneComponentLocationMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneComponentLocationMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSceneComponentLocationMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneComponentLocationMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nflags
public static long nflags(long struct)
Unsafe version offlags().
-
nflags
public static void nflags(long struct, long value)Unsafe version offlags.
-
-