Package org.lwjgl.openxr
Class XrScenePlaneMSFT
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct XrScenePlaneMSFT {
XrScenePlaneAlignmentTypeMSFT alignment;
{@link XrExtent2Df XrExtent2Df} size;
uint64_t meshBufferId;
XrBool32 supportsIndicesUint16;
}
-
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 member offsets.static 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 size in bytes.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
ConstructorsConstructorDescriptionXrScenePlaneMSFT
(ByteBuffer container) Creates aXrScenePlaneMSFT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
alignment
(int value) Sets the specified value to thealignment
field.static XrScenePlaneMSFT
calloc()
Returns a newXrScenePlaneMSFT
instance allocated withmemCalloc
.static XrScenePlaneMSFT.Buffer
calloc
(int capacity) Returns a newXrScenePlaneMSFT.Buffer
instance allocated withmemCalloc
.static XrScenePlaneMSFT.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newXrScenePlaneMSFT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrScenePlaneMSFT
calloc
(MemoryStack stack) Returns a newXrScenePlaneMSFT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrScenePlaneMSFT
create()
Returns a newXrScenePlaneMSFT
instance allocated withBufferUtils
.static XrScenePlaneMSFT.Buffer
create
(int capacity) Returns a newXrScenePlaneMSFT.Buffer
instance allocated withBufferUtils
.static XrScenePlaneMSFT
create
(long address) Returns a newXrScenePlaneMSFT
instance for the specified memory address.static XrScenePlaneMSFT.Buffer
create
(long address, int capacity) Create aXrScenePlaneMSFT.Buffer
instance at the specified memory.static @Nullable XrScenePlaneMSFT
createSafe
(long address) static @Nullable XrScenePlaneMSFT.Buffer
createSafe
(long address, int capacity) static XrScenePlaneMSFT
malloc()
Returns a newXrScenePlaneMSFT
instance allocated withmemAlloc
.static XrScenePlaneMSFT.Buffer
malloc
(int capacity) Returns a newXrScenePlaneMSFT.Buffer
instance allocated withmemAlloc
.static XrScenePlaneMSFT.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newXrScenePlaneMSFT.Buffer
instance allocated on the specifiedMemoryStack
.static XrScenePlaneMSFT
malloc
(MemoryStack stack) Returns a newXrScenePlaneMSFT
instance allocated on the specifiedMemoryStack
.long
meshBufferId
(long value) Sets the specified value to themeshBufferId
field.static int
nalignment
(long struct) Unsafe version ofalignment()
.static void
nalignment
(long struct, int value) Unsafe version ofalignment
.static long
nmeshBufferId
(long struct) Unsafe version ofmeshBufferId()
.static void
nmeshBufferId
(long struct, long value) Unsafe version ofmeshBufferId
.static XrExtent2Df
nsize
(long struct) Unsafe version ofsize()
.static void
nsize
(long struct, XrExtent2Df value) Unsafe version ofsize
.static int
nsupportsIndicesUint16
(long struct) Unsafe version ofsupportsIndicesUint16()
.static void
nsupportsIndicesUint16
(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 thesize
field to the specifiedConsumer
.size
(XrExtent2Df value) Copies the specifiedXrExtent2Df
to thesize
field.int
sizeof()
Returnssizeof(struct)
.boolean
supportsIndicesUint16
(boolean value) Sets the specified value to thesupportsIndicesUint16
field.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. -
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 aXrScenePlaneMSFT
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<XrScenePlaneMSFT>
-
alignment
public int alignment()- Returns:
- the value of the
alignment
field.
-
size
- Returns:
- a
XrExtent2Df
view of thesize
field.
-
meshBufferId
public long meshBufferId()- Returns:
- the value of the
meshBufferId
field.
-
supportsIndicesUint16
public boolean supportsIndicesUint16()- Returns:
- the value of the
supportsIndicesUint16
field.
-
alignment
Sets the specified value to thealignment
field. -
size
Copies the specifiedXrExtent2Df
to thesize
field. -
size
Passes thesize
field to the specifiedConsumer
. -
meshBufferId
Sets the specified value to themeshBufferId
field. -
supportsIndicesUint16
Sets the specified value to thesupportsIndicesUint16
field. -
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 newXrScenePlaneMSFT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrScenePlaneMSFT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrScenePlaneMSFT
instance allocated withBufferUtils
. -
create
Returns a newXrScenePlaneMSFT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXrScenePlaneMSFT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrScenePlaneMSFT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrScenePlaneMSFT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrScenePlaneMSFT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newXrScenePlaneMSFT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrScenePlaneMSFT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrScenePlaneMSFT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrScenePlaneMSFT.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-