Package org.lwjgl.openxr
Class XrWorldMeshBlockML
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct XrWorldMeshBlockML {
XrStructureType type;
void * next;
XrUuidEXT uuid;
XrWorldMeshBlockResultML blockResult;
XrWorldMeshDetectorLodML lod;
XrWorldMeshDetectorFlagsML flags;
uint32_t indexCount;
uint16_t * indexBuffer;
uint32_t vertexCount;
XrVector3f * vertexBuffer;
uint32_t normalCount;
XrVector3f * normalBuffer;
uint32_t confidenceCount;
float * confidenceBuffer;
}-
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 member offsets.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 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.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
ConstructorsConstructorDescriptionXrWorldMeshBlockML(ByteBuffer container) Creates aXrWorldMeshBlockMLinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintblockResult(int value) Sets the specified value to theblockResultfield.static XrWorldMeshBlockMLcalloc()Returns a newXrWorldMeshBlockMLinstance allocated withmemCalloc.static XrWorldMeshBlockML.Buffercalloc(int capacity) Returns a newXrWorldMeshBlockML.Bufferinstance allocated withmemCalloc.static XrWorldMeshBlockML.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrWorldMeshBlockML.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrWorldMeshBlockMLcalloc(MemoryStack stack) Returns a newXrWorldMeshBlockMLinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.confidenceBuffer(FloatBuffer value) Sets the address of the specifiedFloatBufferto theconfidenceBufferfield.intstatic XrWorldMeshBlockMLcreate()Returns a newXrWorldMeshBlockMLinstance allocated withBufferUtils.static XrWorldMeshBlockML.Buffercreate(int capacity) Returns a newXrWorldMeshBlockML.Bufferinstance allocated withBufferUtils.static XrWorldMeshBlockMLcreate(long address) Returns a newXrWorldMeshBlockMLinstance for the specified memory address.static XrWorldMeshBlockML.Buffercreate(long address, int capacity) Create aXrWorldMeshBlockML.Bufferinstance at the specified memory.static @Nullable XrWorldMeshBlockMLcreateSafe(long address) static @Nullable XrWorldMeshBlockML.BuffercreateSafe(long address, int capacity) longflags()flags(long value) Sets the specified value to theflagsfield.indexBuffer(ShortBuffer value) Sets the address of the specifiedShortBufferto theindexBufferfield.intintlod()lod(int value) Sets the specified value to thelodfield.static XrWorldMeshBlockMLmalloc()Returns a newXrWorldMeshBlockMLinstance allocated withmemAlloc.static XrWorldMeshBlockML.Buffermalloc(int capacity) Returns a newXrWorldMeshBlockML.Bufferinstance allocated withmemAlloc.static XrWorldMeshBlockML.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrWorldMeshBlockML.Bufferinstance allocated on the specifiedMemoryStack.static XrWorldMeshBlockMLmalloc(MemoryStack stack) Returns a newXrWorldMeshBlockMLinstance allocated on the specifiedMemoryStack.static intnblockResult(long struct) Unsafe version ofblockResult().static voidnblockResult(long struct, int value) Unsafe version ofblockResult.static FloatBuffernconfidenceBuffer(long struct) Unsafe version ofconfidenceBuffer.static voidnconfidenceBuffer(long struct, FloatBuffer value) Unsafe version ofconfidenceBuffer.static intnconfidenceCount(long struct) Unsafe version ofconfidenceCount().static voidnconfidenceCount(long struct, int value) Sets the specified value to theconfidenceCountfield of the specifiedstruct.longnext()next(long value) Sets the specified value to thenextfield.static longnflags(long struct) Unsafe version offlags().static voidnflags(long struct, long value) Unsafe version offlags.static ShortBuffernindexBuffer(long struct) Unsafe version ofindexBuffer.static voidnindexBuffer(long struct, ShortBuffer value) Unsafe version ofindexBuffer.static intnindexCount(long struct) Unsafe version ofindexCount().static voidnindexCount(long struct, int value) Sets the specified value to theindexCountfield of the specifiedstruct.static intnlod(long struct) Unsafe version oflod().static voidnlod(long struct, int value) Unsafe version oflod.static longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static XrVector3f.BuffernnormalBuffer(long struct) Unsafe version ofnormalBuffer().static voidnnormalBuffer(long struct, XrVector3f.Buffer value) Unsafe version ofnormalBuffer.static intnnormalCount(long struct) Unsafe version ofnormalCount().static voidnnormalCount(long struct, int value) Sets the specified value to thenormalCountfield of the specifiedstruct.normalBuffer(XrVector3f.Buffer value) Sets the address of the specifiedXrVector3f.Bufferto thenormalBufferfield.intstatic intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.static XrUuidEXTnuuid(long struct) Unsafe version ofuuid().static voidUnsafe version ofuuid.static XrVector3f.BuffernvertexBuffer(long struct) Unsafe version ofvertexBuffer().static voidnvertexBuffer(long struct, XrVector3f.Buffer value) Unsafe version ofvertexBuffer.static intnvertexCount(long struct) Unsafe version ofvertexCount().static voidnvertexCount(long struct, int value) Sets the specified value to thevertexCountfield of the specifiedstruct.set(int type, long next, XrUuidEXT uuid, int blockResult, int lod, long flags, ShortBuffer indexBuffer, XrVector3f.Buffer vertexBuffer, XrVector3f.Buffer normalBuffer, FloatBuffer confidenceBuffer) Initializes this struct with the specified values.set(XrWorldMeshBlockML src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_WORLD_MESH_BLOCK_MLvalue to thetypefield.uuid()Passes theuuidfield to the specifiedConsumer.Copies the specifiedXrUuidEXTto theuuidfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.vertexBuffer(XrVector3f.Buffer value) Sets the address of the specifiedXrVector3f.Bufferto thevertexBufferfield.intMethods 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. -
UUID
public static final int UUIDThe struct member offsets. -
BLOCKRESULT
public static final int BLOCKRESULTThe struct member offsets. -
LOD
public static final int LODThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
INDEXCOUNT
public static final int INDEXCOUNTThe struct member offsets. -
INDEXBUFFER
public static final int INDEXBUFFERThe struct member offsets. -
VERTEXCOUNT
public static final int VERTEXCOUNTThe struct member offsets. -
VERTEXBUFFER
public static final int VERTEXBUFFERThe struct member offsets. -
NORMALCOUNT
public static final int NORMALCOUNTThe struct member offsets. -
NORMALBUFFER
public static final int NORMALBUFFERThe struct member offsets. -
CONFIDENCECOUNT
public static final int CONFIDENCECOUNTThe struct member offsets. -
CONFIDENCEBUFFER
public static final int CONFIDENCEBUFFERThe struct member offsets.
-
-
Constructor Details
-
XrWorldMeshBlockML
Creates aXrWorldMeshBlockMLinstance 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<XrWorldMeshBlockML>
-
type
public int type()- Returns:
- the value of the
typefield.
-
next
public long next()- Returns:
- the value of the
nextfield.
-
uuid
- Returns:
- a
XrUuidEXTview of theuuidfield.
-
blockResult
public int blockResult()- Returns:
- the value of the
blockResultfield.
-
lod
public int lod()- Returns:
- the value of the
lodfield.
-
flags
public long flags()- Returns:
- the value of the
flagsfield.
-
indexCount
public int indexCount()- Returns:
- the value of the
indexCountfield.
-
indexBuffer
- Returns:
- a
ShortBufferview of the data pointed to by theindexBufferfield.
-
vertexCount
public int vertexCount()- Returns:
- the value of the
vertexCountfield.
-
vertexBuffer
- Returns:
- a
XrVector3f.Bufferview of the struct array pointed to by thevertexBufferfield.
-
normalCount
public int normalCount()- Returns:
- the value of the
normalCountfield.
-
normalBuffer
- Returns:
- a
XrVector3f.Bufferview of the struct array pointed to by thenormalBufferfield.
-
confidenceCount
public int confidenceCount()- Returns:
- the value of the
confidenceCountfield.
-
confidenceBuffer
- Returns:
- a
FloatBufferview of the data pointed to by theconfidenceBufferfield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_WORLD_MESH_BLOCK_MLvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
uuid
Copies the specifiedXrUuidEXTto theuuidfield. -
uuid
Passes theuuidfield to the specifiedConsumer. -
blockResult
Sets the specified value to theblockResultfield. -
lod
Sets the specified value to thelodfield. -
flags
Sets the specified value to theflagsfield. -
indexBuffer
Sets the address of the specifiedShortBufferto theindexBufferfield. -
vertexBuffer
Sets the address of the specifiedXrVector3f.Bufferto thevertexBufferfield. -
normalBuffer
Sets the address of the specifiedXrVector3f.Bufferto thenormalBufferfield. -
confidenceBuffer
Sets the address of the specifiedFloatBufferto theconfidenceBufferfield. -
set
public XrWorldMeshBlockML set(int type, long next, XrUuidEXT uuid, int blockResult, int lod, long flags, ShortBuffer indexBuffer, XrVector3f.Buffer vertexBuffer, XrVector3f.Buffer normalBuffer, FloatBuffer confidenceBuffer) 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 newXrWorldMeshBlockMLinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrWorldMeshBlockMLinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrWorldMeshBlockMLinstance allocated withBufferUtils. -
create
Returns a newXrWorldMeshBlockMLinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrWorldMeshBlockML.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrWorldMeshBlockML.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrWorldMeshBlockML.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrWorldMeshBlockML.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrWorldMeshBlockMLinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrWorldMeshBlockMLinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrWorldMeshBlockML.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrWorldMeshBlockML.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(). -
nuuid
Unsafe version ofuuid(). -
nblockResult
public static int nblockResult(long struct) Unsafe version ofblockResult(). -
nlod
public static int nlod(long struct) Unsafe version oflod(). -
nflags
public static long nflags(long struct) Unsafe version offlags(). -
nindexCount
public static int nindexCount(long struct) Unsafe version ofindexCount(). -
nindexBuffer
Unsafe version ofindexBuffer. -
nvertexCount
public static int nvertexCount(long struct) Unsafe version ofvertexCount(). -
nvertexBuffer
Unsafe version ofvertexBuffer(). -
nnormalCount
public static int nnormalCount(long struct) Unsafe version ofnormalCount(). -
nnormalBuffer
Unsafe version ofnormalBuffer(). -
nconfidenceCount
public static int nconfidenceCount(long struct) Unsafe version ofconfidenceCount(). -
nconfidenceBuffer
Unsafe version ofconfidenceBuffer. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
nuuid
Unsafe version ofuuid. -
nblockResult
public static void nblockResult(long struct, int value) Unsafe version ofblockResult. -
nlod
public static void nlod(long struct, int value) Unsafe version oflod. -
nflags
public static void nflags(long struct, long value) Unsafe version offlags. -
nindexCount
public static void nindexCount(long struct, int value) Sets the specified value to theindexCountfield of the specifiedstruct. -
nindexBuffer
Unsafe version ofindexBuffer. -
nvertexCount
public static void nvertexCount(long struct, int value) Sets the specified value to thevertexCountfield of the specifiedstruct. -
nvertexBuffer
Unsafe version ofvertexBuffer. -
nnormalCount
public static void nnormalCount(long struct, int value) Sets the specified value to thenormalCountfield of the specifiedstruct. -
nnormalBuffer
Unsafe version ofnormalBuffer. -
nconfidenceCount
public static void nconfidenceCount(long struct, int value) Sets the specified value to theconfidenceCountfield of the specifiedstruct. -
nconfidenceBuffer
Unsafe version ofconfidenceBuffer. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-