Package org.lwjgl.openxr
Class XrSpaceLocation
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSpaceLocation
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSpaceLocation extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceContains info about a space.Valid Usage (Implicit)
typemust beTYPE_SPACE_LOCATIONnextmust beNULLor a valid pointer to the next structure in a structure chain. See also:XrEyeGazeSampleTimeEXT,XrSpaceVelocitylocationFlagsmust be 0 or a valid combination ofXrSpaceLocationFlagBitsvalues
See Also
XrPosef,XrSpaceVelocity,LocateSpaceLayout
struct XrSpaceLocation { XrStructureTypetype(); void *next(); XrSpaceLocationFlagslocationFlags();XrPosefpose(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSpaceLocation.BufferAn array ofXrSpaceLocationstructs.
-
Constructor Summary
Constructors Constructor Description XrSpaceLocation(java.nio.ByteBuffer container)Creates aXrSpaceLocationinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSpaceLocationcalloc()Returns a newXrSpaceLocationinstance allocated withmemCalloc.static XrSpaceLocation.Buffercalloc(int capacity)Returns a newXrSpaceLocation.Bufferinstance allocated withmemCalloc.static XrSpaceLocation.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSpaceLocation.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSpaceLocationcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSpaceLocationinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSpaceLocationcreate()Returns a newXrSpaceLocationinstance allocated withBufferUtils.static XrSpaceLocation.Buffercreate(int capacity)Returns a newXrSpaceLocation.Bufferinstance allocated withBufferUtils.static XrSpaceLocationcreate(long address)Returns a newXrSpaceLocationinstance for the specified memory address.static XrSpaceLocation.Buffercreate(long address, int capacity)Create aXrSpaceLocation.Bufferinstance at the specified memory.static XrSpaceLocationcreateSafe(long address)static XrSpaceLocation.BuffercreateSafe(long address, int capacity)longlocationFlags()a bitfield, with bit masks defined inXrSpaceLocationFlagBits, to indicate which members contain valid data.XrSpaceLocationlocationFlags(long value)Sets the specified value to thelocationFlags()field.static XrSpaceLocationmalloc()Returns a newXrSpaceLocationinstance allocated withmemAlloc.static XrSpaceLocation.Buffermalloc(int capacity)Returns a newXrSpaceLocation.Bufferinstance allocated withmemAlloc.static XrSpaceLocation.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSpaceLocation.Bufferinstance allocated on the specifiedMemoryStack.static XrSpaceLocationmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSpaceLocationinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain, such asXrSpaceVelocity.XrSpaceLocationnext(long value)Sets the specified value to thenext()field.XrSpaceLocationnext(XrEyeGazeSampleTimeEXT value)Prepends the specifiedXrEyeGazeSampleTimeEXTvalue to thenextchain.XrSpaceLocationnext(XrSpaceVelocity value)Prepends the specifiedXrSpaceVelocityvalue to thenextchain.static longnlocationFlags(long struct)Unsafe version oflocationFlags().static voidnlocationFlags(long struct, long value)Unsafe version oflocationFlags.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static XrPosefnpose(long struct)Unsafe version ofpose().static voidnpose(long struct, XrPosef value)Unsafe version ofpose.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrPosefpose()anXrPosefdefining the position and orientation of the origin ofLocateSpace::spacewithin the reference frame ofLocateSpace::baseSpace.XrSpaceLocationpose(java.util.function.Consumer<XrPosef> consumer)Passes thepose()field to the specifiedConsumer.XrSpaceLocationpose(XrPosef value)XrSpaceLocationset(int type, long next, long locationFlags, XrPosef pose)Initializes this struct with the specified values.XrSpaceLocationset(XrSpaceLocation src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrSpaceLocationtype(int value)Sets the specified value to thetype()field.XrSpaceLocationtype$Default()Sets theTYPE_SPACE_LOCATIONvalue to thetype()field.
-
-
-
Constructor Detail
-
XrSpaceLocation
public XrSpaceLocation(java.nio.ByteBuffer container)
Creates aXrSpaceLocationinstance 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, such asXrSpaceVelocity.
-
locationFlags
public long locationFlags()
a bitfield, with bit masks defined inXrSpaceLocationFlagBits, to indicate which members contain valid data. If none of the bits are set, no other fields in this structure should be considered to be valid or meaningful.
-
pose
public XrPosef pose()
anXrPosefdefining the position and orientation of the origin ofLocateSpace::spacewithin the reference frame ofLocateSpace::baseSpace.
-
type
public XrSpaceLocation type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSpaceLocation type$Default()
Sets theTYPE_SPACE_LOCATIONvalue to thetype()field.
-
next
public XrSpaceLocation next(long value)
Sets the specified value to thenext()field.
-
next
public XrSpaceLocation next(XrEyeGazeSampleTimeEXT value)
Prepends the specifiedXrEyeGazeSampleTimeEXTvalue to thenextchain.
-
next
public XrSpaceLocation next(XrSpaceVelocity value)
Prepends the specifiedXrSpaceVelocityvalue to thenextchain.
-
locationFlags
public XrSpaceLocation locationFlags(long value)
Sets the specified value to thelocationFlags()field.
-
pose
public XrSpaceLocation pose(XrPosef value)
-
pose
public XrSpaceLocation pose(java.util.function.Consumer<XrPosef> consumer)
Passes thepose()field to the specifiedConsumer.
-
set
public XrSpaceLocation set(int type, long next, long locationFlags, XrPosef pose)
Initializes this struct with the specified values.
-
set
public XrSpaceLocation set(XrSpaceLocation src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSpaceLocation malloc()
Returns a newXrSpaceLocationinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSpaceLocation calloc()
Returns a newXrSpaceLocationinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSpaceLocation create()
Returns a newXrSpaceLocationinstance allocated withBufferUtils.
-
create
public static XrSpaceLocation create(long address)
Returns a newXrSpaceLocationinstance for the specified memory address.
-
createSafe
@Nullable public static XrSpaceLocation createSafe(long address)
-
malloc
public static XrSpaceLocation.Buffer malloc(int capacity)
Returns a newXrSpaceLocation.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSpaceLocation.Buffer calloc(int capacity)
Returns a newXrSpaceLocation.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSpaceLocation.Buffer create(int capacity)
Returns a newXrSpaceLocation.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSpaceLocation.Buffer create(long address, int capacity)
Create aXrSpaceLocation.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSpaceLocation.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSpaceLocation malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSpaceLocationinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSpaceLocation calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSpaceLocationinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSpaceLocation.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSpaceLocation.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSpaceLocation.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSpaceLocation.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().
-
nlocationFlags
public static long nlocationFlags(long struct)
Unsafe version oflocationFlags().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nlocationFlags
public static void nlocationFlags(long struct, long value)Unsafe version oflocationFlags.
-
-