Package org.lwjgl.openxr
Class XrHandMeshSpaceCreateInfoMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrHandMeshSpaceCreateInfoMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrHandMeshSpaceCreateInfoMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceThe information to create a hand mesh space.Valid Usage (Implicit)
- The
XR_MSFT_hand_tracking_meshextension must be enabled prior to usingXrHandMeshSpaceCreateInfoMSFT typemust beTYPE_HAND_MESH_SPACE_CREATE_INFO_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chainhandPoseTypemust be a validXrHandPoseTypeMSFTvalue
See Also
XrPosef,CreateHandMeshSpaceMSFTLayout
struct XrHandMeshSpaceCreateInfoMSFT { XrStructureTypetype(); void const *next(); XrHandPoseTypeMSFThandPoseType();XrPosefposeInHandMeshSpace(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrHandMeshSpaceCreateInfoMSFT.BufferAn array ofXrHandMeshSpaceCreateInfoMSFTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intHANDPOSETYPE
NEXT
POSEINHANDMESHSPACEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrHandMeshSpaceCreateInfoMSFT(java.nio.ByteBuffer container)Creates aXrHandMeshSpaceCreateInfoMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrHandMeshSpaceCreateInfoMSFTcalloc()Returns a newXrHandMeshSpaceCreateInfoMSFTinstance allocated withmemCalloc.static XrHandMeshSpaceCreateInfoMSFT.Buffercalloc(int capacity)Returns a newXrHandMeshSpaceCreateInfoMSFT.Bufferinstance allocated withmemCalloc.static XrHandMeshSpaceCreateInfoMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrHandMeshSpaceCreateInfoMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHandMeshSpaceCreateInfoMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrHandMeshSpaceCreateInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHandMeshSpaceCreateInfoMSFTcreate()Returns a newXrHandMeshSpaceCreateInfoMSFTinstance allocated withBufferUtils.static XrHandMeshSpaceCreateInfoMSFT.Buffercreate(int capacity)Returns a newXrHandMeshSpaceCreateInfoMSFT.Bufferinstance allocated withBufferUtils.static XrHandMeshSpaceCreateInfoMSFTcreate(long address)Returns a newXrHandMeshSpaceCreateInfoMSFTinstance for the specified memory address.static XrHandMeshSpaceCreateInfoMSFT.Buffercreate(long address, int capacity)Create aXrHandMeshSpaceCreateInfoMSFT.Bufferinstance at the specified memory.static XrHandMeshSpaceCreateInfoMSFTcreateSafe(long address)static XrHandMeshSpaceCreateInfoMSFT.BuffercreateSafe(long address, int capacity)inthandPoseType()anXrHandPoseTypeMSFTused to specify the type of hand this mesh is tracking.XrHandMeshSpaceCreateInfoMSFThandPoseType(int value)Sets the specified value to thehandPoseType()field.static XrHandMeshSpaceCreateInfoMSFTmalloc()Returns a newXrHandMeshSpaceCreateInfoMSFTinstance allocated withmemAlloc.static XrHandMeshSpaceCreateInfoMSFT.Buffermalloc(int capacity)Returns a newXrHandMeshSpaceCreateInfoMSFT.Bufferinstance allocated withmemAlloc.static XrHandMeshSpaceCreateInfoMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrHandMeshSpaceCreateInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrHandMeshSpaceCreateInfoMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrHandMeshSpaceCreateInfoMSFTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrHandMeshSpaceCreateInfoMSFTnext(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 XrPosefnposeInHandMeshSpace(long struct)Unsafe version ofposeInHandMeshSpace().static voidnposeInHandMeshSpace(long struct, XrPosef value)Unsafe version ofposeInHandMeshSpace.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrPosefposeInHandMeshSpace()anXrPosefdefining the position and orientation of the new space’s origin within the natural reference frame of the hand mesh space.XrHandMeshSpaceCreateInfoMSFTposeInHandMeshSpace(java.util.function.Consumer<XrPosef> consumer)Passes theposeInHandMeshSpace()field to the specifiedConsumer.XrHandMeshSpaceCreateInfoMSFTposeInHandMeshSpace(XrPosef value)Copies the specifiedXrPosefto theposeInHandMeshSpace()field.XrHandMeshSpaceCreateInfoMSFTset(int type, long next, int handPoseType, XrPosef poseInHandMeshSpace)Initializes this struct with the specified values.XrHandMeshSpaceCreateInfoMSFTset(XrHandMeshSpaceCreateInfoMSFT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrHandMeshSpaceCreateInfoMSFTtype(int value)Sets the specified value to thetype()field.XrHandMeshSpaceCreateInfoMSFTtype$Default()Sets theTYPE_HAND_MESH_SPACE_CREATE_INFO_MSFTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrHandMeshSpaceCreateInfoMSFT
public XrHandMeshSpaceCreateInfoMSFT(java.nio.ByteBuffer container)
Creates aXrHandMeshSpaceCreateInfoMSFTinstance 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()
anXrHandPoseTypeMSFTused to specify the type of hand this mesh is tracking. Indices and vertices returned fromUpdateHandMeshMSFTfor a hand type will be relative to the corresponding space create with the same hand type.
-
poseInHandMeshSpace
public XrPosef poseInHandMeshSpace()
anXrPosefdefining the position and orientation of the new space’s origin within the natural reference frame of the hand mesh space.
-
type
public XrHandMeshSpaceCreateInfoMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrHandMeshSpaceCreateInfoMSFT type$Default()
Sets theTYPE_HAND_MESH_SPACE_CREATE_INFO_MSFTvalue to thetype()field.
-
next
public XrHandMeshSpaceCreateInfoMSFT next(long value)
Sets the specified value to thenext()field.
-
handPoseType
public XrHandMeshSpaceCreateInfoMSFT handPoseType(int value)
Sets the specified value to thehandPoseType()field.
-
poseInHandMeshSpace
public XrHandMeshSpaceCreateInfoMSFT poseInHandMeshSpace(XrPosef value)
Copies the specifiedXrPosefto theposeInHandMeshSpace()field.
-
poseInHandMeshSpace
public XrHandMeshSpaceCreateInfoMSFT poseInHandMeshSpace(java.util.function.Consumer<XrPosef> consumer)
Passes theposeInHandMeshSpace()field to the specifiedConsumer.
-
set
public XrHandMeshSpaceCreateInfoMSFT set(int type, long next, int handPoseType, XrPosef poseInHandMeshSpace)
Initializes this struct with the specified values.
-
set
public XrHandMeshSpaceCreateInfoMSFT set(XrHandMeshSpaceCreateInfoMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrHandMeshSpaceCreateInfoMSFT malloc()
Returns a newXrHandMeshSpaceCreateInfoMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrHandMeshSpaceCreateInfoMSFT calloc()
Returns a newXrHandMeshSpaceCreateInfoMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrHandMeshSpaceCreateInfoMSFT create()
Returns a newXrHandMeshSpaceCreateInfoMSFTinstance allocated withBufferUtils.
-
create
public static XrHandMeshSpaceCreateInfoMSFT create(long address)
Returns a newXrHandMeshSpaceCreateInfoMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrHandMeshSpaceCreateInfoMSFT createSafe(long address)
-
malloc
public static XrHandMeshSpaceCreateInfoMSFT.Buffer malloc(int capacity)
Returns a newXrHandMeshSpaceCreateInfoMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrHandMeshSpaceCreateInfoMSFT.Buffer calloc(int capacity)
Returns a newXrHandMeshSpaceCreateInfoMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrHandMeshSpaceCreateInfoMSFT.Buffer create(int capacity)
Returns a newXrHandMeshSpaceCreateInfoMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrHandMeshSpaceCreateInfoMSFT.Buffer create(long address, int capacity)
Create aXrHandMeshSpaceCreateInfoMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrHandMeshSpaceCreateInfoMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrHandMeshSpaceCreateInfoMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrHandMeshSpaceCreateInfoMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrHandMeshSpaceCreateInfoMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrHandMeshSpaceCreateInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrHandMeshSpaceCreateInfoMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrHandMeshSpaceCreateInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrHandMeshSpaceCreateInfoMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrHandMeshSpaceCreateInfoMSFT.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().
-
nposeInHandMeshSpace
public static XrPosef nposeInHandMeshSpace(long struct)
Unsafe version ofposeInHandMeshSpace().
-
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.
-
nposeInHandMeshSpace
public static void nposeInHandMeshSpace(long struct, XrPosef value)Unsafe version ofposeInHandMeshSpace.
-
-