Package org.lwjgl.openxr
Class XrSpatialMarkerDataEXT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class XrSpatialMarkerDataEXT
extends Struct<XrSpatialMarkerDataEXT>
implements NativeResource
struct XrSpatialMarkerDataEXT {
XrSpatialCapabilityEXT capability;
uint32_t markerId;
XrSpatialBufferEXT data;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrSpatialMarkerDataEXT(ByteBuffer container) Creates aXrSpatialMarkerDataEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrSpatialMarkerDataEXTcalloc()Returns a newXrSpatialMarkerDataEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrSpatialMarkerDataEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrSpatialMarkerDataEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSpatialMarkerDataEXTcalloc(MemoryStack stack) Returns a newXrSpatialMarkerDataEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcapability(int value) Sets the specified value to thecapabilityfield.static XrSpatialMarkerDataEXTcreate()Returns a newXrSpatialMarkerDataEXTinstance allocated withBufferUtils.create(int capacity) Returns a newXrSpatialMarkerDataEXT.Bufferinstance allocated withBufferUtils.static XrSpatialMarkerDataEXTcreate(long address) Returns a newXrSpatialMarkerDataEXTinstance for the specified memory address.create(long address, int capacity) Create aXrSpatialMarkerDataEXT.Bufferinstance at the specified memory.static @Nullable XrSpatialMarkerDataEXTcreateSafe(long address) static @Nullable XrSpatialMarkerDataEXT.BuffercreateSafe(long address, int capacity) data()data(Consumer<XrSpatialBufferEXT> consumer) Passes thedatafield to the specifiedConsumer.data(XrSpatialBufferEXT value) Copies the specifiedXrSpatialBufferEXTto thedatafield.static XrSpatialMarkerDataEXTmalloc()Returns a newXrSpatialMarkerDataEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrSpatialMarkerDataEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrSpatialMarkerDataEXT.Bufferinstance allocated on the specifiedMemoryStack.static XrSpatialMarkerDataEXTmalloc(MemoryStack stack) Returns a newXrSpatialMarkerDataEXTinstance allocated on the specifiedMemoryStack.intmarkerId()markerId(int value) Sets the specified value to themarkerIdfield.static intncapability(long struct) Unsafe version ofcapability().static voidncapability(long struct, int value) Unsafe version ofcapability.static XrSpatialBufferEXTndata(long struct) Unsafe version ofdata().static voidndata(long struct, XrSpatialBufferEXT value) Unsafe version ofdata.static intnmarkerId(long struct) Unsafe version ofmarkerId().static voidnmarkerId(long struct, int value) Unsafe version ofmarkerId.set(int capability, int markerId, XrSpatialBufferEXT data) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
CAPABILITY
public static final int CAPABILITYThe struct member offsets. -
MARKERID
public static final int MARKERIDThe struct member offsets. -
DATA
public static final int DATAThe struct member offsets.
-
-
Constructor Details
-
XrSpatialMarkerDataEXT
Creates aXrSpatialMarkerDataEXTinstance 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<XrSpatialMarkerDataEXT>
-
capability
public int capability()- Returns:
- the value of the
capabilityfield.
-
markerId
public int markerId()- Returns:
- the value of the
markerIdfield.
-
data
- Returns:
- a
XrSpatialBufferEXTview of thedatafield.
-
capability
Sets the specified value to thecapabilityfield. -
markerId
Sets the specified value to themarkerIdfield. -
data
Copies the specifiedXrSpatialBufferEXTto thedatafield. -
data
Passes thedatafield to the specifiedConsumer. -
set
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 newXrSpatialMarkerDataEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSpatialMarkerDataEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSpatialMarkerDataEXTinstance allocated withBufferUtils. -
create
Returns a newXrSpatialMarkerDataEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSpatialMarkerDataEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSpatialMarkerDataEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSpatialMarkerDataEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSpatialMarkerDataEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSpatialMarkerDataEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSpatialMarkerDataEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrSpatialMarkerDataEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrSpatialMarkerDataEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ncapability
public static int ncapability(long struct) Unsafe version ofcapability(). -
nmarkerId
public static int nmarkerId(long struct) Unsafe version ofmarkerId(). -
ndata
Unsafe version ofdata(). -
ncapability
public static void ncapability(long struct, int value) Unsafe version ofcapability. -
nmarkerId
public static void nmarkerId(long struct, int value) Unsafe version ofmarkerId. -
ndata
Unsafe version ofdata.
-