Package org.lwjgl.openxr
Class XrPosef
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct XrPosef {
XrQuaternionf orientation;
XrVector3f position;
}-
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
ConstructorsConstructorDescriptionXrPosef(ByteBuffer container) Creates aXrPosefinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrPosefcalloc()Returns a newXrPosefinstance allocated withmemCalloc.static XrPosef.Buffercalloc(int capacity) Returns a newXrPosef.Bufferinstance allocated withmemCalloc.static XrPosef.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrPosef.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrPosefcalloc(MemoryStack stack) Returns a newXrPosefinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrPosefcreate()Returns a newXrPosefinstance allocated withBufferUtils.static XrPosef.Buffercreate(int capacity) Returns a newXrPosef.Bufferinstance allocated withBufferUtils.static XrPosefcreate(long address) Returns a newXrPosefinstance for the specified memory address.static XrPosef.Buffercreate(long address, int capacity) Create aXrPosef.Bufferinstance at the specified memory.static @Nullable XrPosefcreateSafe(long address) static @Nullable XrPosef.BuffercreateSafe(long address, int capacity) static XrPosefmalloc()Returns a newXrPosefinstance allocated withmemAlloc.static XrPosef.Buffermalloc(int capacity) Returns a newXrPosef.Bufferinstance allocated withmemAlloc.static XrPosef.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrPosef.Bufferinstance allocated on the specifiedMemoryStack.static XrPosefmalloc(MemoryStack stack) Returns a newXrPosefinstance allocated on the specifiedMemoryStack.static XrQuaternionfnorientation(long struct) Unsafe version oforientation().static voidnorientation(long struct, XrQuaternionf value) Unsafe version oforientation.static XrVector3fnposition$(long struct) Unsafe version ofposition$().static voidnposition$(long struct, XrVector3f value) Unsafe version ofposition$.orientation(Consumer<XrQuaternionf> consumer) Passes theorientationfield to the specifiedConsumer.orientation(XrQuaternionf value) Copies the specifiedXrQuaternionfto theorientationfield.position$(Consumer<XrVector3f> consumer) Passes thepositionfield to the specifiedConsumer.position$(XrVector3f value) Copies the specifiedXrVector3fto thepositionfield.Copies the specified struct data to this struct.set(XrQuaternionf orientation, XrVector3f position$) Initializes this struct with the specified values.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. -
ORIENTATION
public static final int ORIENTATIONThe struct member offsets. -
POSITION
public static final int POSITIONThe struct member offsets.
-
-
Constructor Details
-
XrPosef
Creates aXrPosefinstance 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). -
orientation
- Returns:
- a
XrQuaternionfview of theorientationfield.
-
position$
- Returns:
- a
XrVector3fview of thepositionfield.
-
orientation
Copies the specifiedXrQuaternionfto theorientationfield. -
orientation
Passes theorientationfield to the specifiedConsumer. -
position$
Copies the specifiedXrVector3fto thepositionfield. -
position$
Passes thepositionfield to the specifiedConsumer. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXrPosefinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrPosefinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrPosefinstance allocated withBufferUtils. -
create
Returns a newXrPosefinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrPosef.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrPosef.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrPosef.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrPosef.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrPosefinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrPosefinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrPosef.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrPosef.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
norientation
Unsafe version oforientation(). -
nposition$
Unsafe version ofposition$(). -
norientation
Unsafe version oforientation. -
nposition$
Unsafe version ofposition$.
-