Package org.lwjgl.openxr
Class XrHandTrackerCreateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrHandTrackerCreateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrHandTrackerCreateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceInformation to create a hand joints handle.Valid Usage (Implicit)
- The
XR_EXT_hand_trackingextension must be enabled prior to usingXrHandTrackerCreateInfoEXT typemust beTYPE_HAND_TRACKER_CREATE_INFO_EXTnextmust beNULLor a valid pointer to the next structure in a structure chain. See also:XrHandPoseTypeInfoMSFThandmust be a validXrHandEXTvaluehandJointSetmust be a validXrHandJointSetEXTvalue
See Also
Layout
struct XrHandTrackerCreateInfoEXT { XrStructureTypetype(); void const *next(); XrHandEXThand(); XrHandJointSetEXThandJointSet(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrHandTrackerCreateInfoEXT.BufferAn array ofXrHandTrackerCreateInfoEXTstructs.
-
Constructor Summary
Constructors Constructor Description XrHandTrackerCreateInfoEXT(java.nio.ByteBuffer container)Creates aXrHandTrackerCreateInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrHandTrackerCreateInfoEXTcalloc()Returns a newXrHandTrackerCreateInfoEXTinstance allocated withmemCalloc.static XrHandTrackerCreateInfoEXT.Buffercalloc(int capacity)Returns a newXrHandTrackerCreateInfoEXT.Bufferinstance allocated withmemCalloc.static XrHandTrackerCreateInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrHandTrackerCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHandTrackerCreateInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrHandTrackerCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHandTrackerCreateInfoEXTcreate()Returns a newXrHandTrackerCreateInfoEXTinstance allocated withBufferUtils.static XrHandTrackerCreateInfoEXT.Buffercreate(int capacity)Returns a newXrHandTrackerCreateInfoEXT.Bufferinstance allocated withBufferUtils.static XrHandTrackerCreateInfoEXTcreate(long address)Returns a newXrHandTrackerCreateInfoEXTinstance for the specified memory address.static XrHandTrackerCreateInfoEXT.Buffercreate(long address, int capacity)Create aXrHandTrackerCreateInfoEXT.Bufferinstance at the specified memory.static XrHandTrackerCreateInfoEXTcreateSafe(long address)static XrHandTrackerCreateInfoEXT.BuffercreateSafe(long address, int capacity)inthand()anXrHandEXTwhich describes which hand the tracker is tracking.XrHandTrackerCreateInfoEXThand(int value)Sets the specified value to thehand()field.inthandJointSet()anXrHandJointSetEXTdescribe the set of hand joints to retrieve.XrHandTrackerCreateInfoEXThandJointSet(int value)Sets the specified value to thehandJointSet()field.static XrHandTrackerCreateInfoEXTmalloc()Returns a newXrHandTrackerCreateInfoEXTinstance allocated withmemAlloc.static XrHandTrackerCreateInfoEXT.Buffermalloc(int capacity)Returns a newXrHandTrackerCreateInfoEXT.Bufferinstance allocated withmemAlloc.static XrHandTrackerCreateInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrHandTrackerCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static XrHandTrackerCreateInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrHandTrackerCreateInfoEXTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrHandTrackerCreateInfoEXTnext(long value)Sets the specified value to thenext()field.XrHandTrackerCreateInfoEXTnext(XrHandPoseTypeInfoMSFT value)Prepends the specifiedXrHandPoseTypeInfoMSFTvalue to thenextchain.static intnhand(long struct)Unsafe version ofhand().static voidnhand(long struct, int value)Unsafe version ofhand.static intnhandJointSet(long struct)Unsafe version ofhandJointSet().static voidnhandJointSet(long struct, int value)Unsafe version ofhandJointSet.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrHandTrackerCreateInfoEXTset(int type, long next, int hand, int handJointSet)Initializes this struct with the specified values.XrHandTrackerCreateInfoEXTset(XrHandTrackerCreateInfoEXT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrHandTrackerCreateInfoEXTtype(int value)Sets the specified value to thetype()field.XrHandTrackerCreateInfoEXTtype$Default()Sets theTYPE_HAND_TRACKER_CREATE_INFO_EXTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrHandTrackerCreateInfoEXT
public XrHandTrackerCreateInfoEXT(java.nio.ByteBuffer container)
Creates aXrHandTrackerCreateInfoEXTinstance 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. No such structures are defined in core OpenXR or this extension.
-
hand
public int hand()
anXrHandEXTwhich describes which hand the tracker is tracking.
-
handJointSet
public int handJointSet()
anXrHandJointSetEXTdescribe the set of hand joints to retrieve.
-
type
public XrHandTrackerCreateInfoEXT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrHandTrackerCreateInfoEXT type$Default()
Sets theTYPE_HAND_TRACKER_CREATE_INFO_EXTvalue to thetype()field.
-
next
public XrHandTrackerCreateInfoEXT next(long value)
Sets the specified value to thenext()field.
-
next
public XrHandTrackerCreateInfoEXT next(XrHandPoseTypeInfoMSFT value)
Prepends the specifiedXrHandPoseTypeInfoMSFTvalue to thenextchain.
-
hand
public XrHandTrackerCreateInfoEXT hand(int value)
Sets the specified value to thehand()field.
-
handJointSet
public XrHandTrackerCreateInfoEXT handJointSet(int value)
Sets the specified value to thehandJointSet()field.
-
set
public XrHandTrackerCreateInfoEXT set(int type, long next, int hand, int handJointSet)
Initializes this struct with the specified values.
-
set
public XrHandTrackerCreateInfoEXT set(XrHandTrackerCreateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrHandTrackerCreateInfoEXT malloc()
Returns a newXrHandTrackerCreateInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrHandTrackerCreateInfoEXT calloc()
Returns a newXrHandTrackerCreateInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrHandTrackerCreateInfoEXT create()
Returns a newXrHandTrackerCreateInfoEXTinstance allocated withBufferUtils.
-
create
public static XrHandTrackerCreateInfoEXT create(long address)
Returns a newXrHandTrackerCreateInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static XrHandTrackerCreateInfoEXT createSafe(long address)
-
malloc
public static XrHandTrackerCreateInfoEXT.Buffer malloc(int capacity)
Returns a newXrHandTrackerCreateInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrHandTrackerCreateInfoEXT.Buffer calloc(int capacity)
Returns a newXrHandTrackerCreateInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrHandTrackerCreateInfoEXT.Buffer create(int capacity)
Returns a newXrHandTrackerCreateInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrHandTrackerCreateInfoEXT.Buffer create(long address, int capacity)
Create aXrHandTrackerCreateInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrHandTrackerCreateInfoEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrHandTrackerCreateInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrHandTrackerCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrHandTrackerCreateInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrHandTrackerCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrHandTrackerCreateInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrHandTrackerCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrHandTrackerCreateInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrHandTrackerCreateInfoEXT.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().
-
nhand
public static int nhand(long struct)
Unsafe version ofhand().
-
nhandJointSet
public static int nhandJointSet(long struct)
Unsafe version ofhandJointSet().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nhand
public static void nhand(long struct, int value)Unsafe version ofhand.
-
nhandJointSet
public static void nhandJointSet(long struct, int value)Unsafe version ofhandJointSet.
-
-