Package org.lwjgl.openxr
Class XrSpatialMeshDataEXT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct XrSpatialMeshDataEXT {
XrPosef origin;
XrSpatialBufferEXT vertexBuffer;
XrSpatialBufferEXT indexBuffer;
}-
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 size in bytes.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
ConstructorsConstructorDescriptionXrSpatialMeshDataEXT(ByteBuffer container) Creates aXrSpatialMeshDataEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrSpatialMeshDataEXTcalloc()Returns a newXrSpatialMeshDataEXTinstance allocated withmemCalloc.static XrSpatialMeshDataEXT.Buffercalloc(int capacity) Returns a newXrSpatialMeshDataEXT.Bufferinstance allocated withmemCalloc.static XrSpatialMeshDataEXT.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrSpatialMeshDataEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSpatialMeshDataEXTcalloc(MemoryStack stack) Returns a newXrSpatialMeshDataEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSpatialMeshDataEXTcreate()Returns a newXrSpatialMeshDataEXTinstance allocated withBufferUtils.static XrSpatialMeshDataEXT.Buffercreate(int capacity) Returns a newXrSpatialMeshDataEXT.Bufferinstance allocated withBufferUtils.static XrSpatialMeshDataEXTcreate(long address) Returns a newXrSpatialMeshDataEXTinstance for the specified memory address.static XrSpatialMeshDataEXT.Buffercreate(long address, int capacity) Create aXrSpatialMeshDataEXT.Bufferinstance at the specified memory.static @Nullable XrSpatialMeshDataEXTcreateSafe(long address) static @Nullable XrSpatialMeshDataEXT.BuffercreateSafe(long address, int capacity) indexBuffer(Consumer<XrSpatialBufferEXT> consumer) Passes theindexBufferfield to the specifiedConsumer.indexBuffer(XrSpatialBufferEXT value) Copies the specifiedXrSpatialBufferEXTto theindexBufferfield.static XrSpatialMeshDataEXTmalloc()Returns a newXrSpatialMeshDataEXTinstance allocated withmemAlloc.static XrSpatialMeshDataEXT.Buffermalloc(int capacity) Returns a newXrSpatialMeshDataEXT.Bufferinstance allocated withmemAlloc.static XrSpatialMeshDataEXT.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrSpatialMeshDataEXT.Bufferinstance allocated on the specifiedMemoryStack.static XrSpatialMeshDataEXTmalloc(MemoryStack stack) Returns a newXrSpatialMeshDataEXTinstance allocated on the specifiedMemoryStack.static XrSpatialBufferEXTnindexBuffer(long struct) Unsafe version ofindexBuffer().static voidnindexBuffer(long struct, XrSpatialBufferEXT value) Unsafe version ofindexBuffer.static XrPosefnorigin(long struct) Unsafe version oforigin().static voidUnsafe version oforigin.static XrSpatialBufferEXTnvertexBuffer(long struct) Unsafe version ofvertexBuffer().static voidnvertexBuffer(long struct, XrSpatialBufferEXT value) Unsafe version ofvertexBuffer.origin()Passes theoriginfield to the specifiedConsumer.Copies the specifiedXrPosefto theoriginfield.set(XrPosef origin, XrSpatialBufferEXT vertexBuffer, XrSpatialBufferEXT indexBuffer) Initializes this struct with the specified values.set(XrSpatialMeshDataEXT src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).vertexBuffer(Consumer<XrSpatialBufferEXT> consumer) Passes thevertexBufferfield to the specifiedConsumer.vertexBuffer(XrSpatialBufferEXT value) Copies the specifiedXrSpatialBufferEXTto thevertexBufferfield.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. -
ORIGIN
public static final int ORIGINThe struct member offsets. -
VERTEXBUFFER
public static final int VERTEXBUFFERThe struct member offsets. -
INDEXBUFFER
public static final int INDEXBUFFERThe struct member offsets.
-
-
Constructor Details
-
XrSpatialMeshDataEXT
Creates aXrSpatialMeshDataEXTinstance 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<XrSpatialMeshDataEXT>
-
origin
- Returns:
- a
XrPosefview of theoriginfield.
-
vertexBuffer
- Returns:
- a
XrSpatialBufferEXTview of thevertexBufferfield.
-
indexBuffer
- Returns:
- a
XrSpatialBufferEXTview of theindexBufferfield.
-
origin
Copies the specifiedXrPosefto theoriginfield. -
origin
Passes theoriginfield to the specifiedConsumer. -
vertexBuffer
Copies the specifiedXrSpatialBufferEXTto thevertexBufferfield. -
vertexBuffer
Passes thevertexBufferfield to the specifiedConsumer. -
indexBuffer
Copies the specifiedXrSpatialBufferEXTto theindexBufferfield. -
indexBuffer
Passes theindexBufferfield to the specifiedConsumer. -
set
public XrSpatialMeshDataEXT set(XrPosef origin, XrSpatialBufferEXT vertexBuffer, XrSpatialBufferEXT indexBuffer) 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 newXrSpatialMeshDataEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSpatialMeshDataEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSpatialMeshDataEXTinstance allocated withBufferUtils. -
create
Returns a newXrSpatialMeshDataEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSpatialMeshDataEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSpatialMeshDataEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSpatialMeshDataEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSpatialMeshDataEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSpatialMeshDataEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSpatialMeshDataEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrSpatialMeshDataEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrSpatialMeshDataEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
norigin
Unsafe version oforigin(). -
nvertexBuffer
Unsafe version ofvertexBuffer(). -
nindexBuffer
Unsafe version ofindexBuffer(). -
norigin
Unsafe version oforigin. -
nvertexBuffer
Unsafe version ofvertexBuffer. -
nindexBuffer
Unsafe version ofindexBuffer.
-