Package org.lwjgl.openxr
Class XrSceneObjectMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSceneObjectMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSceneObjectMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceScene object.Valid Usage (Implicit)
- The
XR_MSFT_scene_understandingextension must be enabled prior to usingXrSceneObjectMSFT objectTypemust be a validXrSceneObjectTypeMSFTvalue
See Also
Layout
struct XrSceneObjectMSFT { XrSceneObjectTypeMSFTobjectType(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSceneObjectMSFT.BufferAn array ofXrSceneObjectMSFTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intOBJECTTYPEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description XrSceneObjectMSFT(java.nio.ByteBuffer container)Creates aXrSceneObjectMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSceneObjectMSFTcalloc()Returns a newXrSceneObjectMSFTinstance allocated withmemCalloc.static XrSceneObjectMSFT.Buffercalloc(int capacity)Returns a newXrSceneObjectMSFT.Bufferinstance allocated withmemCalloc.static XrSceneObjectMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneObjectMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneObjectMSFTcalloc(org.lwjgl.system.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 XrSceneObjectMSFTcreateSafe(long address)static 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, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneObjectMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSceneObjectMSFTmalloc(org.lwjgl.system.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()the type of the object specified byXrSceneObjectTypeMSFT.XrSceneObjectMSFTobjectType(int value)Sets the specified value to theobjectType()field.XrSceneObjectMSFTset(XrSceneObjectMSFT src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
XrSceneObjectMSFT
public XrSceneObjectMSFT(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
objectType
public int objectType()
the type of the object specified byXrSceneObjectTypeMSFT.
-
objectType
public XrSceneObjectMSFT objectType(int value)
Sets the specified value to theobjectType()field.
-
set
public XrSceneObjectMSFT set(XrSceneObjectMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSceneObjectMSFT malloc()
Returns a newXrSceneObjectMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSceneObjectMSFT calloc()
Returns a newXrSceneObjectMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSceneObjectMSFT create()
Returns a newXrSceneObjectMSFTinstance allocated withBufferUtils.
-
create
public static XrSceneObjectMSFT create(long address)
Returns a newXrSceneObjectMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrSceneObjectMSFT createSafe(long address)
-
malloc
public static XrSceneObjectMSFT.Buffer malloc(int capacity)
Returns a newXrSceneObjectMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSceneObjectMSFT.Buffer calloc(int capacity)
Returns a newXrSceneObjectMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneObjectMSFT.Buffer create(int capacity)
Returns a newXrSceneObjectMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneObjectMSFT.Buffer create(long address, int capacity)
Create aXrSceneObjectMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSceneObjectMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSceneObjectMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneObjectMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSceneObjectMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneObjectMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSceneObjectMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneObjectMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSceneObjectMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneObjectMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nobjectType
public static int nobjectType(long struct)
Unsafe version ofobjectType().
-
nobjectType
public static void nobjectType(long struct, int value)Unsafe version ofobjectType.
-
-