Package org.lwjgl.openxr
Class XrControllerModelPropertiesMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrControllerModelPropertiesMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrControllerModelPropertiesMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescribes the properties of a controller model.Valid Usage (Implicit)
- The
XR_MSFT_controller_modelextension must be enabled prior to usingXrControllerModelPropertiesMSFT typemust beTYPE_CONTROLLER_MODEL_PROPERTIES_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chain- If
nodeCapacityInputis not 0,nodePropertiesmust be a pointer to an array ofnodeCapacityInputXrControllerModelNodePropertiesMSFTstructures
See Also
XrControllerModelNodePropertiesMSFT,GetControllerModelPropertiesMSFT,LoadControllerModelMSFTLayout
struct XrControllerModelPropertiesMSFT { XrStructureTypetype(); void *next(); uint32_tnodeCapacityInput(); uint32_tnodeCountOutput();XrControllerModelNodePropertiesMSFT*nodeProperties(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrControllerModelPropertiesMSFT.BufferAn array ofXrControllerModelPropertiesMSFTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNEXT
NODECAPACITYINPUT
NODECOUNTOUTPUT
NODEPROPERTIESThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrControllerModelPropertiesMSFT(java.nio.ByteBuffer container)Creates aXrControllerModelPropertiesMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrControllerModelPropertiesMSFTcalloc()Returns a newXrControllerModelPropertiesMSFTinstance allocated withmemCalloc.static XrControllerModelPropertiesMSFT.Buffercalloc(int capacity)Returns a newXrControllerModelPropertiesMSFT.Bufferinstance allocated withmemCalloc.static XrControllerModelPropertiesMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrControllerModelPropertiesMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrControllerModelPropertiesMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrControllerModelPropertiesMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrControllerModelPropertiesMSFTcreate()Returns a newXrControllerModelPropertiesMSFTinstance allocated withBufferUtils.static XrControllerModelPropertiesMSFT.Buffercreate(int capacity)Returns a newXrControllerModelPropertiesMSFT.Bufferinstance allocated withBufferUtils.static XrControllerModelPropertiesMSFTcreate(long address)Returns a newXrControllerModelPropertiesMSFTinstance for the specified memory address.static XrControllerModelPropertiesMSFT.Buffercreate(long address, int capacity)Create aXrControllerModelPropertiesMSFT.Bufferinstance at the specified memory.static XrControllerModelPropertiesMSFTcreateSafe(long address)static XrControllerModelPropertiesMSFT.BuffercreateSafe(long address, int capacity)static XrControllerModelPropertiesMSFTmalloc()Returns a newXrControllerModelPropertiesMSFTinstance allocated withmemAlloc.static XrControllerModelPropertiesMSFT.Buffermalloc(int capacity)Returns a newXrControllerModelPropertiesMSFT.Bufferinstance allocated withmemAlloc.static XrControllerModelPropertiesMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrControllerModelPropertiesMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrControllerModelPropertiesMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrControllerModelPropertiesMSFTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrControllerModelPropertiesMSFTnext(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 intnnodeCapacityInput(long struct)Unsafe version ofnodeCapacityInput().static voidnnodeCapacityInput(long struct, int value)Sets the specified value to thenodeCapacityInputfield of the specifiedstruct.static intnnodeCountOutput(long struct)Unsafe version ofnodeCountOutput().static voidnnodeCountOutput(long struct, int value)Unsafe version ofnodeCountOutput.static XrControllerModelNodePropertiesMSFT.BuffernnodeProperties(long struct)Unsafe version ofnodeProperties().static voidnnodeProperties(long struct, XrControllerModelNodePropertiesMSFT.Buffer value)Unsafe version ofnodeProperties.intnodeCapacityInput()the capacity of thenodePropertiesarray, or 0 to indicate a request to retrieve the required capacity.XrControllerModelPropertiesMSFTnodeCapacityInput(int value)Sets the specified value to thenodeCapacityInput()field.intnodeCountOutput()filled in by the runtime with the count of elements innodePropertiesarray, or returns the required capacity in the case thatnodeCapacityInputis 0.XrControllerModelPropertiesMSFTnodeCountOutput(int value)Sets the specified value to thenodeCountOutput()field.XrControllerModelNodePropertiesMSFT.BuffernodeProperties()a pointer to an application-allocated array that will be filled with theXrControllerModelNodePropertiesMSFTvalues.XrControllerModelPropertiesMSFTnodeProperties(XrControllerModelNodePropertiesMSFT.Buffer value)Sets the address of the specifiedXrControllerModelNodePropertiesMSFT.Bufferto thenodeProperties()field.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrControllerModelPropertiesMSFTset(int type, long next, int nodeCapacityInput, int nodeCountOutput, XrControllerModelNodePropertiesMSFT.Buffer nodeProperties)Initializes this struct with the specified values.XrControllerModelPropertiesMSFTset(XrControllerModelPropertiesMSFT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrControllerModelPropertiesMSFTtype(int value)Sets the specified value to thetype()field.XrControllerModelPropertiesMSFTtype$Default()Sets theTYPE_CONTROLLER_MODEL_PROPERTIES_MSFTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrControllerModelPropertiesMSFT
public XrControllerModelPropertiesMSFT(java.nio.ByteBuffer container)
Creates aXrControllerModelPropertiesMSFTinstance 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.
-
nodeCapacityInput
public int nodeCapacityInput()
the capacity of thenodePropertiesarray, or 0 to indicate a request to retrieve the required capacity.
-
nodeCountOutput
public int nodeCountOutput()
filled in by the runtime with the count of elements innodePropertiesarray, or returns the required capacity in the case thatnodeCapacityInputis 0.
-
nodeProperties
@Nullable public XrControllerModelNodePropertiesMSFT.Buffer nodeProperties()
a pointer to an application-allocated array that will be filled with theXrControllerModelNodePropertiesMSFTvalues. It can beNULLifnodeCapacityInputis 0.
-
type
public XrControllerModelPropertiesMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrControllerModelPropertiesMSFT type$Default()
Sets theTYPE_CONTROLLER_MODEL_PROPERTIES_MSFTvalue to thetype()field.
-
next
public XrControllerModelPropertiesMSFT next(long value)
Sets the specified value to thenext()field.
-
nodeCapacityInput
public XrControllerModelPropertiesMSFT nodeCapacityInput(int value)
Sets the specified value to thenodeCapacityInput()field.
-
nodeCountOutput
public XrControllerModelPropertiesMSFT nodeCountOutput(int value)
Sets the specified value to thenodeCountOutput()field.
-
nodeProperties
public XrControllerModelPropertiesMSFT nodeProperties(@Nullable XrControllerModelNodePropertiesMSFT.Buffer value)
Sets the address of the specifiedXrControllerModelNodePropertiesMSFT.Bufferto thenodeProperties()field.
-
set
public XrControllerModelPropertiesMSFT set(int type, long next, int nodeCapacityInput, int nodeCountOutput, @Nullable XrControllerModelNodePropertiesMSFT.Buffer nodeProperties)
Initializes this struct with the specified values.
-
set
public XrControllerModelPropertiesMSFT set(XrControllerModelPropertiesMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrControllerModelPropertiesMSFT malloc()
Returns a newXrControllerModelPropertiesMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrControllerModelPropertiesMSFT calloc()
Returns a newXrControllerModelPropertiesMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrControllerModelPropertiesMSFT create()
Returns a newXrControllerModelPropertiesMSFTinstance allocated withBufferUtils.
-
create
public static XrControllerModelPropertiesMSFT create(long address)
Returns a newXrControllerModelPropertiesMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrControllerModelPropertiesMSFT createSafe(long address)
-
malloc
public static XrControllerModelPropertiesMSFT.Buffer malloc(int capacity)
Returns a newXrControllerModelPropertiesMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrControllerModelPropertiesMSFT.Buffer calloc(int capacity)
Returns a newXrControllerModelPropertiesMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrControllerModelPropertiesMSFT.Buffer create(int capacity)
Returns a newXrControllerModelPropertiesMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrControllerModelPropertiesMSFT.Buffer create(long address, int capacity)
Create aXrControllerModelPropertiesMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrControllerModelPropertiesMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrControllerModelPropertiesMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrControllerModelPropertiesMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrControllerModelPropertiesMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrControllerModelPropertiesMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrControllerModelPropertiesMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrControllerModelPropertiesMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrControllerModelPropertiesMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrControllerModelPropertiesMSFT.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().
-
nnodeCapacityInput
public static int nnodeCapacityInput(long struct)
Unsafe version ofnodeCapacityInput().
-
nnodeCountOutput
public static int nnodeCountOutput(long struct)
Unsafe version ofnodeCountOutput().
-
nnodeProperties
@Nullable public static XrControllerModelNodePropertiesMSFT.Buffer nnodeProperties(long struct)
Unsafe version ofnodeProperties().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nnodeCapacityInput
public static void nnodeCapacityInput(long struct, int value)Sets the specified value to thenodeCapacityInputfield of the specifiedstruct.
-
nnodeCountOutput
public static void nnodeCountOutput(long struct, int value)Unsafe version ofnodeCountOutput.
-
nnodeProperties
public static void nnodeProperties(long struct, @Nullable XrControllerModelNodePropertiesMSFT.Buffer value)Unsafe version ofnodeProperties.
-
-