Package org.lwjgl.openxr
Class XrSceneCreateInfoMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSceneCreateInfoMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSceneCreateInfoMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceThe information to create a scene handle.Valid Usage (Implicit)
- The
XR_MSFT_scene_understandingextension must be enabled prior to usingXrSceneCreateInfoMSFT typemust beTYPE_SCENE_CREATE_INFO_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
Layout
struct XrSceneCreateInfoMSFT { XrStructureTypetype(); void const *next(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSceneCreateInfoMSFT.BufferAn array ofXrSceneCreateInfoMSFTstructs.
-
Constructor Summary
Constructors Constructor Description XrSceneCreateInfoMSFT(java.nio.ByteBuffer container)Creates aXrSceneCreateInfoMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSceneCreateInfoMSFTcalloc()Returns a newXrSceneCreateInfoMSFTinstance allocated withmemCalloc.static XrSceneCreateInfoMSFT.Buffercalloc(int capacity)Returns a newXrSceneCreateInfoMSFT.Bufferinstance allocated withmemCalloc.static XrSceneCreateInfoMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneCreateInfoMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneCreateInfoMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneCreateInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneCreateInfoMSFTcreate()Returns a newXrSceneCreateInfoMSFTinstance allocated withBufferUtils.static XrSceneCreateInfoMSFT.Buffercreate(int capacity)Returns a newXrSceneCreateInfoMSFT.Bufferinstance allocated withBufferUtils.static XrSceneCreateInfoMSFTcreate(long address)Returns a newXrSceneCreateInfoMSFTinstance for the specified memory address.static XrSceneCreateInfoMSFT.Buffercreate(long address, int capacity)Create aXrSceneCreateInfoMSFT.Bufferinstance at the specified memory.static XrSceneCreateInfoMSFTcreateSafe(long address)static XrSceneCreateInfoMSFT.BuffercreateSafe(long address, int capacity)static XrSceneCreateInfoMSFTmalloc()Returns a newXrSceneCreateInfoMSFTinstance allocated withmemAlloc.static XrSceneCreateInfoMSFT.Buffermalloc(int capacity)Returns a newXrSceneCreateInfoMSFT.Bufferinstance allocated withmemAlloc.static XrSceneCreateInfoMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneCreateInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSceneCreateInfoMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneCreateInfoMSFTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrSceneCreateInfoMSFTnext(long value)Sets the specified value to thenext()field.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrSceneCreateInfoMSFTset(int type, long next)Initializes this struct with the specified values.XrSceneCreateInfoMSFTset(XrSceneCreateInfoMSFT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrSceneCreateInfoMSFTtype(int value)Sets the specified value to thetype()field.XrSceneCreateInfoMSFTtype$Default()Sets theTYPE_SCENE_CREATE_INFO_MSFTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrSceneCreateInfoMSFT
public XrSceneCreateInfoMSFT(java.nio.ByteBuffer container)
Creates aXrSceneCreateInfoMSFTinstance 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
-
type
public int type()
theXrStructureTypeof this structure.
-
next
public long next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.
-
type
public XrSceneCreateInfoMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSceneCreateInfoMSFT type$Default()
Sets theTYPE_SCENE_CREATE_INFO_MSFTvalue to thetype()field.
-
next
public XrSceneCreateInfoMSFT next(long value)
Sets the specified value to thenext()field.
-
set
public XrSceneCreateInfoMSFT set(int type, long next)
Initializes this struct with the specified values.
-
set
public XrSceneCreateInfoMSFT set(XrSceneCreateInfoMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSceneCreateInfoMSFT malloc()
Returns a newXrSceneCreateInfoMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSceneCreateInfoMSFT calloc()
Returns a newXrSceneCreateInfoMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSceneCreateInfoMSFT create()
Returns a newXrSceneCreateInfoMSFTinstance allocated withBufferUtils.
-
create
public static XrSceneCreateInfoMSFT create(long address)
Returns a newXrSceneCreateInfoMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrSceneCreateInfoMSFT createSafe(long address)
-
malloc
public static XrSceneCreateInfoMSFT.Buffer malloc(int capacity)
Returns a newXrSceneCreateInfoMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSceneCreateInfoMSFT.Buffer calloc(int capacity)
Returns a newXrSceneCreateInfoMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneCreateInfoMSFT.Buffer create(int capacity)
Returns a newXrSceneCreateInfoMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneCreateInfoMSFT.Buffer create(long address, int capacity)
Create aXrSceneCreateInfoMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSceneCreateInfoMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSceneCreateInfoMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneCreateInfoMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSceneCreateInfoMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneCreateInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSceneCreateInfoMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneCreateInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSceneCreateInfoMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneCreateInfoMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
-