Package org.lwjgl.openxr
Class XrHandTrackingMeshFB
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct XrHandTrackingMeshFB {
XrStructureType type;
void * next;
uint32_t jointCapacityInput;
uint32_t jointCountOutput;
{@link XrPosef XrPosef} * jointBindPoses;
float * jointRadii;
XrHandJointEXT * jointParents;
uint32_t vertexCapacityInput;
uint32_t vertexCountOutput;
{@link XrVector3f XrVector3f} * vertexPositions;
{@link XrVector3f XrVector3f} * vertexNormals;
{@link XrVector2f XrVector2f} * vertexUVs;
{@link XrVector4sFB XrVector4sFB} * vertexBlendIndices;
{@link XrVector4f XrVector4f} * vertexBlendWeights;
uint32_t indexCapacityInput;
uint32_t indexCountOutput;
int16_t * indices;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionXrHandTrackingMeshFB
(ByteBuffer container) Creates aXrHandTrackingMeshFB
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrHandTrackingMeshFB
calloc()
Returns a newXrHandTrackingMeshFB
instance allocated withmemCalloc
.static XrHandTrackingMeshFB.Buffer
calloc
(int capacity) Returns a newXrHandTrackingMeshFB.Buffer
instance allocated withmemCalloc
.static XrHandTrackingMeshFB.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newXrHandTrackingMeshFB.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrHandTrackingMeshFB
calloc
(MemoryStack stack) Returns a newXrHandTrackingMeshFB
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrHandTrackingMeshFB
create()
Returns a newXrHandTrackingMeshFB
instance allocated withBufferUtils
.static XrHandTrackingMeshFB.Buffer
create
(int capacity) Returns a newXrHandTrackingMeshFB.Buffer
instance allocated withBufferUtils
.static XrHandTrackingMeshFB
create
(long address) Returns a newXrHandTrackingMeshFB
instance for the specified memory address.static XrHandTrackingMeshFB.Buffer
create
(long address, int capacity) Create aXrHandTrackingMeshFB.Buffer
instance at the specified memory.static @Nullable XrHandTrackingMeshFB
createSafe
(long address) static @Nullable XrHandTrackingMeshFB.Buffer
createSafe
(long address, int capacity) int
indexCapacityInput
(int value) Sets the specified value to theindexCapacityInput
field.int
indexCountOutput
(int value) Sets the specified value to theindexCountOutput
field.@Nullable ShortBuffer
indices()
indices
(@Nullable ShortBuffer value) Sets the address of the specifiedShortBuffer
to theindices
field.@Nullable XrPosef.Buffer
jointBindPoses
(@Nullable XrPosef.Buffer value) Sets the address of the specifiedXrPosef.Buffer
to thejointBindPoses
field.int
jointCapacityInput
(int value) Sets the specified value to thejointCapacityInput
field.int
jointCountOutput
(int value) Sets the specified value to thejointCountOutput
field.@Nullable IntBuffer
jointParents
(@Nullable IntBuffer value) Sets the address of the specifiedIntBuffer
to thejointParents
field.@Nullable FloatBuffer
jointRadii
(@Nullable FloatBuffer value) Sets the address of the specifiedFloatBuffer
to thejointRadii
field.static XrHandTrackingMeshFB
malloc()
Returns a newXrHandTrackingMeshFB
instance allocated withmemAlloc
.static XrHandTrackingMeshFB.Buffer
malloc
(int capacity) Returns a newXrHandTrackingMeshFB.Buffer
instance allocated withmemAlloc
.static XrHandTrackingMeshFB.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newXrHandTrackingMeshFB.Buffer
instance allocated on the specifiedMemoryStack
.static XrHandTrackingMeshFB
malloc
(MemoryStack stack) Returns a newXrHandTrackingMeshFB
instance allocated on the specifiedMemoryStack
.long
next()
next
(long value) Sets the specified value to thenext
field.static int
nindexCapacityInput
(long struct) Unsafe version ofindexCapacityInput()
.static void
nindexCapacityInput
(long struct, int value) Sets the specified value to theindexCapacityInput
field of the specifiedstruct
.static int
nindexCountOutput
(long struct) Unsafe version ofindexCountOutput()
.static void
nindexCountOutput
(long struct, int value) Unsafe version ofindexCountOutput
.static @Nullable ShortBuffer
nindices
(long struct) Unsafe version ofindices
.static void
nindices
(long struct, @Nullable ShortBuffer value) Unsafe version ofindices
.static @Nullable XrPosef.Buffer
njointBindPoses
(long struct) Unsafe version ofjointBindPoses()
.static void
njointBindPoses
(long struct, @Nullable XrPosef.Buffer value) Unsafe version ofjointBindPoses
.static int
njointCapacityInput
(long struct) Unsafe version ofjointCapacityInput()
.static void
njointCapacityInput
(long struct, int value) Sets the specified value to thejointCapacityInput
field of the specifiedstruct
.static int
njointCountOutput
(long struct) Unsafe version ofjointCountOutput()
.static void
njointCountOutput
(long struct, int value) Unsafe version ofjointCountOutput
.static @Nullable IntBuffer
njointParents
(long struct) Unsafe version ofjointParents
.static void
njointParents
(long struct, @Nullable IntBuffer value) Unsafe version ofjointParents
.static @Nullable FloatBuffer
njointRadii
(long struct) Unsafe version ofjointRadii
.static void
njointRadii
(long struct, @Nullable FloatBuffer value) Unsafe version ofjointRadii
.static long
nnext
(long struct) Unsafe version ofnext()
.static void
nnext
(long struct, long value) Unsafe version ofnext
.static int
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(long struct, int value) Unsafe version oftype
.static @Nullable XrVector4sFB.Buffer
nvertexBlendIndices
(long struct) Unsafe version ofvertexBlendIndices()
.static void
nvertexBlendIndices
(long struct, @Nullable XrVector4sFB.Buffer value) Unsafe version ofvertexBlendIndices
.static @Nullable XrVector4f.Buffer
nvertexBlendWeights
(long struct) Unsafe version ofvertexBlendWeights()
.static void
nvertexBlendWeights
(long struct, @Nullable XrVector4f.Buffer value) Unsafe version ofvertexBlendWeights
.static int
nvertexCapacityInput
(long struct) Unsafe version ofvertexCapacityInput()
.static void
nvertexCapacityInput
(long struct, int value) Sets the specified value to thevertexCapacityInput
field of the specifiedstruct
.static int
nvertexCountOutput
(long struct) Unsafe version ofvertexCountOutput()
.static void
nvertexCountOutput
(long struct, int value) Unsafe version ofvertexCountOutput
.static @Nullable XrVector3f.Buffer
nvertexNormals
(long struct) Unsafe version ofvertexNormals()
.static void
nvertexNormals
(long struct, @Nullable XrVector3f.Buffer value) Unsafe version ofvertexNormals
.static @Nullable XrVector3f.Buffer
nvertexPositions
(long struct) Unsafe version ofvertexPositions()
.static void
nvertexPositions
(long struct, @Nullable XrVector3f.Buffer value) Unsafe version ofvertexPositions
.static @Nullable XrVector2f.Buffer
nvertexUVs
(long struct) Unsafe version ofvertexUVs()
.static void
nvertexUVs
(long struct, @Nullable XrVector2f.Buffer value) Unsafe version ofvertexUVs
.set
(int type, long next, int jointCapacityInput, int jointCountOutput, @Nullable XrPosef.Buffer jointBindPoses, @Nullable FloatBuffer jointRadii, @Nullable IntBuffer jointParents, int vertexCapacityInput, int vertexCountOutput, @Nullable XrVector3f.Buffer vertexPositions, @Nullable XrVector3f.Buffer vertexNormals, @Nullable XrVector2f.Buffer vertexUVs, @Nullable XrVector4sFB.Buffer vertexBlendIndices, @Nullable XrVector4f.Buffer vertexBlendWeights, int indexCapacityInput, int indexCountOutput, @Nullable ShortBuffer indices) Initializes this struct with the specified values.set
(XrHandTrackingMeshFB src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
type()
type
(int value) Sets the specified value to thetype
field.Sets theTYPE_HAND_TRACKING_MESH_FB
value to thetype
field.@Nullable XrVector4sFB.Buffer
vertexBlendIndices
(@Nullable XrVector4sFB.Buffer value) Sets the address of the specifiedXrVector4sFB.Buffer
to thevertexBlendIndices
field.@Nullable XrVector4f.Buffer
vertexBlendWeights
(@Nullable XrVector4f.Buffer value) Sets the address of the specifiedXrVector4f.Buffer
to thevertexBlendWeights
field.int
vertexCapacityInput
(int value) Sets the specified value to thevertexCapacityInput
field.int
vertexCountOutput
(int value) Sets the specified value to thevertexCountOutput
field.@Nullable XrVector3f.Buffer
vertexNormals
(@Nullable XrVector3f.Buffer value) Sets the address of the specifiedXrVector3f.Buffer
to thevertexNormals
field.@Nullable XrVector3f.Buffer
vertexPositions
(@Nullable XrVector3f.Buffer value) Sets the address of the specifiedXrVector3f.Buffer
to thevertexPositions
field.@Nullable XrVector2f.Buffer
vertexUVs
(@Nullable XrVector2f.Buffer value) Sets the address of the specifiedXrVector2f.Buffer
to thevertexUVs
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
JOINTCAPACITYINPUT
public static final int JOINTCAPACITYINPUTThe struct member offsets. -
JOINTCOUNTOUTPUT
public static final int JOINTCOUNTOUTPUTThe struct member offsets. -
JOINTBINDPOSES
public static final int JOINTBINDPOSESThe struct member offsets. -
JOINTRADII
public static final int JOINTRADIIThe struct member offsets. -
JOINTPARENTS
public static final int JOINTPARENTSThe struct member offsets. -
VERTEXCAPACITYINPUT
public static final int VERTEXCAPACITYINPUTThe struct member offsets. -
VERTEXCOUNTOUTPUT
public static final int VERTEXCOUNTOUTPUTThe struct member offsets. -
VERTEXPOSITIONS
public static final int VERTEXPOSITIONSThe struct member offsets. -
VERTEXNORMALS
public static final int VERTEXNORMALSThe struct member offsets. -
VERTEXUVS
public static final int VERTEXUVSThe struct member offsets. -
VERTEXBLENDINDICES
public static final int VERTEXBLENDINDICESThe struct member offsets. -
VERTEXBLENDWEIGHTS
public static final int VERTEXBLENDWEIGHTSThe struct member offsets. -
INDEXCAPACITYINPUT
public static final int INDEXCAPACITYINPUTThe struct member offsets. -
INDEXCOUNTOUTPUT
public static final int INDEXCOUNTOUTPUTThe struct member offsets. -
INDICES
public static final int INDICESThe struct member offsets.
-
-
Constructor Details
-
XrHandTrackingMeshFB
Creates aXrHandTrackingMeshFB
instance at the current position of the specifiedByteBuffer
container. 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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<XrHandTrackingMeshFB>
-
type
public int type()- Returns:
- the value of the
type
field.
-
next
public long next()- Returns:
- the value of the
next
field.
-
jointCapacityInput
public int jointCapacityInput()- Returns:
- the value of the
jointCapacityInput
field.
-
jointCountOutput
public int jointCountOutput()- Returns:
- the value of the
jointCountOutput
field.
-
jointBindPoses
- Returns:
- a
XrPosef.Buffer
view of the struct array pointed to by thejointBindPoses
field.
-
jointRadii
- Returns:
- a
FloatBuffer
view of the data pointed to by thejointRadii
field.
-
jointParents
- Returns:
- a
IntBuffer
view of the data pointed to by thejointParents
field.
-
vertexCapacityInput
public int vertexCapacityInput()- Returns:
- the value of the
vertexCapacityInput
field.
-
vertexCountOutput
public int vertexCountOutput()- Returns:
- the value of the
vertexCountOutput
field.
-
vertexPositions
- Returns:
- a
XrVector3f.Buffer
view of the struct array pointed to by thevertexPositions
field.
-
vertexNormals
- Returns:
- a
XrVector3f.Buffer
view of the struct array pointed to by thevertexNormals
field.
-
vertexUVs
- Returns:
- a
XrVector2f.Buffer
view of the struct array pointed to by thevertexUVs
field.
-
vertexBlendIndices
- Returns:
- a
XrVector4sFB.Buffer
view of the struct array pointed to by thevertexBlendIndices
field.
-
vertexBlendWeights
- Returns:
- a
XrVector4f.Buffer
view of the struct array pointed to by thevertexBlendWeights
field.
-
indexCapacityInput
public int indexCapacityInput()- Returns:
- the value of the
indexCapacityInput
field.
-
indexCountOutput
public int indexCountOutput()- Returns:
- the value of the
indexCountOutput
field.
-
indices
- Returns:
- a
ShortBuffer
view of the data pointed to by theindices
field.
-
type
Sets the specified value to thetype
field. -
type$Default
Sets theTYPE_HAND_TRACKING_MESH_FB
value to thetype
field. -
next
Sets the specified value to thenext
field. -
jointCapacityInput
Sets the specified value to thejointCapacityInput
field. -
jointCountOutput
Sets the specified value to thejointCountOutput
field. -
jointBindPoses
Sets the address of the specifiedXrPosef.Buffer
to thejointBindPoses
field. -
jointRadii
Sets the address of the specifiedFloatBuffer
to thejointRadii
field. -
jointParents
Sets the address of the specifiedIntBuffer
to thejointParents
field. -
vertexCapacityInput
Sets the specified value to thevertexCapacityInput
field. -
vertexCountOutput
Sets the specified value to thevertexCountOutput
field. -
vertexPositions
Sets the address of the specifiedXrVector3f.Buffer
to thevertexPositions
field. -
vertexNormals
Sets the address of the specifiedXrVector3f.Buffer
to thevertexNormals
field. -
vertexUVs
Sets the address of the specifiedXrVector2f.Buffer
to thevertexUVs
field. -
vertexBlendIndices
Sets the address of the specifiedXrVector4sFB.Buffer
to thevertexBlendIndices
field. -
vertexBlendWeights
Sets the address of the specifiedXrVector4f.Buffer
to thevertexBlendWeights
field. -
indexCapacityInput
Sets the specified value to theindexCapacityInput
field. -
indexCountOutput
Sets the specified value to theindexCountOutput
field. -
indices
Sets the address of the specifiedShortBuffer
to theindices
field. -
set
public XrHandTrackingMeshFB set(int type, long next, int jointCapacityInput, int jointCountOutput, @Nullable XrPosef.Buffer jointBindPoses, @Nullable FloatBuffer jointRadii, @Nullable IntBuffer jointParents, int vertexCapacityInput, int vertexCountOutput, @Nullable XrVector3f.Buffer vertexPositions, @Nullable XrVector3f.Buffer vertexNormals, @Nullable XrVector2f.Buffer vertexUVs, @Nullable XrVector4sFB.Buffer vertexBlendIndices, @Nullable XrVector4f.Buffer vertexBlendWeights, int indexCapacityInput, int indexCountOutput, @Nullable ShortBuffer indices) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newXrHandTrackingMeshFB
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrHandTrackingMeshFB
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrHandTrackingMeshFB
instance allocated withBufferUtils
. -
create
Returns a newXrHandTrackingMeshFB
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXrHandTrackingMeshFB.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrHandTrackingMeshFB.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrHandTrackingMeshFB.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrHandTrackingMeshFB.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newXrHandTrackingMeshFB
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrHandTrackingMeshFB
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrHandTrackingMeshFB.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrHandTrackingMeshFB.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype()
. -
nnext
public static long nnext(long struct) Unsafe version ofnext()
. -
njointCapacityInput
public static int njointCapacityInput(long struct) Unsafe version ofjointCapacityInput()
. -
njointCountOutput
public static int njointCountOutput(long struct) Unsafe version ofjointCountOutput()
. -
njointBindPoses
Unsafe version ofjointBindPoses()
. -
njointRadii
Unsafe version ofjointRadii
. -
njointParents
Unsafe version ofjointParents
. -
nvertexCapacityInput
public static int nvertexCapacityInput(long struct) Unsafe version ofvertexCapacityInput()
. -
nvertexCountOutput
public static int nvertexCountOutput(long struct) Unsafe version ofvertexCountOutput()
. -
nvertexPositions
Unsafe version ofvertexPositions()
. -
nvertexNormals
Unsafe version ofvertexNormals()
. -
nvertexUVs
Unsafe version ofvertexUVs()
. -
nvertexBlendIndices
Unsafe version ofvertexBlendIndices()
. -
nvertexBlendWeights
Unsafe version ofvertexBlendWeights()
. -
nindexCapacityInput
public static int nindexCapacityInput(long struct) Unsafe version ofindexCapacityInput()
. -
nindexCountOutput
public static int nindexCountOutput(long struct) Unsafe version ofindexCountOutput()
. -
nindices
Unsafe version ofindices
. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype
. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext
. -
njointCapacityInput
public static void njointCapacityInput(long struct, int value) Sets the specified value to thejointCapacityInput
field of the specifiedstruct
. -
njointCountOutput
public static void njointCountOutput(long struct, int value) Unsafe version ofjointCountOutput
. -
njointBindPoses
Unsafe version ofjointBindPoses
. -
njointRadii
Unsafe version ofjointRadii
. -
njointParents
Unsafe version ofjointParents
. -
nvertexCapacityInput
public static void nvertexCapacityInput(long struct, int value) Sets the specified value to thevertexCapacityInput
field of the specifiedstruct
. -
nvertexCountOutput
public static void nvertexCountOutput(long struct, int value) Unsafe version ofvertexCountOutput
. -
nvertexPositions
Unsafe version ofvertexPositions
. -
nvertexNormals
Unsafe version ofvertexNormals
. -
nvertexUVs
Unsafe version ofvertexUVs
. -
nvertexBlendIndices
Unsafe version ofvertexBlendIndices
. -
nvertexBlendWeights
Unsafe version ofvertexBlendWeights
. -
nindexCapacityInput
public static void nindexCapacityInput(long struct, int value) Sets the specified value to theindexCapacityInput
field of the specifiedstruct
. -
nindexCountOutput
public static void nindexCountOutput(long struct, int value) Unsafe version ofindexCountOutput
. -
nindices
Unsafe version ofindices
.
-