Package org.lwjgl.openxr
Class XrHandMeshMSFT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct XrHandMeshMSFT {
XrStructureType type;
void * next;
XrBool32 isActive;
XrBool32 indexBufferChanged;
XrBool32 vertexBufferChanged;
XrHandMeshIndexBufferMSFT indexBuffer;
XrHandMeshVertexBufferMSFT vertexBuffer;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrHandMeshMSFT(ByteBuffer container) Creates aXrHandMeshMSFTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrHandMeshMSFTcalloc()Returns a newXrHandMeshMSFTinstance allocated withmemCalloc.static XrHandMeshMSFT.Buffercalloc(int capacity) Returns a newXrHandMeshMSFT.Bufferinstance allocated withmemCalloc.static XrHandMeshMSFT.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrHandMeshMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHandMeshMSFTcalloc(MemoryStack stack) Returns a newXrHandMeshMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHandMeshMSFTcreate()Returns a newXrHandMeshMSFTinstance allocated withBufferUtils.static XrHandMeshMSFT.Buffercreate(int capacity) Returns a newXrHandMeshMSFT.Bufferinstance allocated withBufferUtils.static XrHandMeshMSFTcreate(long address) Returns a newXrHandMeshMSFTinstance for the specified memory address.static XrHandMeshMSFT.Buffercreate(long address, int capacity) Create aXrHandMeshMSFT.Bufferinstance at the specified memory.static @Nullable XrHandMeshMSFTcreateSafe(long address) static @Nullable XrHandMeshMSFT.BuffercreateSafe(long address, int capacity) indexBuffer(Consumer<XrHandMeshIndexBufferMSFT> consumer) Passes theindexBufferfield to the specifiedConsumer.Copies the specifiedXrHandMeshIndexBufferMSFTto theindexBufferfield.booleanindexBufferChanged(boolean value) Sets the specified value to theindexBufferChangedfield.booleanisActive()isActive(boolean value) Sets the specified value to theisActivefield.static XrHandMeshMSFTmalloc()Returns a newXrHandMeshMSFTinstance allocated withmemAlloc.static XrHandMeshMSFT.Buffermalloc(int capacity) Returns a newXrHandMeshMSFT.Bufferinstance allocated withmemAlloc.static XrHandMeshMSFT.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrHandMeshMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrHandMeshMSFTmalloc(MemoryStack stack) Returns a newXrHandMeshMSFTinstance allocated on the specifiedMemoryStack.longnext()next(long value) Sets the specified value to thenextfield.static XrHandMeshIndexBufferMSFTnindexBuffer(long struct) Unsafe version ofindexBuffer().static voidnindexBuffer(long struct, XrHandMeshIndexBufferMSFT value) Unsafe version ofindexBuffer.static intnindexBufferChanged(long struct) Unsafe version ofindexBufferChanged().static voidnindexBufferChanged(long struct, int value) Unsafe version ofindexBufferChanged.static intnisActive(long struct) Unsafe version ofisActive().static voidnisActive(long struct, int value) Unsafe version ofisActive.static longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.static XrHandMeshVertexBufferMSFTnvertexBuffer(long struct) Unsafe version ofvertexBuffer().static voidnvertexBuffer(long struct, XrHandMeshVertexBufferMSFT value) Unsafe version ofvertexBuffer.static intnvertexBufferChanged(long struct) Unsafe version ofvertexBufferChanged().static voidnvertexBufferChanged(long struct, int value) Unsafe version ofvertexBufferChanged.set(int type, long next, boolean isActive, boolean indexBufferChanged, boolean vertexBufferChanged, XrHandMeshIndexBufferMSFT indexBuffer, XrHandMeshVertexBufferMSFT vertexBuffer) Initializes this struct with the specified values.set(XrHandMeshMSFT src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_HAND_MESH_MSFTvalue to thetypefield.vertexBuffer(Consumer<XrHandMeshVertexBufferMSFT> consumer) Passes thevertexBufferfield to the specifiedConsumer.Copies the specifiedXrHandMeshVertexBufferMSFTto thevertexBufferfield.booleanvertexBufferChanged(boolean value) Sets the specified value to thevertexBufferChangedfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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. -
ISACTIVE
public static final int ISACTIVEThe struct member offsets. -
INDEXBUFFERCHANGED
public static final int INDEXBUFFERCHANGEDThe struct member offsets. -
VERTEXBUFFERCHANGED
public static final int VERTEXBUFFERCHANGEDThe struct member offsets. -
INDEXBUFFER
public static final int INDEXBUFFERThe struct member offsets. -
VERTEXBUFFER
public static final int VERTEXBUFFERThe struct member offsets.
-
-
Constructor Details
-
XrHandMeshMSFT
Creates aXrHandMeshMSFTinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrHandMeshMSFT>
-
type
public int type()- Returns:
- the value of the
typefield.
-
next
public long next()- Returns:
- the value of the
nextfield.
-
isActive
public boolean isActive()- Returns:
- the value of the
isActivefield.
-
indexBufferChanged
public boolean indexBufferChanged()- Returns:
- the value of the
indexBufferChangedfield.
-
vertexBufferChanged
public boolean vertexBufferChanged()- Returns:
- the value of the
vertexBufferChangedfield.
-
indexBuffer
- Returns:
- a
XrHandMeshIndexBufferMSFTview of theindexBufferfield.
-
vertexBuffer
- Returns:
- a
XrHandMeshVertexBufferMSFTview of thevertexBufferfield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_HAND_MESH_MSFTvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
isActive
Sets the specified value to theisActivefield. -
indexBufferChanged
Sets the specified value to theindexBufferChangedfield. -
vertexBufferChanged
Sets the specified value to thevertexBufferChangedfield. -
indexBuffer
Copies the specifiedXrHandMeshIndexBufferMSFTto theindexBufferfield. -
indexBuffer
Passes theindexBufferfield to the specifiedConsumer. -
vertexBuffer
Copies the specifiedXrHandMeshVertexBufferMSFTto thevertexBufferfield. -
vertexBuffer
Passes thevertexBufferfield to the specifiedConsumer. -
set
public XrHandMeshMSFT set(int type, long next, boolean isActive, boolean indexBufferChanged, boolean vertexBufferChanged, XrHandMeshIndexBufferMSFT indexBuffer, XrHandMeshVertexBufferMSFT vertexBuffer) 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 newXrHandMeshMSFTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrHandMeshMSFTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrHandMeshMSFTinstance allocated withBufferUtils. -
create
Returns a newXrHandMeshMSFTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrHandMeshMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrHandMeshMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrHandMeshMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrHandMeshMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrHandMeshMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrHandMeshMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrHandMeshMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrHandMeshMSFT.Bufferinstance allocated on the specifiedMemoryStackand 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(). -
nisActive
public static int nisActive(long struct) Unsafe version ofisActive(). -
nindexBufferChanged
public static int nindexBufferChanged(long struct) Unsafe version ofindexBufferChanged(). -
nvertexBufferChanged
public static int nvertexBufferChanged(long struct) Unsafe version ofvertexBufferChanged(). -
nindexBuffer
Unsafe version ofindexBuffer(). -
nvertexBuffer
Unsafe version ofvertexBuffer(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
nisActive
public static void nisActive(long struct, int value) Unsafe version ofisActive. -
nindexBufferChanged
public static void nindexBufferChanged(long struct, int value) Unsafe version ofindexBufferChanged. -
nvertexBufferChanged
public static void nvertexBufferChanged(long struct, int value) Unsafe version ofvertexBufferChanged. -
nindexBuffer
Unsafe version ofindexBuffer. -
nvertexBuffer
Unsafe version ofvertexBuffer.
-