Package org.lwjgl.openxr
Class XrHandPoseTypeInfoMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrHandPoseTypeInfoMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrHandPoseTypeInfoMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescribes what hand pose type for the hand joint tracking.Valid Usage (Implicit)
- The
XR_MSFT_hand_tracking_meshextension must be enabled prior to usingXrHandPoseTypeInfoMSFT typemust beTYPE_HAND_POSE_TYPE_INFO_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chainhandPoseTypemust be a validXrHandPoseTypeMSFTvalue
See Also
XrHandTrackerCreateInfoEXT,CreateHandTrackerEXTLayout
struct XrHandPoseTypeInfoMSFT { XrStructureTypetype(); void const *next(); XrHandPoseTypeMSFThandPoseType(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrHandPoseTypeInfoMSFT.BufferAn array ofXrHandPoseTypeInfoMSFTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intHANDPOSETYPE
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrHandPoseTypeInfoMSFT(java.nio.ByteBuffer container)Creates aXrHandPoseTypeInfoMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrHandPoseTypeInfoMSFTcalloc()Returns a newXrHandPoseTypeInfoMSFTinstance allocated withmemCalloc.static XrHandPoseTypeInfoMSFT.Buffercalloc(int capacity)Returns a newXrHandPoseTypeInfoMSFT.Bufferinstance allocated withmemCalloc.static XrHandPoseTypeInfoMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrHandPoseTypeInfoMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHandPoseTypeInfoMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrHandPoseTypeInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHandPoseTypeInfoMSFTcreate()Returns a newXrHandPoseTypeInfoMSFTinstance allocated withBufferUtils.static XrHandPoseTypeInfoMSFT.Buffercreate(int capacity)Returns a newXrHandPoseTypeInfoMSFT.Bufferinstance allocated withBufferUtils.static XrHandPoseTypeInfoMSFTcreate(long address)Returns a newXrHandPoseTypeInfoMSFTinstance for the specified memory address.static XrHandPoseTypeInfoMSFT.Buffercreate(long address, int capacity)Create aXrHandPoseTypeInfoMSFT.Bufferinstance at the specified memory.static XrHandPoseTypeInfoMSFTcreateSafe(long address)static XrHandPoseTypeInfoMSFT.BuffercreateSafe(long address, int capacity)inthandPoseType()anXrHandPoseTypeMSFTthat describes the type of hand pose of the hand tracking.XrHandPoseTypeInfoMSFThandPoseType(int value)Sets the specified value to thehandPoseType()field.static XrHandPoseTypeInfoMSFTmalloc()Returns a newXrHandPoseTypeInfoMSFTinstance allocated withmemAlloc.static XrHandPoseTypeInfoMSFT.Buffermalloc(int capacity)Returns a newXrHandPoseTypeInfoMSFT.Bufferinstance allocated withmemAlloc.static XrHandPoseTypeInfoMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrHandPoseTypeInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrHandPoseTypeInfoMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrHandPoseTypeInfoMSFTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrHandPoseTypeInfoMSFTnext(long value)Sets the specified value to thenext()field.static intnhandPoseType(long struct)Unsafe version ofhandPoseType().static voidnhandPoseType(long struct, int value)Unsafe version ofhandPoseType.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.XrHandPoseTypeInfoMSFTset(int type, long next, int handPoseType)Initializes this struct with the specified values.XrHandPoseTypeInfoMSFTset(XrHandPoseTypeInfoMSFT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrHandPoseTypeInfoMSFTtype(int value)Sets the specified value to thetype()field.XrHandPoseTypeInfoMSFTtype$Default()Sets theTYPE_HAND_POSE_TYPE_INFO_MSFTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrHandPoseTypeInfoMSFT
public XrHandPoseTypeInfoMSFT(java.nio.ByteBuffer container)
Creates aXrHandPoseTypeInfoMSFTinstance 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.
-
handPoseType
public int handPoseType()
anXrHandPoseTypeMSFTthat describes the type of hand pose of the hand tracking.
-
type
public XrHandPoseTypeInfoMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrHandPoseTypeInfoMSFT type$Default()
Sets theTYPE_HAND_POSE_TYPE_INFO_MSFTvalue to thetype()field.
-
next
public XrHandPoseTypeInfoMSFT next(long value)
Sets the specified value to thenext()field.
-
handPoseType
public XrHandPoseTypeInfoMSFT handPoseType(int value)
Sets the specified value to thehandPoseType()field.
-
set
public XrHandPoseTypeInfoMSFT set(int type, long next, int handPoseType)
Initializes this struct with the specified values.
-
set
public XrHandPoseTypeInfoMSFT set(XrHandPoseTypeInfoMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrHandPoseTypeInfoMSFT malloc()
Returns a newXrHandPoseTypeInfoMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrHandPoseTypeInfoMSFT calloc()
Returns a newXrHandPoseTypeInfoMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrHandPoseTypeInfoMSFT create()
Returns a newXrHandPoseTypeInfoMSFTinstance allocated withBufferUtils.
-
create
public static XrHandPoseTypeInfoMSFT create(long address)
Returns a newXrHandPoseTypeInfoMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrHandPoseTypeInfoMSFT createSafe(long address)
-
malloc
public static XrHandPoseTypeInfoMSFT.Buffer malloc(int capacity)
Returns a newXrHandPoseTypeInfoMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrHandPoseTypeInfoMSFT.Buffer calloc(int capacity)
Returns a newXrHandPoseTypeInfoMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrHandPoseTypeInfoMSFT.Buffer create(int capacity)
Returns a newXrHandPoseTypeInfoMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrHandPoseTypeInfoMSFT.Buffer create(long address, int capacity)
Create aXrHandPoseTypeInfoMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrHandPoseTypeInfoMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrHandPoseTypeInfoMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrHandPoseTypeInfoMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrHandPoseTypeInfoMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrHandPoseTypeInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrHandPoseTypeInfoMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrHandPoseTypeInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrHandPoseTypeInfoMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrHandPoseTypeInfoMSFT.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().
-
nhandPoseType
public static int nhandPoseType(long struct)
Unsafe version ofhandPoseType().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nhandPoseType
public static void nhandPoseType(long struct, int value)Unsafe version ofhandPoseType.
-
-