Top Description Inners Fields Constructors Methods
org.lwjgl.openxr

public Class XrPassthroughMeshTransformInfoHTC

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

The information of mesh and transformation of the passthrough.
Description

The XrPassthroughMeshTransformInfoHTC structure describes the mesh and transformation.

The application must specify the XrPassthroughMeshTransformInfoHTC in the next chain of XrCompositionLayerPassthroughHTC if the specified form of passthrough layer previously created by CreatePassthroughHTC is PASSTHROUGH_FORM_PROJECTED_HTC.

Passing XrPassthroughMeshTransformInfoHTC updates the projected mesh information in the runtime for passthrough layer composition.

If XrPassthroughMeshTransformInfoHTC is not set correctly, runtime must return error ERROR_VALIDATION_FAILURE when EndFrame is called with composition layer XrCompositionLayerPassthroughHTC.

Valid Usage (Implicit)
See Also

XrPosef, XrVector3f

Layout


struct XrPassthroughMeshTransformInfoHTC {
    XrStructureType type;
    void const * next;
    uint32_t vertexCount;
    XrVector3f const * vertices;
    uint32_t indexCount;
    uint32_t const * indices;
    XrSpace baseSpace;
    XrTime time;
    XrPosef pose;
    XrVector3f scale;
}

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
BASESPACE

The struct member offsets.

public static final int
INDEXCOUNT

The struct member offsets.

public static final int
INDICES

The struct member offsets.

public static final int
NEXT

The struct member offsets.

public static final int
POSE

The struct member offsets.

public static final int
SCALE

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TIME

The struct member offsets.

public static final int
TYPE

The struct member offsets.

public static final int
VERTEXCOUNT

The struct member offsets.

public static final int
VERTICES

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
public
XrPassthroughMeshTransformInfoHTC(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public long
baseSpace()

the XrSpace that defines the projected passthrough’s base space for transformations.

public XrPassthroughMeshTransformInfoHTC
baseSpace(XrSpace value)

Sets the specified value to the baseSpace field.

public static XrPassthroughMeshTransformInfoHTC
calloc()

Returns a new XrPassthroughMeshTransformInfoHTC instance allocated with memCalloc.

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

Returns a new XrPassthroughMeshTransformInfoHTC.Buffer instance allocated with memCalloc.

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

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

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

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

protected XrPassthroughMeshTransformInfoHTC
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 XrPassthroughMeshTransformInfoHTC
create()

Returns a new XrPassthroughMeshTransformInfoHTC instance allocated with BufferUtils.

public static XrPassthroughMeshTransformInfoHTC
create(long address)

Returns a new XrPassthroughMeshTransformInfoHTC instance for the specified memory address.

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

Returns a new XrPassthroughMeshTransformInfoHTC.Buffer instance allocated with BufferUtils.

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

Create a XrPassthroughMeshTransformInfoHTC.Buffer instance at the specified memory.

public static XrPassthroughMeshTransformInfoHTC
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public int
indexCount()

the count of indices array in the mesh.

public IntBuffer
indices()

an array of triangle indices.

public XrPassthroughMeshTransformInfoHTC
indices(IntBuffer value)

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

public static XrPassthroughMeshTransformInfoHTC
malloc()

Returns a new XrPassthroughMeshTransformInfoHTC instance allocated with memAlloc.

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

Returns a new XrPassthroughMeshTransformInfoHTC.Buffer instance allocated with memAlloc.

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

Returns a new XrPassthroughMeshTransformInfoHTC instance allocated on the specified MemoryStack.

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

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

public static long
nbaseSpace(long struct)

Unsafe version of baseSpace.

public static void
nbaseSpace(long struct, XrSpace value)

Unsafe version of baseSpace.

public long
next()

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

public XrPassthroughMeshTransformInfoHTC
next(long value)

Sets the specified value to the next field.

public static int
nindexCount(long struct)

Unsafe version of indexCount.

public static void
nindexCount(long struct, int value)

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

public static IntBuffer
nindices(long struct)

Unsafe version of indices.

public static void
nindices(long struct, IntBuffer value)

Unsafe version of indices.

public static long
nnext(long struct)

Unsafe version of next.

public static void
nnext(long struct, long value)

Unsafe version of next.

public static XrPosef
npose(long struct)

Unsafe version of pose.

public static void
npose(long struct, XrPosef value)

Unsafe version of pose.

public static XrVector3f
nscale(long struct)

Unsafe version of scale.

public static void
nscale(long struct, XrVector3f value)

Unsafe version of scale.

public static long
ntime(long struct)

Unsafe version of time.

public static void
ntime(long struct, long value)

Unsafe version of time.

public static int
ntype(long struct)

Unsafe version of type.

public static void
ntype(long struct, int value)

Unsafe version of type.

public static int
nvertexCount(long struct)

Unsafe version of vertexCount.

public static void
nvertexCount(long struct, int value)

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

public static XrVector3f.Buffer
nvertices(long struct)

Unsafe version of vertices.

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

Unsafe version of vertices.

public XrPosef
pose()

the XrPosef that defines the pose of the mesh

public XrPassthroughMeshTransformInfoHTC
pose(XrPosef value)

Copies the specified XrPosef to the pose field.

public XrPassthroughMeshTransformInfoHTC
pose(Consumer<XrPosef> consumer)

Passes the pose field to the specified Consumer.

public XrVector3f
scale()

the XrVector3f that defines the scale of the mesh

public XrPassthroughMeshTransformInfoHTC
scale(XrVector3f value)

Copies the specified XrVector3f to the scale field.

public XrPassthroughMeshTransformInfoHTC
scale(Consumer<XrVector3f> consumer)

Passes the scale field to the specified Consumer.

public XrPassthroughMeshTransformInfoHTC
set(int type, long next, XrVector3f.Buffer vertices, IntBuffer indices, XrSpace baseSpace, long time, XrPosef pose, XrVector3f scale)

Initializes this struct with the specified values.

public XrPassthroughMeshTransformInfoHTC

Returns:

this struct
set
(XrPassthroughMeshTransformInfoHTC
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 long
time()

the XrTime that defines the time at which the transform is applied.

public XrPassthroughMeshTransformInfoHTC
time(long value)

Sets the specified value to the time field.

public int
type()

the XrStructureType of this structure.

public XrPassthroughMeshTransformInfoHTC
type(int value)

Sets the specified value to the type field.

public XrPassthroughMeshTransformInfoHTC
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

public int
vertexCount()

the count of vertices array in the mesh.

public XrVector3f.Buffer
vertices()

an array of XrVector3f.

public XrPassthroughMeshTransformInfoHTC
vertices(XrVector3f.Buffer value)

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

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate