Package org.lwjgl.openxr
Class XrHandMeshUpdateInfoMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrHandMeshUpdateInfoMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrHandMeshUpdateInfoMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceThe information to update a hand mesh.Description
A runtime may not maintain a full history of hand mesh data, therefore the returned
XrHandMeshMSFTmight return data that’s not exactly corresponding to thetimeinput. If the runtime cannot return any tracking data for the giventimeat all, it must setisActivetoFALSEfor the call toUpdateHandMeshMSFT. Otherwise, if the runtime returnsisActiveasTRUE, the data inXrHandMeshMSFTmust be valid to use.An application can choose different
handPoseTypevalues to query the hand mesh data. The returned hand mesh must be consistent to the hand joint space location on the sameXrHandTrackerEXTwhen using the sameXrHandPoseTypeMSFT.Valid Usage (Implicit)
- The
XR_MSFT_hand_tracking_meshextension must be enabled prior to usingXrHandMeshUpdateInfoMSFT typemust beTYPE_HAND_MESH_UPDATE_INFO_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chainhandPoseTypemust be a validXrHandPoseTypeMSFTvalue
See Also
Layout
struct XrHandMeshUpdateInfoMSFT { XrStructureTypetype(); void const *next(); XrTimetime(); XrHandPoseTypeMSFThandPoseType(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrHandMeshUpdateInfoMSFT.BufferAn array ofXrHandMeshUpdateInfoMSFTstructs.
-
Constructor Summary
Constructors Constructor Description XrHandMeshUpdateInfoMSFT(java.nio.ByteBuffer container)Creates aXrHandMeshUpdateInfoMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrHandMeshUpdateInfoMSFTcalloc()Returns a newXrHandMeshUpdateInfoMSFTinstance allocated withmemCalloc.static XrHandMeshUpdateInfoMSFT.Buffercalloc(int capacity)Returns a newXrHandMeshUpdateInfoMSFT.Bufferinstance allocated withmemCalloc.static XrHandMeshUpdateInfoMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrHandMeshUpdateInfoMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHandMeshUpdateInfoMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrHandMeshUpdateInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHandMeshUpdateInfoMSFTcreate()Returns a newXrHandMeshUpdateInfoMSFTinstance allocated withBufferUtils.static XrHandMeshUpdateInfoMSFT.Buffercreate(int capacity)Returns a newXrHandMeshUpdateInfoMSFT.Bufferinstance allocated withBufferUtils.static XrHandMeshUpdateInfoMSFTcreate(long address)Returns a newXrHandMeshUpdateInfoMSFTinstance for the specified memory address.static XrHandMeshUpdateInfoMSFT.Buffercreate(long address, int capacity)Create aXrHandMeshUpdateInfoMSFT.Bufferinstance at the specified memory.static XrHandMeshUpdateInfoMSFTcreateSafe(long address)static XrHandMeshUpdateInfoMSFT.BuffercreateSafe(long address, int capacity)inthandPoseType()anXrHandPoseTypeMSFTwhich describes the type of hand pose of the hand mesh to update.XrHandMeshUpdateInfoMSFThandPoseType(int value)Sets the specified value to thehandPoseType()field.static XrHandMeshUpdateInfoMSFTmalloc()Returns a newXrHandMeshUpdateInfoMSFTinstance allocated withmemAlloc.static XrHandMeshUpdateInfoMSFT.Buffermalloc(int capacity)Returns a newXrHandMeshUpdateInfoMSFT.Bufferinstance allocated withmemAlloc.static XrHandMeshUpdateInfoMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrHandMeshUpdateInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrHandMeshUpdateInfoMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrHandMeshUpdateInfoMSFTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrHandMeshUpdateInfoMSFTnext(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 longntime(long struct)Unsafe version oftime().static voidntime(long struct, long value)Unsafe version oftime.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrHandMeshUpdateInfoMSFTset(int type, long next, long time, int handPoseType)Initializes this struct with the specified values.XrHandMeshUpdateInfoMSFTset(XrHandMeshUpdateInfoMSFT src)Copies the specified struct data to this struct.intsizeof()longtime()theXrTimethat describes the time for which the application wishes to query the hand mesh state.XrHandMeshUpdateInfoMSFTtime(long value)Sets the specified value to thetime()field.inttype()theXrStructureTypeof this structure.XrHandMeshUpdateInfoMSFTtype(int value)Sets the specified value to thetype()field.XrHandMeshUpdateInfoMSFTtype$Default()Sets theTYPE_HAND_MESH_UPDATE_INFO_MSFTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrHandMeshUpdateInfoMSFT
public XrHandMeshUpdateInfoMSFT(java.nio.ByteBuffer container)
Creates aXrHandMeshUpdateInfoMSFTinstance 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.
-
time
public long time()
theXrTimethat describes the time for which the application wishes to query the hand mesh state.
-
handPoseType
public int handPoseType()
anXrHandPoseTypeMSFTwhich describes the type of hand pose of the hand mesh to update.
-
type
public XrHandMeshUpdateInfoMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrHandMeshUpdateInfoMSFT type$Default()
Sets theTYPE_HAND_MESH_UPDATE_INFO_MSFTvalue to thetype()field.
-
next
public XrHandMeshUpdateInfoMSFT next(long value)
Sets the specified value to thenext()field.
-
time
public XrHandMeshUpdateInfoMSFT time(long value)
Sets the specified value to thetime()field.
-
handPoseType
public XrHandMeshUpdateInfoMSFT handPoseType(int value)
Sets the specified value to thehandPoseType()field.
-
set
public XrHandMeshUpdateInfoMSFT set(int type, long next, long time, int handPoseType)
Initializes this struct with the specified values.
-
set
public XrHandMeshUpdateInfoMSFT set(XrHandMeshUpdateInfoMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrHandMeshUpdateInfoMSFT malloc()
Returns a newXrHandMeshUpdateInfoMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrHandMeshUpdateInfoMSFT calloc()
Returns a newXrHandMeshUpdateInfoMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrHandMeshUpdateInfoMSFT create()
Returns a newXrHandMeshUpdateInfoMSFTinstance allocated withBufferUtils.
-
create
public static XrHandMeshUpdateInfoMSFT create(long address)
Returns a newXrHandMeshUpdateInfoMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrHandMeshUpdateInfoMSFT createSafe(long address)
-
malloc
public static XrHandMeshUpdateInfoMSFT.Buffer malloc(int capacity)
Returns a newXrHandMeshUpdateInfoMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrHandMeshUpdateInfoMSFT.Buffer calloc(int capacity)
Returns a newXrHandMeshUpdateInfoMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrHandMeshUpdateInfoMSFT.Buffer create(int capacity)
Returns a newXrHandMeshUpdateInfoMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrHandMeshUpdateInfoMSFT.Buffer create(long address, int capacity)
Create aXrHandMeshUpdateInfoMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrHandMeshUpdateInfoMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrHandMeshUpdateInfoMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrHandMeshUpdateInfoMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrHandMeshUpdateInfoMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrHandMeshUpdateInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrHandMeshUpdateInfoMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrHandMeshUpdateInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrHandMeshUpdateInfoMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrHandMeshUpdateInfoMSFT.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().
-
ntime
public static long ntime(long struct)
Unsafe version oftime().
-
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.
-
ntime
public static void ntime(long struct, long value)Unsafe version oftime.
-
nhandPoseType
public static void nhandPoseType(long struct, int value)Unsafe version ofhandPoseType.
-
-