Package org.lwjgl.openxr
Class XrHandJointLocationEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrHandJointLocationEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrHandJointLocationEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescribes the location and radius of a hand joint.Description
If the returned
locationFlagshasSPACE_LOCATION_POSITION_VALID_BITset, the returned radius must be a positive value.If the returned
locationFlagshasSPACE_LOCATION_POSITION_VALID_BITunset, the returned radius value is undefined and should be avoided.Valid Usage (Implicit)
- The
XR_EXT_hand_trackingextension must be enabled prior to usingXrHandJointLocationEXT locationFlagsmust be 0 or a valid combination ofXrSpaceLocationFlagBitsvalues
See Also
XrHandJointLocationsEXT,XrPosefLayout
struct XrHandJointLocationEXT { XrSpaceLocationFlagslocationFlags();XrPosefpose(); floatradius(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrHandJointLocationEXT.BufferAn array ofXrHandJointLocationEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intLOCATIONFLAGS
POSE
RADIUSThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description XrHandJointLocationEXT(java.nio.ByteBuffer container)Creates aXrHandJointLocationEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrHandJointLocationEXTcalloc()Returns a newXrHandJointLocationEXTinstance allocated withmemCalloc.static XrHandJointLocationEXT.Buffercalloc(int capacity)Returns a newXrHandJointLocationEXT.Bufferinstance allocated withmemCalloc.static XrHandJointLocationEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrHandJointLocationEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHandJointLocationEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrHandJointLocationEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHandJointLocationEXTcreate()Returns a newXrHandJointLocationEXTinstance allocated withBufferUtils.static XrHandJointLocationEXT.Buffercreate(int capacity)Returns a newXrHandJointLocationEXT.Bufferinstance allocated withBufferUtils.static XrHandJointLocationEXTcreate(long address)Returns a newXrHandJointLocationEXTinstance for the specified memory address.static XrHandJointLocationEXT.Buffercreate(long address, int capacity)Create aXrHandJointLocationEXT.Bufferinstance at the specified memory.static XrHandJointLocationEXTcreateSafe(long address)static XrHandJointLocationEXT.BuffercreateSafe(long address, int capacity)longlocationFlags()a bitfield, with bit masks defined inXrSpaceLocationFlagBits, to indicate which members contain valid data.XrHandJointLocationEXTlocationFlags(long value)Sets the specified value to thelocationFlags()field.static XrHandJointLocationEXTmalloc()Returns a newXrHandJointLocationEXTinstance allocated withmemAlloc.static XrHandJointLocationEXT.Buffermalloc(int capacity)Returns a newXrHandJointLocationEXT.Bufferinstance allocated withmemAlloc.static XrHandJointLocationEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrHandJointLocationEXT.Bufferinstance allocated on the specifiedMemoryStack.static XrHandJointLocationEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrHandJointLocationEXTinstance allocated on the specifiedMemoryStack.static longnlocationFlags(long struct)Unsafe version oflocationFlags().static voidnlocationFlags(long struct, long value)Unsafe version oflocationFlags.static XrPosefnpose(long struct)Unsafe version ofpose().static voidnpose(long struct, XrPosef value)Unsafe version ofpose.static floatnradius(long struct)Unsafe version ofradius().static voidnradius(long struct, float value)Unsafe version ofradius.XrPosefpose()anXrPosefdefining the position and orientation of the origin of a hand joint within the reference frame of the correspondingXrHandJointsLocateInfoEXT::baseSpace.XrHandJointLocationEXTpose(java.util.function.Consumer<XrPosef> consumer)Passes thepose()field to the specifiedConsumer.XrHandJointLocationEXTpose(XrPosef value)floatradius()afloatvalue radius of the corresponding joint in units of meters.XrHandJointLocationEXTradius(float value)Sets the specified value to theradius()field.XrHandJointLocationEXTset(long locationFlags, XrPosef pose, float radius)Initializes this struct with the specified values.XrHandJointLocationEXTset(XrHandJointLocationEXT src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
XrHandJointLocationEXT
public XrHandJointLocationEXT(java.nio.ByteBuffer container)
Creates aXrHandJointLocationEXTinstance 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
-
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 of a hand joint within the reference frame of the correspondingXrHandJointsLocateInfoEXT::baseSpace.
-
radius
public float radius()
afloatvalue radius of the corresponding joint in units of meters.
-
locationFlags
public XrHandJointLocationEXT locationFlags(long value)
Sets the specified value to thelocationFlags()field.
-
pose
public XrHandJointLocationEXT pose(XrPosef value)
-
pose
public XrHandJointLocationEXT pose(java.util.function.Consumer<XrPosef> consumer)
Passes thepose()field to the specifiedConsumer.
-
radius
public XrHandJointLocationEXT radius(float value)
Sets the specified value to theradius()field.
-
set
public XrHandJointLocationEXT set(long locationFlags, XrPosef pose, float radius)
Initializes this struct with the specified values.
-
set
public XrHandJointLocationEXT set(XrHandJointLocationEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrHandJointLocationEXT malloc()
Returns a newXrHandJointLocationEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrHandJointLocationEXT calloc()
Returns a newXrHandJointLocationEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrHandJointLocationEXT create()
Returns a newXrHandJointLocationEXTinstance allocated withBufferUtils.
-
create
public static XrHandJointLocationEXT create(long address)
Returns a newXrHandJointLocationEXTinstance for the specified memory address.
-
createSafe
@Nullable public static XrHandJointLocationEXT createSafe(long address)
-
malloc
public static XrHandJointLocationEXT.Buffer malloc(int capacity)
Returns a newXrHandJointLocationEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrHandJointLocationEXT.Buffer calloc(int capacity)
Returns a newXrHandJointLocationEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrHandJointLocationEXT.Buffer create(int capacity)
Returns a newXrHandJointLocationEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrHandJointLocationEXT.Buffer create(long address, int capacity)
Create aXrHandJointLocationEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrHandJointLocationEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrHandJointLocationEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrHandJointLocationEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrHandJointLocationEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrHandJointLocationEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrHandJointLocationEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrHandJointLocationEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrHandJointLocationEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrHandJointLocationEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nlocationFlags
public static long nlocationFlags(long struct)
Unsafe version oflocationFlags().
-
nradius
public static float nradius(long struct)
Unsafe version ofradius().
-
nlocationFlags
public static void nlocationFlags(long struct, long value)Unsafe version oflocationFlags.
-
nradius
public static void nradius(long struct, float value)Unsafe version ofradius.
-
-