Package org.lwjgl.openxr
Class XrWorldMeshBlockML
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct XrWorldMeshBlockML {
XrStructureType type;
void * next;
{@link XrUuidEXT XrUuidEXT} uuid;
XrWorldMeshBlockResultML blockResult;
XrWorldMeshDetectorLodML lod;
XrWorldMeshDetectorFlagsML flags;
uint32_t indexCount;
uint16_t * indexBuffer;
uint32_t vertexCount;
{@link XrVector3f XrVector3f} * vertexBuffer;
uint32_t normalCount;
{@link XrVector3f XrVector3f} * normalBuffer;
uint32_t confidenceCount;
float * confidenceBuffer;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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 aXrWorldMeshBlockML
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
blockResult
(int value) Sets the specified value to theblockResult
field.static XrWorldMeshBlockML
calloc()
Returns a newXrWorldMeshBlockML
instance allocated withmemCalloc
.static XrWorldMeshBlockML.Buffer
calloc
(int capacity) Returns a newXrWorldMeshBlockML.Buffer
instance allocated withmemCalloc
.static XrWorldMeshBlockML.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newXrWorldMeshBlockML.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrWorldMeshBlockML
calloc
(MemoryStack stack) Returns a newXrWorldMeshBlockML
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.confidenceBuffer
(FloatBuffer value) Sets the address of the specifiedFloatBuffer
to theconfidenceBuffer
field.int
static XrWorldMeshBlockML
create()
Returns a newXrWorldMeshBlockML
instance allocated withBufferUtils
.static XrWorldMeshBlockML.Buffer
create
(int capacity) Returns a newXrWorldMeshBlockML.Buffer
instance allocated withBufferUtils
.static XrWorldMeshBlockML
create
(long address) Returns a newXrWorldMeshBlockML
instance for the specified memory address.static XrWorldMeshBlockML.Buffer
create
(long address, int capacity) Create aXrWorldMeshBlockML.Buffer
instance at the specified memory.static @Nullable XrWorldMeshBlockML
createSafe
(long address) static @Nullable XrWorldMeshBlockML.Buffer
createSafe
(long address, int capacity) long
flags()
flags
(long value) Sets the specified value to theflags
field.indexBuffer
(ShortBuffer value) Sets the address of the specifiedShortBuffer
to theindexBuffer
field.int
int
lod()
lod
(int value) Sets the specified value to thelod
field.static XrWorldMeshBlockML
malloc()
Returns a newXrWorldMeshBlockML
instance allocated withmemAlloc
.static XrWorldMeshBlockML.Buffer
malloc
(int capacity) Returns a newXrWorldMeshBlockML.Buffer
instance allocated withmemAlloc
.static XrWorldMeshBlockML.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newXrWorldMeshBlockML.Buffer
instance allocated on the specifiedMemoryStack
.static XrWorldMeshBlockML
malloc
(MemoryStack stack) Returns a newXrWorldMeshBlockML
instance allocated on the specifiedMemoryStack
.static int
nblockResult
(long struct) Unsafe version ofblockResult()
.static void
nblockResult
(long struct, int value) Unsafe version ofblockResult
.static FloatBuffer
nconfidenceBuffer
(long struct) Unsafe version ofconfidenceBuffer
.static void
nconfidenceBuffer
(long struct, FloatBuffer value) Unsafe version ofconfidenceBuffer
.static int
nconfidenceCount
(long struct) Unsafe version ofconfidenceCount()
.static void
nconfidenceCount
(long struct, int value) Sets the specified value to theconfidenceCount
field of the specifiedstruct
.long
next()
next
(long value) Sets the specified value to thenext
field.static long
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, long value) Unsafe version offlags
.static ShortBuffer
nindexBuffer
(long struct) Unsafe version ofindexBuffer
.static void
nindexBuffer
(long struct, ShortBuffer value) Unsafe version ofindexBuffer
.static int
nindexCount
(long struct) Unsafe version ofindexCount()
.static void
nindexCount
(long struct, int value) Sets the specified value to theindexCount
field of the specifiedstruct
.static int
nlod
(long struct) Unsafe version oflod()
.static void
nlod
(long struct, int value) Unsafe version oflod
.static long
nnext
(long struct) Unsafe version ofnext()
.static void
nnext
(long struct, long value) Unsafe version ofnext
.static XrVector3f.Buffer
nnormalBuffer
(long struct) Unsafe version ofnormalBuffer()
.static void
nnormalBuffer
(long struct, XrVector3f.Buffer value) Unsafe version ofnormalBuffer
.static int
nnormalCount
(long struct) Unsafe version ofnormalCount()
.static void
nnormalCount
(long struct, int value) Sets the specified value to thenormalCount
field of the specifiedstruct
.normalBuffer
(XrVector3f.Buffer value) Sets the address of the specifiedXrVector3f.Buffer
to thenormalBuffer
field.int
static int
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(long struct, int value) Unsafe version oftype
.static XrUuidEXT
nuuid
(long struct) Unsafe version ofuuid()
.static void
Unsafe version ofuuid
.static XrVector3f.Buffer
nvertexBuffer
(long struct) Unsafe version ofvertexBuffer()
.static void
nvertexBuffer
(long struct, XrVector3f.Buffer value) Unsafe version ofvertexBuffer
.static int
nvertexCount
(long struct) Unsafe version ofvertexCount()
.static void
nvertexCount
(long struct, int value) Sets the specified value to thevertexCount
field 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.int
sizeof()
Returnssizeof(struct)
.int
type()
type
(int value) Sets the specified value to thetype
field.Sets theTYPE_WORLD_MESH_BLOCK_ML
value to thetype
field.uuid()
Passes theuuid
field to the specifiedConsumer
.Copies the specifiedXrUuidEXT
to theuuid
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.vertexBuffer
(XrVector3f.Buffer value) Sets the address of the specifiedXrVector3f.Buffer
to thevertexBuffer
field.int
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aXrWorldMeshBlockML
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<XrWorldMeshBlockML>
-
type
public int type()- Returns:
- the value of the
type
field.
-
next
public long next()- Returns:
- the value of the
next
field.
-
uuid
- Returns:
- a
XrUuidEXT
view of theuuid
field.
-
blockResult
public int blockResult()- Returns:
- the value of the
blockResult
field.
-
lod
public int lod()- Returns:
- the value of the
lod
field.
-
flags
public long flags()- Returns:
- the value of the
flags
field.
-
indexCount
public int indexCount()- Returns:
- the value of the
indexCount
field.
-
indexBuffer
- Returns:
- a
ShortBuffer
view of the data pointed to by theindexBuffer
field.
-
vertexCount
public int vertexCount()- Returns:
- the value of the
vertexCount
field.
-
vertexBuffer
- Returns:
- a
XrVector3f.Buffer
view of the struct array pointed to by thevertexBuffer
field.
-
normalCount
public int normalCount()- Returns:
- the value of the
normalCount
field.
-
normalBuffer
- Returns:
- a
XrVector3f.Buffer
view of the struct array pointed to by thenormalBuffer
field.
-
confidenceCount
public int confidenceCount()- Returns:
- the value of the
confidenceCount
field.
-
confidenceBuffer
- Returns:
- a
FloatBuffer
view of the data pointed to by theconfidenceBuffer
field.
-
type
Sets the specified value to thetype
field. -
type$Default
Sets theTYPE_WORLD_MESH_BLOCK_ML
value to thetype
field. -
next
Sets the specified value to thenext
field. -
uuid
Copies the specifiedXrUuidEXT
to theuuid
field. -
uuid
Passes theuuid
field to the specifiedConsumer
. -
blockResult
Sets the specified value to theblockResult
field. -
lod
Sets the specified value to thelod
field. -
flags
Sets the specified value to theflags
field. -
indexBuffer
Sets the address of the specifiedShortBuffer
to theindexBuffer
field. -
vertexBuffer
Sets the address of the specifiedXrVector3f.Buffer
to thevertexBuffer
field. -
normalBuffer
Sets the address of the specifiedXrVector3f.Buffer
to thenormalBuffer
field. -
confidenceBuffer
Sets the address of the specifiedFloatBuffer
to theconfidenceBuffer
field. -
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 newXrWorldMeshBlockML
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrWorldMeshBlockML
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrWorldMeshBlockML
instance allocated withBufferUtils
. -
create
Returns a newXrWorldMeshBlockML
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXrWorldMeshBlockML.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrWorldMeshBlockML.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrWorldMeshBlockML.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrWorldMeshBlockML.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newXrWorldMeshBlockML
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrWorldMeshBlockML
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrWorldMeshBlockML.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrWorldMeshBlockML.Buffer
instance allocated on the specifiedMemoryStack
and 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 theindexCount
field of the specifiedstruct
. -
nindexBuffer
Unsafe version ofindexBuffer
. -
nvertexCount
public static void nvertexCount(long struct, int value) Sets the specified value to thevertexCount
field of the specifiedstruct
. -
nvertexBuffer
Unsafe version ofvertexBuffer
. -
nnormalCount
public static void nnormalCount(long struct, int value) Sets the specified value to thenormalCount
field of the specifiedstruct
. -
nnormalBuffer
Unsafe version ofnormalBuffer
. -
nconfidenceCount
public static void nconfidenceCount(long struct, int value) Sets the specified value to theconfidenceCount
field 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
-