Package org.lwjgl.openxr
Class XrBaseOutStructure
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrBaseOutStructure
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrBaseOutStructure extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceConvenience type for iterating (mutable).Description
XrBaseOutStructurecan be used to facilitate iterating through a structure pointer chain that returns data back to the application.See Also
XrBaseInStructure,XrBaseOutStructureLayout
struct XrBaseOutStructure { XrStructureTypetype();XrBaseOutStructure*next(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrBaseOutStructure.BufferAn array ofXrBaseOutStructurestructs.
-
Constructor Summary
Constructors Constructor Description XrBaseOutStructure(java.nio.ByteBuffer container)Creates aXrBaseOutStructureinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrBaseOutStructurecalloc()Returns a newXrBaseOutStructureinstance allocated withmemCalloc.static XrBaseOutStructure.Buffercalloc(int capacity)Returns a newXrBaseOutStructure.Bufferinstance allocated withmemCalloc.static XrBaseOutStructure.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrBaseOutStructure.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrBaseOutStructurecalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrBaseOutStructureinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrBaseOutStructurecreate()Returns a newXrBaseOutStructureinstance allocated withBufferUtils.static XrBaseOutStructure.Buffercreate(int capacity)Returns a newXrBaseOutStructure.Bufferinstance allocated withBufferUtils.static XrBaseOutStructurecreate(long address)Returns a newXrBaseOutStructureinstance for the specified memory address.static XrBaseOutStructure.Buffercreate(long address, int capacity)Create aXrBaseOutStructure.Bufferinstance at the specified memory.static XrBaseOutStructurecreateSafe(long address)static XrBaseOutStructure.BuffercreateSafe(long address, int capacity)static XrBaseOutStructuremalloc()Returns a newXrBaseOutStructureinstance allocated withmemAlloc.static XrBaseOutStructure.Buffermalloc(int capacity)Returns a newXrBaseOutStructure.Bufferinstance allocated withmemAlloc.static XrBaseOutStructure.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrBaseOutStructure.Bufferinstance allocated on the specifiedMemoryStack.static XrBaseOutStructuremalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrBaseOutStructureinstance allocated on the specifiedMemoryStack.XrBaseOutStructurenext()NULLor a pointer to the next structure in a structure chain.XrBaseOutStructurenext(XrBaseOutStructure value)Sets the address of the specifiedXrBaseOutStructureto thenext()field.static XrBaseOutStructurennext(long struct)Unsafe version ofnext().static voidnnext(long struct, XrBaseOutStructure value)Unsafe version ofnext.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrBaseOutStructureset(int type, XrBaseOutStructure next)Initializes this struct with the specified values.XrBaseOutStructureset(XrBaseOutStructure src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrBaseOutStructuretype(int value)Sets the specified value to thetype()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrBaseOutStructure
public XrBaseOutStructure(java.nio.ByteBuffer container)
Creates aXrBaseOutStructureinstance 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. This base structure itself has no associatedXrStructureTypevalue.
-
next
public XrBaseOutStructure next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR.
-
type
public XrBaseOutStructure type(int value)
Sets the specified value to thetype()field.
-
next
public XrBaseOutStructure next(XrBaseOutStructure value)
Sets the address of the specifiedXrBaseOutStructureto thenext()field.
-
set
public XrBaseOutStructure set(int type, XrBaseOutStructure next)
Initializes this struct with the specified values.
-
set
public XrBaseOutStructure set(XrBaseOutStructure src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrBaseOutStructure malloc()
Returns a newXrBaseOutStructureinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrBaseOutStructure calloc()
Returns a newXrBaseOutStructureinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrBaseOutStructure create()
Returns a newXrBaseOutStructureinstance allocated withBufferUtils.
-
create
public static XrBaseOutStructure create(long address)
Returns a newXrBaseOutStructureinstance for the specified memory address.
-
createSafe
@Nullable public static XrBaseOutStructure createSafe(long address)
-
malloc
public static XrBaseOutStructure.Buffer malloc(int capacity)
Returns a newXrBaseOutStructure.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrBaseOutStructure.Buffer calloc(int capacity)
Returns a newXrBaseOutStructure.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrBaseOutStructure.Buffer create(int capacity)
Returns a newXrBaseOutStructure.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrBaseOutStructure.Buffer create(long address, int capacity)
Create aXrBaseOutStructure.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrBaseOutStructure.Buffer createSafe(long address, int capacity)
-
malloc
public static XrBaseOutStructure malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrBaseOutStructureinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrBaseOutStructure calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrBaseOutStructureinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrBaseOutStructure.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrBaseOutStructure.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrBaseOutStructure.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrBaseOutStructure.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 XrBaseOutStructure 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, XrBaseOutStructure value)Unsafe version ofnext.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-