Package org.lwjgl.openxr
Class XrBodyJointLocationHTC
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrBodyJointLocationHTC>
org.lwjgl.openxr.XrBodyJointLocationHTC
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrBodyJointLocationHTC
extends org.lwjgl.system.Struct<XrBodyJointLocationHTC>
implements org.lwjgl.system.NativeResource
Describes the location and location flag of a body joint.
Description
XrBodyJointLocationHTC structure describes the position, orientation, and location flag of a body joint. It is populated by the runtime during a call to LocateBodyJointsHTC.
Valid Usage (Implicit)
- The
XR_HTC_body_trackingextension must be enabled prior to usingXrBodyJointLocationHTC
See Also
XrBodyJointLocationsHTC, XrPosef
Layout
struct XrBodyJointLocationHTC {
XrSpaceLocationFlags locationFlags();
XrPosef pose();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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
ConstructorsConstructorDescriptionXrBodyJointLocationHTC(ByteBuffer container) Creates aXrBodyJointLocationHTCinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrBodyJointLocationHTCcalloc()Returns a newXrBodyJointLocationHTCinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrBodyJointLocationHTC.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrBodyJointLocationHTC.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrBodyJointLocationHTCcalloc(org.lwjgl.system.MemoryStack stack) Returns a newXrBodyJointLocationHTCinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrBodyJointLocationHTCcreate()Returns a newXrBodyJointLocationHTCinstance allocated withBufferUtils.create(int capacity) Returns a newXrBodyJointLocationHTC.Bufferinstance allocated withBufferUtils.static XrBodyJointLocationHTCcreate(long address) Returns a newXrBodyJointLocationHTCinstance for the specified memory address.create(long address, int capacity) Create aXrBodyJointLocationHTC.Bufferinstance at the specified memory.static @Nullable XrBodyJointLocationHTCcreateSafe(long address) static @Nullable XrBodyJointLocationHTC.BuffercreateSafe(long address, int capacity) longa bitfield, with bit masks defined inXrSpaceLocationFlagBits, to indicate which members contain valid data.static XrBodyJointLocationHTCmalloc()Returns a newXrBodyJointLocationHTCinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrBodyJointLocationHTC.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrBodyJointLocationHTC.Bufferinstance allocated on the specifiedMemoryStack.static XrBodyJointLocationHTCmalloc(org.lwjgl.system.MemoryStack stack) Returns a newXrBodyJointLocationHTCinstance allocated on the specifiedMemoryStack.static longnlocationFlags(long struct) Unsafe version oflocationFlags().static XrPosefnpose(long struct) Unsafe version ofpose().pose()anXrPosefdescribing the position and orientation of the origin of a body joint within the reference frame of the correspondingXrBodyJointsLocateInfoHTC::baseSpace.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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
-
XrBodyJointLocationHTC
Creates aXrBodyJointLocationHTCinstance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<XrBodyJointLocationHTC>
-
locationFlags
public long locationFlags()a bitfield, with bit masks defined inXrSpaceLocationFlagBits, to indicate which members contain valid data. For those bits that are not set, reading the relevant fields in this structure and its nested structures must be defined, but the values are unspecified and not meaningful. -
pose
anXrPosefdescribing the position and orientation of the origin of a body joint within the reference frame of the correspondingXrBodyJointsLocateInfoHTC::baseSpace. -
malloc
Returns a newXrBodyJointLocationHTCinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrBodyJointLocationHTCinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrBodyJointLocationHTCinstance allocated withBufferUtils. -
create
Returns a newXrBodyJointLocationHTCinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrBodyJointLocationHTC.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrBodyJointLocationHTC.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrBodyJointLocationHTC.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrBodyJointLocationHTC.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrBodyJointLocationHTCinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrBodyJointLocationHTCinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrBodyJointLocationHTC.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrBodyJointLocationHTC.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static XrBodyJointLocationHTC.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrBodyJointLocationHTC.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().
-