Package org.lwjgl.openxr
Class XrScenePlaneMSFT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct XrScenePlaneMSFT {
XrScenePlaneAlignmentTypeMSFT alignment;
XrExtent2Df size;
uint64_t meshBufferId;
XrBool32 supportsIndicesUint16;
}-
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 member offsets.static 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
ConstructorsConstructorDescriptionXrScenePlaneMSFT(ByteBuffer container) Creates aXrScenePlaneMSFTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintalignment(int value) Sets the specified value to thealignmentfield.static XrScenePlaneMSFTcalloc()Returns a newXrScenePlaneMSFTinstance allocated withmemCalloc.static XrScenePlaneMSFT.Buffercalloc(int capacity) Returns a newXrScenePlaneMSFT.Bufferinstance allocated withmemCalloc.static XrScenePlaneMSFT.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrScenePlaneMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrScenePlaneMSFTcalloc(MemoryStack stack) Returns a newXrScenePlaneMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrScenePlaneMSFTcreate()Returns a newXrScenePlaneMSFTinstance allocated withBufferUtils.static XrScenePlaneMSFT.Buffercreate(int capacity) Returns a newXrScenePlaneMSFT.Bufferinstance allocated withBufferUtils.static XrScenePlaneMSFTcreate(long address) Returns a newXrScenePlaneMSFTinstance for the specified memory address.static XrScenePlaneMSFT.Buffercreate(long address, int capacity) Create aXrScenePlaneMSFT.Bufferinstance at the specified memory.static @Nullable XrScenePlaneMSFTcreateSafe(long address) static @Nullable XrScenePlaneMSFT.BuffercreateSafe(long address, int capacity) static XrScenePlaneMSFTmalloc()Returns a newXrScenePlaneMSFTinstance allocated withmemAlloc.static XrScenePlaneMSFT.Buffermalloc(int capacity) Returns a newXrScenePlaneMSFT.Bufferinstance allocated withmemAlloc.static XrScenePlaneMSFT.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrScenePlaneMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrScenePlaneMSFTmalloc(MemoryStack stack) Returns a newXrScenePlaneMSFTinstance allocated on the specifiedMemoryStack.longmeshBufferId(long value) Sets the specified value to themeshBufferIdfield.static intnalignment(long struct) Unsafe version ofalignment().static voidnalignment(long struct, int value) Unsafe version ofalignment.static longnmeshBufferId(long struct) Unsafe version ofmeshBufferId().static voidnmeshBufferId(long struct, long value) Unsafe version ofmeshBufferId.static XrExtent2Dfnsize(long struct) Unsafe version ofsize().static voidnsize(long struct, XrExtent2Df value) Unsafe version ofsize.static intnsupportsIndicesUint16(long struct) Unsafe version ofsupportsIndicesUint16().static voidnsupportsIndicesUint16(long struct, int value) Unsafe version ofsupportsIndicesUint16.set(int alignment, XrExtent2Df size, long meshBufferId, boolean supportsIndicesUint16) Initializes this struct with the specified values.set(XrScenePlaneMSFT src) Copies the specified struct data to this struct.size()size(Consumer<XrExtent2Df> consumer) Passes thesizefield to the specifiedConsumer.size(XrExtent2Df value) Copies the specifiedXrExtent2Dfto thesizefield.intsizeof()Returnssizeof(struct).booleansupportsIndicesUint16(boolean value) Sets the specified value to thesupportsIndicesUint16field.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. -
ALIGNMENT
public static final int ALIGNMENTThe struct member offsets. -
SIZE
public static final int SIZEThe struct member offsets. -
MESHBUFFERID
public static final int MESHBUFFERIDThe struct member offsets. -
SUPPORTSINDICESUINT16
public static final int SUPPORTSINDICESUINT16The struct member offsets.
-
-
Constructor Details
-
XrScenePlaneMSFT
Creates aXrScenePlaneMSFTinstance 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<XrScenePlaneMSFT>
-
alignment
public int alignment()- Returns:
- the value of the
alignmentfield.
-
size
- Returns:
- a
XrExtent2Dfview of thesizefield.
-
meshBufferId
public long meshBufferId()- Returns:
- the value of the
meshBufferIdfield.
-
supportsIndicesUint16
public boolean supportsIndicesUint16()- Returns:
- the value of the
supportsIndicesUint16field.
-
alignment
Sets the specified value to thealignmentfield. -
size
Copies the specifiedXrExtent2Dfto thesizefield. -
size
Passes thesizefield to the specifiedConsumer. -
meshBufferId
Sets the specified value to themeshBufferIdfield. -
supportsIndicesUint16
Sets the specified value to thesupportsIndicesUint16field. -
set
public XrScenePlaneMSFT set(int alignment, XrExtent2Df size, long meshBufferId, boolean supportsIndicesUint16) 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 newXrScenePlaneMSFTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrScenePlaneMSFTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrScenePlaneMSFTinstance allocated withBufferUtils. -
create
Returns a newXrScenePlaneMSFTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrScenePlaneMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrScenePlaneMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrScenePlaneMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrScenePlaneMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrScenePlaneMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrScenePlaneMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrScenePlaneMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrScenePlaneMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nalignment
public static int nalignment(long struct) Unsafe version ofalignment(). -
nsize
Unsafe version ofsize(). -
nmeshBufferId
public static long nmeshBufferId(long struct) Unsafe version ofmeshBufferId(). -
nsupportsIndicesUint16
public static int nsupportsIndicesUint16(long struct) Unsafe version ofsupportsIndicesUint16(). -
nalignment
public static void nalignment(long struct, int value) Unsafe version ofalignment. -
nsize
Unsafe version ofsize. -
nmeshBufferId
public static void nmeshBufferId(long struct, long value) Unsafe version ofmeshBufferId. -
nsupportsIndicesUint16
public static void nsupportsIndicesUint16(long struct, int value) Unsafe version ofsupportsIndicesUint16.
-