Package org.lwjgl.openxr
Class XrControllerModelNodePropertiesMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrControllerModelNodePropertiesMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrControllerModelNodePropertiesMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescribes the controller model node properties.Description
The node can be located in the glTF node hierarchy by finding the node(s) with the matching node name and parent node name. If the
parentNodeNameis empty, the matching will be solely based on thenodeName.If there are multiple nodes in the glTF file matches the condition above, the first matching node using depth-first traversal in the glTF scene should be animated and the rest should be ignored.
The runtime must not return any
nodeNameorparentNamethat doesn’t match any gltTF nodes in the corresponding controller model.Valid Usage (Implicit)
- The
XR_MSFT_controller_modelextension must be enabled prior to usingXrControllerModelNodePropertiesMSFT typemust beTYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chainparentNodeNamemust be a null-terminated UTF-8 string whose length is less than or equal toMAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFTnodeNamemust be a null-terminated UTF-8 string whose length is less than or equal toMAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT
See Also
XrControllerModelPropertiesMSFT,GetControllerModelPropertiesMSFT,LoadControllerModelMSFTLayout
struct XrControllerModelNodePropertiesMSFT { XrStructureTypetype(); void *next(); charparentNodeName()[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]; charnodeName()[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrControllerModelNodePropertiesMSFT.BufferAn array ofXrControllerModelNodePropertiesMSFTstructs.
-
Constructor Summary
Constructors Constructor Description XrControllerModelNodePropertiesMSFT(java.nio.ByteBuffer container)Creates aXrControllerModelNodePropertiesMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrControllerModelNodePropertiesMSFTcalloc()Returns a newXrControllerModelNodePropertiesMSFTinstance allocated withmemCalloc.static XrControllerModelNodePropertiesMSFT.Buffercalloc(int capacity)Returns a newXrControllerModelNodePropertiesMSFT.Bufferinstance allocated withmemCalloc.static XrControllerModelNodePropertiesMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrControllerModelNodePropertiesMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrControllerModelNodePropertiesMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrControllerModelNodePropertiesMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrControllerModelNodePropertiesMSFTcreate()Returns a newXrControllerModelNodePropertiesMSFTinstance allocated withBufferUtils.static XrControllerModelNodePropertiesMSFT.Buffercreate(int capacity)Returns a newXrControllerModelNodePropertiesMSFT.Bufferinstance allocated withBufferUtils.static XrControllerModelNodePropertiesMSFTcreate(long address)Returns a newXrControllerModelNodePropertiesMSFTinstance for the specified memory address.static XrControllerModelNodePropertiesMSFT.Buffercreate(long address, int capacity)Create aXrControllerModelNodePropertiesMSFT.Bufferinstance at the specified memory.static XrControllerModelNodePropertiesMSFTcreateSafe(long address)static XrControllerModelNodePropertiesMSFT.BuffercreateSafe(long address, int capacity)static XrControllerModelNodePropertiesMSFTmalloc()Returns a newXrControllerModelNodePropertiesMSFTinstance allocated withmemAlloc.static XrControllerModelNodePropertiesMSFT.Buffermalloc(int capacity)Returns a newXrControllerModelNodePropertiesMSFT.Bufferinstance allocated withmemAlloc.static XrControllerModelNodePropertiesMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrControllerModelNodePropertiesMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrControllerModelNodePropertiesMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrControllerModelNodePropertiesMSFTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrControllerModelNodePropertiesMSFTnext(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 java.nio.ByteBuffernnodeName(long struct)Unsafe version ofnodeName().static voidnnodeName(long struct, java.nio.ByteBuffer value)Unsafe version ofnodeName.static java.lang.StringnnodeNameString(long struct)Unsafe version ofnodeNameString().java.nio.ByteBuffernodeName()the name of this node in the provided glTF file.XrControllerModelNodePropertiesMSFTnodeName(java.nio.ByteBuffer value)Copies the specified encoded string to thenodeName()field.java.lang.StringnodeNameString()the name of this node in the provided glTF file.static java.nio.ByteBuffernparentNodeName(long struct)Unsafe version ofparentNodeName().static voidnparentNodeName(long struct, java.nio.ByteBuffer value)Unsafe version ofparentNodeName.static java.lang.StringnparentNodeNameString(long struct)Unsafe version ofparentNodeNameString().static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.java.nio.ByteBufferparentNodeName()the name of the parent node in the provided glTF file.XrControllerModelNodePropertiesMSFTparentNodeName(java.nio.ByteBuffer value)Copies the specified encoded string to theparentNodeName()field.java.lang.StringparentNodeNameString()the name of the parent node in the provided glTF file.XrControllerModelNodePropertiesMSFTset(int type, long next, java.nio.ByteBuffer parentNodeName, java.nio.ByteBuffer nodeName)Initializes this struct with the specified values.XrControllerModelNodePropertiesMSFTset(XrControllerModelNodePropertiesMSFT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrControllerModelNodePropertiesMSFTtype(int value)Sets the specified value to thetype()field.XrControllerModelNodePropertiesMSFTtype$Default()Sets theTYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrControllerModelNodePropertiesMSFT
public XrControllerModelNodePropertiesMSFT(java.nio.ByteBuffer container)
Creates aXrControllerModelNodePropertiesMSFTinstance 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.
-
parentNodeName, parentNodeNameString
public java.nio.ByteBuffer parentNodeName() public java.lang.String parentNodeNameString()
the name of the parent node in the provided glTF file. The parent name may be empty if it should not be used to locate this node.
-
nodeName, nodeNameString
public java.nio.ByteBuffer nodeName() public java.lang.String nodeNameString()
the name of this node in the provided glTF file.
-
type
public XrControllerModelNodePropertiesMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrControllerModelNodePropertiesMSFT type$Default()
Sets theTYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFTvalue to thetype()field.
-
next
public XrControllerModelNodePropertiesMSFT next(long value)
Sets the specified value to thenext()field.
-
parentNodeName
public XrControllerModelNodePropertiesMSFT parentNodeName(java.nio.ByteBuffer value)
Copies the specified encoded string to theparentNodeName()field.
-
nodeName
public XrControllerModelNodePropertiesMSFT nodeName(java.nio.ByteBuffer value)
Copies the specified encoded string to thenodeName()field.
-
set
public XrControllerModelNodePropertiesMSFT set(int type, long next, java.nio.ByteBuffer parentNodeName, java.nio.ByteBuffer nodeName)
Initializes this struct with the specified values.
-
set
public XrControllerModelNodePropertiesMSFT set(XrControllerModelNodePropertiesMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrControllerModelNodePropertiesMSFT malloc()
Returns a newXrControllerModelNodePropertiesMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrControllerModelNodePropertiesMSFT calloc()
Returns a newXrControllerModelNodePropertiesMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrControllerModelNodePropertiesMSFT create()
Returns a newXrControllerModelNodePropertiesMSFTinstance allocated withBufferUtils.
-
create
public static XrControllerModelNodePropertiesMSFT create(long address)
Returns a newXrControllerModelNodePropertiesMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrControllerModelNodePropertiesMSFT createSafe(long address)
-
malloc
public static XrControllerModelNodePropertiesMSFT.Buffer malloc(int capacity)
Returns a newXrControllerModelNodePropertiesMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrControllerModelNodePropertiesMSFT.Buffer calloc(int capacity)
Returns a newXrControllerModelNodePropertiesMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrControllerModelNodePropertiesMSFT.Buffer create(int capacity)
Returns a newXrControllerModelNodePropertiesMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrControllerModelNodePropertiesMSFT.Buffer create(long address, int capacity)
Create aXrControllerModelNodePropertiesMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrControllerModelNodePropertiesMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrControllerModelNodePropertiesMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrControllerModelNodePropertiesMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrControllerModelNodePropertiesMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrControllerModelNodePropertiesMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrControllerModelNodePropertiesMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrControllerModelNodePropertiesMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrControllerModelNodePropertiesMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrControllerModelNodePropertiesMSFT.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().
-
nparentNodeName
public static java.nio.ByteBuffer nparentNodeName(long struct)
Unsafe version ofparentNodeName().
-
nparentNodeNameString
public static java.lang.String nparentNodeNameString(long struct)
Unsafe version ofparentNodeNameString().
-
nnodeName
public static java.nio.ByteBuffer nnodeName(long struct)
Unsafe version ofnodeName().
-
nnodeNameString
public static java.lang.String nnodeNameString(long struct)
Unsafe version ofnodeNameString().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nparentNodeName
public static void nparentNodeName(long struct, java.nio.ByteBuffer value)Unsafe version ofparentNodeName.
-
nnodeName
public static void nnodeName(long struct, java.nio.ByteBuffer value)Unsafe version ofnodeName.
-
-