Top Description Inners Fields Constructors Methods
org.lwjgl.openxr

public Class XrHandTrackingMeshFB

extends Struct<XrHandTrackingMeshFB>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

A container of mesh data.
Description

All arrays are application-allocated, and all may be NULL if any of jointCapacityInput, vertexCapacityInput, or indexCapacityInput is 0.

The data in a fully-populated XrHandTrackingMeshFB is immutable during the lifetime of the corresponding XrInstance, and is intended to be retrieved once then used in combination with data changing per-frame retrieved from LocateHandJointsEXT.

Valid Usage (Implicit)
See Also

XrPosef, XrVector2f, XrVector3f, XrVector4f, XrVector4sFB, GetHandMeshFB

Layout


struct XrHandTrackingMeshFB {
    XrStructureType type;
    void * next;
    uint32_t jointCapacityInput;
    uint32_t jointCountOutput;
    XrPosef * jointBindPoses;
    float * jointRadii;
    XrHandJointEXT * jointParents;
    uint32_t vertexCapacityInput;
    uint32_t vertexCountOutput;
    XrVector3f * vertexPositions;
    XrVector3f * vertexNormals;
    XrVector2f * vertexUVs;
    XrVector4sFB * vertexBlendIndices;
    XrVector4f * vertexBlendWeights;
    uint32_t indexCapacityInput;
    uint32_t indexCountOutput;
    int16_t * indices;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
INDEXCAPACITYINPUT

The struct member offsets.

public static final int
INDEXCOUNTOUTPUT

The struct member offsets.

public static final int
INDICES

The struct member offsets.

public static final int
JOINTBINDPOSES

The struct member offsets.

public static final int
JOINTCAPACITYINPUT

The struct member offsets.

public static final int
JOINTCOUNTOUTPUT

The struct member offsets.

public static final int
JOINTPARENTS

The struct member offsets.

public static final int
JOINTRADII

The struct member offsets.

public static final int
NEXT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TYPE

The struct member offsets.

public static final int
VERTEXBLENDINDICES

The struct member offsets.

public static final int
VERTEXBLENDWEIGHTS

The struct member offsets.

public static final int
VERTEXCAPACITYINPUT

The struct member offsets.

public static final int
VERTEXCOUNTOUTPUT

The struct member offsets.

public static final int
VERTEXNORMALS

The struct member offsets.

public static final int
VERTEXPOSITIONS

The struct member offsets.

public static final int
VERTEXUVS

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
XrHandTrackingMeshFB(long address, ByteBuffer container)

public
XrHandTrackingMeshFB(ByteBuffer container)

Creates a XrHandTrackingMeshFB instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static XrHandTrackingMeshFB
calloc()

Returns a new XrHandTrackingMeshFB instance allocated with memCalloc.

public static XrHandTrackingMeshFB.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new XrHandTrackingMeshFB.Buffer instance allocated with memCalloc.

public static XrHandTrackingMeshFB
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XrHandTrackingMeshFB instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static XrHandTrackingMeshFB.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XrHandTrackingMeshFB.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected XrHandTrackingMeshFB
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static XrHandTrackingMeshFB
create()

Returns a new XrHandTrackingMeshFB instance allocated with BufferUtils.

public static XrHandTrackingMeshFB
create(long address)

Returns a new XrHandTrackingMeshFB instance for the specified memory address.

public static XrHandTrackingMeshFB.Buffer
create(int
the buffer capacity
capacity
)

Returns a new XrHandTrackingMeshFB.Buffer instance allocated with BufferUtils.

public static XrHandTrackingMeshFB.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a XrHandTrackingMeshFB.Buffer instance at the specified memory.

public static XrHandTrackingMeshFB
createSafe(long address)

Like create, but returns null if address is NULL.

public static XrHandTrackingMeshFB.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
indexCapacityInput()

the capacity of the index data arrays in this structure, or 0 to indicate a request to retrieve the required capacity.

public XrHandTrackingMeshFB
indexCapacityInput(int value)

Sets the specified value to the indexCapacityInput field.

public int
indexCountOutput()

filled in by the runtime with the count of index data elements written, or the required capacity in the case that any of jointCapacityInput, vertexCapacityInput, or indexCapacityInput is insufficient.

public XrHandTrackingMeshFB
indexCountOutput(int value)

Sets the specified value to the indexCountOutput field.

public ShortBuffer
indices()

an array of triangle indices.

public XrHandTrackingMeshFB
indices(ShortBuffer value)

Sets the address of the specified ShortBuffer to the indices field.

public XrPosef.Buffer
jointBindPoses()

an array of poses that matches what is returned by LocateHandJointsEXT which describes the hand skeleton’s bind pose.

public XrHandTrackingMeshFB
jointBindPoses(XrPosef.Buffer value)

Sets the address of the specified XrPosef.Buffer to the jointBindPoses field.

public int
jointCapacityInput()

the capacity of the joint data arrays in this structure, or 0 to indicate a request to retrieve the required capacity.

public XrHandTrackingMeshFB
jointCapacityInput(int value)

Sets the specified value to the jointCapacityInput field.

public int
jointCountOutput()

filled in by the runtime with the count of joint data elements written, or the required capacity in the case that any of jointCapacityInput, vertexCapacityInput, or indexCapacityInput is insufficient.

public XrHandTrackingMeshFB
jointCountOutput(int value)

Sets the specified value to the jointCountOutput field.

public IntBuffer
jointParents()

an array of joint parents to define a bone hierarchy for the hand skeleton.

public XrHandTrackingMeshFB
jointParents(IntBuffer value)

Sets the address of the specified IntBuffer to the jointParents field.

public FloatBuffer
jointRadii()

an array of joint radii at bind pose.

public XrHandTrackingMeshFB
jointRadii(FloatBuffer value)

Sets the address of the specified FloatBuffer to the jointRadii field.

public static XrHandTrackingMeshFB
malloc()

Returns a new XrHandTrackingMeshFB instance allocated with memAlloc.

public static XrHandTrackingMeshFB.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new XrHandTrackingMeshFB.Buffer instance allocated with memAlloc.

public static XrHandTrackingMeshFB
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XrHandTrackingMeshFB instance allocated on the specified MemoryStack.

public static XrHandTrackingMeshFB.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XrHandTrackingMeshFB.Buffer instance allocated on the specified MemoryStack.

public long
next()

NULL or a pointer to the next structure in a structure chain.

public XrHandTrackingMeshFB
next(long value)

Sets the specified value to the next field.

public static int
nindexCapacityInput(long struct)

Unsafe version of indexCapacityInput.

public static void
nindexCapacityInput(long struct, int value)

Sets the specified value to the indexCapacityInput field of the specified struct.

public static int
nindexCountOutput(long struct)

Unsafe version of indexCountOutput.

public static void
nindexCountOutput(long struct, int value)

Unsafe version of indexCountOutput.

public static ShortBuffer
nindices(long struct)

Unsafe version of indices.

public static void
nindices(long struct, ShortBuffer value)

Unsafe version of indices.

public static XrPosef.Buffer
njointBindPoses(long struct)

Unsafe version of jointBindPoses.

public static void
njointBindPoses(long struct, XrPosef.Buffer value)

Unsafe version of jointBindPoses.

public static int
njointCapacityInput(long struct)

Unsafe version of jointCapacityInput.

public static void
njointCapacityInput(long struct, int value)

Sets the specified value to the jointCapacityInput field of the specified struct.

public static int
njointCountOutput(long struct)

Unsafe version of jointCountOutput.

public static void
njointCountOutput(long struct, int value)

Unsafe version of jointCountOutput.

public static IntBuffer
njointParents(long struct)

Unsafe version of jointParents.

public static void
njointParents(long struct, IntBuffer value)

Unsafe version of jointParents.

public static FloatBuffer
njointRadii(long struct)

Unsafe version of jointRadii.

public static void
njointRadii(long struct, FloatBuffer value)

Unsafe version of jointRadii.

public static long
nnext(long struct)

Unsafe version of next.

public static void
nnext(long struct, long value)

Unsafe version of next.

public static int
ntype(long struct)

Unsafe version of type.

public static void
ntype(long struct, int value)

Unsafe version of type.

public static XrVector4sFB.Buffer
nvertexBlendIndices(long struct)

Unsafe version of vertexBlendIndices.

public static void
nvertexBlendIndices(long struct, XrVector4sFB.Buffer value)

Unsafe version of vertexBlendIndices.

public static XrVector4f.Buffer
nvertexBlendWeights(long struct)

Unsafe version of vertexBlendWeights.

public static void
nvertexBlendWeights(long struct, XrVector4f.Buffer value)

Unsafe version of vertexBlendWeights.

public static int
nvertexCapacityInput(long struct)

Unsafe version of vertexCapacityInput.

public static void
nvertexCapacityInput(long struct, int value)

Sets the specified value to the vertexCapacityInput field of the specified struct.

public static int
nvertexCountOutput(long struct)

Unsafe version of vertexCountOutput.

public static void
nvertexCountOutput(long struct, int value)

Unsafe version of vertexCountOutput.

public static XrVector3f.Buffer
nvertexNormals(long struct)

Unsafe version of vertexNormals.

public static void
nvertexNormals(long struct, XrVector3f.Buffer value)

Unsafe version of vertexNormals.

public static XrVector3f.Buffer
nvertexPositions(long struct)

Unsafe version of vertexPositions.

public static void
nvertexPositions(long struct, XrVector3f.Buffer value)

Unsafe version of vertexPositions.

public static XrVector2f.Buffer
nvertexUVs(long struct)

Unsafe version of vertexUVs.

public static void
nvertexUVs(long struct, XrVector2f.Buffer value)

Unsafe version of vertexUVs.

public XrHandTrackingMeshFB
set(int type, long next, int jointCapacityInput, int jointCountOutput, XrPosef.Buffer jointBindPoses, FloatBuffer jointRadii, IntBuffer jointParents, int vertexCapacityInput, int vertexCountOutput, XrVector3f.Buffer vertexPositions, XrVector3f.Buffer vertexNormals, XrVector2f.Buffer vertexUVs, XrVector4sFB.Buffer vertexBlendIndices, XrVector4f.Buffer vertexBlendWeights, int indexCapacityInput, int indexCountOutput, ShortBuffer indices)

Initializes this struct with the specified values.

public XrHandTrackingMeshFB

Returns:

this struct
set
(XrHandTrackingMeshFB
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
type()

the XrStructureType of this structure.

public XrHandTrackingMeshFB
type(int value)

Sets the specified value to the type field.

public XrHandTrackingMeshFB
type$Default()

Sets the TYPE_HAND_TRACKING_MESH_FB value to the type field.

public XrVector4sFB.Buffer
vertexBlendIndices()

an array of bone blend indices.

public XrHandTrackingMeshFB
vertexBlendIndices(XrVector4sFB.Buffer value)

Sets the address of the specified XrVector4sFB.Buffer to the vertexBlendIndices field.

public XrVector4f.Buffer
vertexBlendWeights()

an array of bone blend weights.

public XrHandTrackingMeshFB
vertexBlendWeights(XrVector4f.Buffer value)

Sets the address of the specified XrVector4f.Buffer to the vertexBlendWeights field.

public int
vertexCapacityInput()

the capacity of the vertex data arrays in this structure, or 0 to indicate a request to retrieve the required capacity.

public XrHandTrackingMeshFB
vertexCapacityInput(int value)

Sets the specified value to the vertexCapacityInput field.

public int
vertexCountOutput()

filled in by the runtime with the count of vertex data elements written, or the required capacity in the case that any of jointCapacityInput, vertexCapacityInput, or indexCapacityInput is insufficient.

public XrHandTrackingMeshFB
vertexCountOutput(int value)

Sets the specified value to the vertexCountOutput field.

public XrVector3f.Buffer
vertexNormals()

an array of 3D vertex normals.

public XrHandTrackingMeshFB
vertexNormals(XrVector3f.Buffer value)

Sets the address of the specified XrVector3f.Buffer to the vertexNormals field.

public XrVector3f.Buffer
vertexPositions()

an array of 3D vertex positions.

public XrHandTrackingMeshFB
vertexPositions(XrVector3f.Buffer value)

Sets the address of the specified XrVector3f.Buffer to the vertexPositions field.

public XrVector2f.Buffer
vertexUVs()

an array of texture coordinates for this vertex.

public XrHandTrackingMeshFB
vertexUVs(XrVector2f.Buffer value)

Sets the address of the specified XrVector2f.Buffer to the vertexUVs field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate