Package org.lwjgl.openxr
Class XrSceneObjectMSFT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct XrSceneObjectMSFT {
XrSceneObjectTypeMSFT objectType;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrSceneObjectMSFT(ByteBuffer container) Creates aXrSceneObjectMSFTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrSceneObjectMSFTcalloc()Returns a newXrSceneObjectMSFTinstance allocated withmemCalloc.static XrSceneObjectMSFT.Buffercalloc(int capacity) Returns a newXrSceneObjectMSFT.Bufferinstance allocated withmemCalloc.static XrSceneObjectMSFT.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrSceneObjectMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneObjectMSFTcalloc(MemoryStack stack) Returns a newXrSceneObjectMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneObjectMSFTcreate()Returns a newXrSceneObjectMSFTinstance allocated withBufferUtils.static XrSceneObjectMSFT.Buffercreate(int capacity) Returns a newXrSceneObjectMSFT.Bufferinstance allocated withBufferUtils.static XrSceneObjectMSFTcreate(long address) Returns a newXrSceneObjectMSFTinstance for the specified memory address.static XrSceneObjectMSFT.Buffercreate(long address, int capacity) Create aXrSceneObjectMSFT.Bufferinstance at the specified memory.static @Nullable XrSceneObjectMSFTcreateSafe(long address) static @Nullable XrSceneObjectMSFT.BuffercreateSafe(long address, int capacity) static XrSceneObjectMSFTmalloc()Returns a newXrSceneObjectMSFTinstance allocated withmemAlloc.static XrSceneObjectMSFT.Buffermalloc(int capacity) Returns a newXrSceneObjectMSFT.Bufferinstance allocated withmemAlloc.static XrSceneObjectMSFT.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrSceneObjectMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSceneObjectMSFTmalloc(MemoryStack stack) Returns a newXrSceneObjectMSFTinstance allocated on the specifiedMemoryStack.static intnobjectType(long struct) Unsafe version ofobjectType().static voidnobjectType(long struct, int value) Unsafe version ofobjectType.intobjectType(int value) Sets the specified value to theobjectTypefield.set(XrSceneObjectMSFT src) 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. -
OBJECTTYPE
public static final int OBJECTTYPEThe struct member offsets.
-
-
Constructor Details
-
XrSceneObjectMSFT
Creates aXrSceneObjectMSFTinstance 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<XrSceneObjectMSFT>
-
objectType
public int objectType()- Returns:
- the value of the
objectTypefield.
-
objectType
Sets the specified value to theobjectTypefield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXrSceneObjectMSFTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSceneObjectMSFTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSceneObjectMSFTinstance allocated withBufferUtils. -
create
Returns a newXrSceneObjectMSFTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSceneObjectMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSceneObjectMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSceneObjectMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSceneObjectMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSceneObjectMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSceneObjectMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrSceneObjectMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrSceneObjectMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nobjectType
public static int nobjectType(long struct) Unsafe version ofobjectType(). -
nobjectType
public static void nobjectType(long struct, int value) Unsafe version ofobjectType.
-