Package org.lwjgl.openxr
Class XrSpaceLocationData
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
- Direct Known Subclasses:
XrSpaceLocationDataKHR
struct XrSpaceLocationData {
XrSpaceLocationFlags locationFlags;
XrPosef pose;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrSpaceLocationData(ByteBuffer container) Creates aXrSpaceLocationDatainstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrSpaceLocationDatacalloc()Returns a newXrSpaceLocationDatainstance allocated withmemCalloc.static XrSpaceLocationData.Buffercalloc(int capacity) Returns a newXrSpaceLocationData.Bufferinstance allocated withmemCalloc.static XrSpaceLocationData.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrSpaceLocationData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSpaceLocationDatacalloc(MemoryStack stack) Returns a newXrSpaceLocationDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSpaceLocationDatacreate()Returns a newXrSpaceLocationDatainstance allocated withBufferUtils.static XrSpaceLocationData.Buffercreate(int capacity) Returns a newXrSpaceLocationData.Bufferinstance allocated withBufferUtils.static XrSpaceLocationDatacreate(long address) Returns a newXrSpaceLocationDatainstance for the specified memory address.static XrSpaceLocationData.Buffercreate(long address, int capacity) Create aXrSpaceLocationData.Bufferinstance at the specified memory.static @Nullable XrSpaceLocationDatacreateSafe(long address) static @Nullable XrSpaceLocationData.BuffercreateSafe(long address, int capacity) longstatic XrSpaceLocationDatamalloc()Returns a newXrSpaceLocationDatainstance allocated withmemAlloc.static XrSpaceLocationData.Buffermalloc(int capacity) Returns a newXrSpaceLocationData.Bufferinstance allocated withmemAlloc.static XrSpaceLocationData.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrSpaceLocationData.Bufferinstance allocated on the specifiedMemoryStack.static XrSpaceLocationDatamalloc(MemoryStack stack) Returns a newXrSpaceLocationDatainstance allocated on the specifiedMemoryStack.static longnlocationFlags(long struct) Unsafe version oflocationFlags().static XrPosefnpose(long struct) Unsafe version ofpose().pose()intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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. -
LOCATIONFLAGS
public static final int LOCATIONFLAGSThe struct member offsets. -
POSE
public static final int POSEThe struct member offsets.
-
-
Constructor Details
-
XrSpaceLocationData
Creates aXrSpaceLocationDatainstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrSpaceLocationData>
-
locationFlags
public long locationFlags()- Returns:
- the value of the
locationFlagsfield.
-
pose
- Returns:
- a
XrPosefview of theposefield.
-
malloc
Returns a newXrSpaceLocationDatainstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSpaceLocationDatainstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSpaceLocationDatainstance allocated withBufferUtils. -
create
Returns a newXrSpaceLocationDatainstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSpaceLocationData.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSpaceLocationData.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSpaceLocationData.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSpaceLocationData.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSpaceLocationDatainstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSpaceLocationDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrSpaceLocationData.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrSpaceLocationData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nlocationFlags
public static long nlocationFlags(long struct) Unsafe version oflocationFlags(). -
npose
Unsafe version ofpose().
-