Package org.lwjgl.openxr
Class XrBindingModificationBaseHeaderKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrBindingModificationBaseHeaderKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrBindingModificationBaseHeaderKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceBase struct for all binding modifications.Description
The
XrBindingModificationBaseHeaderKHRis a base structure is overridden by stext:XrBindingModification* child structures.Valid Usage (Implicit)
- The
XR_KHR_binding_modificationextension must be enabled prior to usingXrBindingModificationBaseHeaderKHR nextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
XrBindingModificationsKHR,SuggestInteractionProfileBindingsLayout
struct XrBindingModificationBaseHeaderKHR { XrStructureTypetype(); void const *next(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrBindingModificationBaseHeaderKHR.BufferAn array ofXrBindingModificationBaseHeaderKHRstructs.
-
Constructor Summary
Constructors Constructor Description XrBindingModificationBaseHeaderKHR(java.nio.ByteBuffer container)Creates aXrBindingModificationBaseHeaderKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrBindingModificationBaseHeaderKHRcalloc()Returns a newXrBindingModificationBaseHeaderKHRinstance allocated withmemCalloc.static XrBindingModificationBaseHeaderKHR.Buffercalloc(int capacity)Returns a newXrBindingModificationBaseHeaderKHR.Bufferinstance allocated withmemCalloc.static XrBindingModificationBaseHeaderKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrBindingModificationBaseHeaderKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrBindingModificationBaseHeaderKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrBindingModificationBaseHeaderKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrBindingModificationBaseHeaderKHRcreate()Returns a newXrBindingModificationBaseHeaderKHRinstance allocated withBufferUtils.static XrBindingModificationBaseHeaderKHR.Buffercreate(int capacity)Returns a newXrBindingModificationBaseHeaderKHR.Bufferinstance allocated withBufferUtils.static XrBindingModificationBaseHeaderKHRcreate(long address)Returns a newXrBindingModificationBaseHeaderKHRinstance for the specified memory address.static XrBindingModificationBaseHeaderKHR.Buffercreate(long address, int capacity)Create aXrBindingModificationBaseHeaderKHR.Bufferinstance at the specified memory.static XrBindingModificationBaseHeaderKHRcreate(XrInteractionProfileAnalogThresholdVALVE value)Upcasts the specifiedXrInteractionProfileAnalogThresholdVALVEinstance toXrBindingModificationBaseHeaderKHR.static XrBindingModificationBaseHeaderKHR.Buffercreate(XrInteractionProfileAnalogThresholdVALVE.Buffer value)Upcasts the specifiedXrInteractionProfileAnalogThresholdVALVE.Bufferinstance toXrBindingModificationBaseHeaderKHR.Buffer.static XrBindingModificationBaseHeaderKHRcreateSafe(long address)static XrBindingModificationBaseHeaderKHR.BuffercreateSafe(long address, int capacity)static XrBindingModificationBaseHeaderKHRmalloc()Returns a newXrBindingModificationBaseHeaderKHRinstance allocated withmemAlloc.static XrBindingModificationBaseHeaderKHR.Buffermalloc(int capacity)Returns a newXrBindingModificationBaseHeaderKHR.Bufferinstance allocated withmemAlloc.static XrBindingModificationBaseHeaderKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrBindingModificationBaseHeaderKHR.Bufferinstance allocated on the specifiedMemoryStack.static XrBindingModificationBaseHeaderKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrBindingModificationBaseHeaderKHRinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrBindingModificationBaseHeaderKHRnext(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.XrBindingModificationBaseHeaderKHRset(int type, long next)Initializes this struct with the specified values.XrBindingModificationBaseHeaderKHRset(XrBindingModificationBaseHeaderKHR src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrBindingModificationBaseHeaderKHRtype(int value)Sets the specified value to thetype()field.
-
-
-
Constructor Detail
-
XrBindingModificationBaseHeaderKHR
public XrBindingModificationBaseHeaderKHR(java.nio.ByteBuffer container)
Creates aXrBindingModificationBaseHeaderKHRinstance 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 long next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or in this extension.
-
type
public XrBindingModificationBaseHeaderKHR type(int value)
Sets the specified value to thetype()field.
-
next
public XrBindingModificationBaseHeaderKHR next(long value)
Sets the specified value to thenext()field.
-
set
public XrBindingModificationBaseHeaderKHR set(int type, long next)
Initializes this struct with the specified values.
-
set
public XrBindingModificationBaseHeaderKHR set(XrBindingModificationBaseHeaderKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrBindingModificationBaseHeaderKHR malloc()
Returns a newXrBindingModificationBaseHeaderKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrBindingModificationBaseHeaderKHR calloc()
Returns a newXrBindingModificationBaseHeaderKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrBindingModificationBaseHeaderKHR create()
Returns a newXrBindingModificationBaseHeaderKHRinstance allocated withBufferUtils.
-
create
public static XrBindingModificationBaseHeaderKHR create(long address)
Returns a newXrBindingModificationBaseHeaderKHRinstance for the specified memory address.
-
createSafe
@Nullable public static XrBindingModificationBaseHeaderKHR createSafe(long address)
-
create
public static XrBindingModificationBaseHeaderKHR create(XrInteractionProfileAnalogThresholdVALVE value)
Upcasts the specifiedXrInteractionProfileAnalogThresholdVALVEinstance toXrBindingModificationBaseHeaderKHR.
-
malloc
public static XrBindingModificationBaseHeaderKHR.Buffer malloc(int capacity)
Returns a newXrBindingModificationBaseHeaderKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrBindingModificationBaseHeaderKHR.Buffer calloc(int capacity)
Returns a newXrBindingModificationBaseHeaderKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrBindingModificationBaseHeaderKHR.Buffer create(int capacity)
Returns a newXrBindingModificationBaseHeaderKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrBindingModificationBaseHeaderKHR.Buffer create(long address, int capacity)
Create aXrBindingModificationBaseHeaderKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrBindingModificationBaseHeaderKHR.Buffer createSafe(long address, int capacity)
-
create
public static XrBindingModificationBaseHeaderKHR.Buffer create(XrInteractionProfileAnalogThresholdVALVE.Buffer value)
Upcasts the specifiedXrInteractionProfileAnalogThresholdVALVE.Bufferinstance toXrBindingModificationBaseHeaderKHR.Buffer.
-
malloc
public static XrBindingModificationBaseHeaderKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrBindingModificationBaseHeaderKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrBindingModificationBaseHeaderKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrBindingModificationBaseHeaderKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrBindingModificationBaseHeaderKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrBindingModificationBaseHeaderKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrBindingModificationBaseHeaderKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrBindingModificationBaseHeaderKHR.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.
-
-