Package org.lwjgl.openxr
Class XrControllerModelNodeStateMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrControllerModelNodeStateMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrControllerModelNodeStateMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescribes the state of a node in a controller model.Description
The state is corresponding to the glTF node identified by the
nodeNameandnodeParentNameof the node property at the same array index in thenodePropertiesinXrControllerModelPropertiesMSFT.The
nodePoseis based on the user’s interaction on the controller at the latestSyncActions, represented as theXrPosefof the node in it’s parent node space.Valid Usage (Implicit)
- The
XR_MSFT_controller_modelextension must be enabled prior to usingXrControllerModelNodeStateMSFT typemust beTYPE_CONTROLLER_MODEL_NODE_STATE_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
XrControllerModelStateMSFT,XrPosef,GetControllerModelStateMSFTLayout
struct XrControllerModelNodeStateMSFT { XrStructureTypetype(); void *next();XrPosefnodePose(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrControllerModelNodeStateMSFT.BufferAn array ofXrControllerModelNodeStateMSFTstructs.
-
Constructor Summary
Constructors Constructor Description XrControllerModelNodeStateMSFT(java.nio.ByteBuffer container)Creates aXrControllerModelNodeStateMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrControllerModelNodeStateMSFTcalloc()Returns a newXrControllerModelNodeStateMSFTinstance allocated withmemCalloc.static XrControllerModelNodeStateMSFT.Buffercalloc(int capacity)Returns a newXrControllerModelNodeStateMSFT.Bufferinstance allocated withmemCalloc.static XrControllerModelNodeStateMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrControllerModelNodeStateMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrControllerModelNodeStateMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrControllerModelNodeStateMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrControllerModelNodeStateMSFTcreate()Returns a newXrControllerModelNodeStateMSFTinstance allocated withBufferUtils.static XrControllerModelNodeStateMSFT.Buffercreate(int capacity)Returns a newXrControllerModelNodeStateMSFT.Bufferinstance allocated withBufferUtils.static XrControllerModelNodeStateMSFTcreate(long address)Returns a newXrControllerModelNodeStateMSFTinstance for the specified memory address.static XrControllerModelNodeStateMSFT.Buffercreate(long address, int capacity)Create aXrControllerModelNodeStateMSFT.Bufferinstance at the specified memory.static XrControllerModelNodeStateMSFTcreateSafe(long address)static XrControllerModelNodeStateMSFT.BuffercreateSafe(long address, int capacity)static XrControllerModelNodeStateMSFTmalloc()Returns a newXrControllerModelNodeStateMSFTinstance allocated withmemAlloc.static XrControllerModelNodeStateMSFT.Buffermalloc(int capacity)Returns a newXrControllerModelNodeStateMSFT.Bufferinstance allocated withmemAlloc.static XrControllerModelNodeStateMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrControllerModelNodeStateMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrControllerModelNodeStateMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrControllerModelNodeStateMSFTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrControllerModelNodeStateMSFTnext(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 XrPosefnnodePose(long struct)Unsafe version ofnodePose().static voidnnodePose(long struct, XrPosef value)Unsafe version ofnodePose.XrPosefnodePose()anXrPosefof the node in its parent node space.XrControllerModelNodeStateMSFTnodePose(java.util.function.Consumer<XrPosef> consumer)Passes thenodePose()field to the specifiedConsumer.XrControllerModelNodeStateMSFTnodePose(XrPosef value)Copies the specifiedXrPosefto thenodePose()field.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrControllerModelNodeStateMSFTset(int type, long next, XrPosef nodePose)Initializes this struct with the specified values.XrControllerModelNodeStateMSFTset(XrControllerModelNodeStateMSFT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrControllerModelNodeStateMSFTtype(int value)Sets the specified value to thetype()field.XrControllerModelNodeStateMSFTtype$Default()Sets theTYPE_CONTROLLER_MODEL_NODE_STATE_MSFTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrControllerModelNodeStateMSFT
public XrControllerModelNodeStateMSFT(java.nio.ByteBuffer container)
Creates aXrControllerModelNodeStateMSFTinstance 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.
-
type
public XrControllerModelNodeStateMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrControllerModelNodeStateMSFT type$Default()
Sets theTYPE_CONTROLLER_MODEL_NODE_STATE_MSFTvalue to thetype()field.
-
next
public XrControllerModelNodeStateMSFT next(long value)
Sets the specified value to thenext()field.
-
nodePose
public XrControllerModelNodeStateMSFT nodePose(XrPosef value)
Copies the specifiedXrPosefto thenodePose()field.
-
nodePose
public XrControllerModelNodeStateMSFT nodePose(java.util.function.Consumer<XrPosef> consumer)
Passes thenodePose()field to the specifiedConsumer.
-
set
public XrControllerModelNodeStateMSFT set(int type, long next, XrPosef nodePose)
Initializes this struct with the specified values.
-
set
public XrControllerModelNodeStateMSFT set(XrControllerModelNodeStateMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrControllerModelNodeStateMSFT malloc()
Returns a newXrControllerModelNodeStateMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrControllerModelNodeStateMSFT calloc()
Returns a newXrControllerModelNodeStateMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrControllerModelNodeStateMSFT create()
Returns a newXrControllerModelNodeStateMSFTinstance allocated withBufferUtils.
-
create
public static XrControllerModelNodeStateMSFT create(long address)
Returns a newXrControllerModelNodeStateMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrControllerModelNodeStateMSFT createSafe(long address)
-
malloc
public static XrControllerModelNodeStateMSFT.Buffer malloc(int capacity)
Returns a newXrControllerModelNodeStateMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrControllerModelNodeStateMSFT.Buffer calloc(int capacity)
Returns a newXrControllerModelNodeStateMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrControllerModelNodeStateMSFT.Buffer create(int capacity)
Returns a newXrControllerModelNodeStateMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrControllerModelNodeStateMSFT.Buffer create(long address, int capacity)
Create aXrControllerModelNodeStateMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrControllerModelNodeStateMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrControllerModelNodeStateMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrControllerModelNodeStateMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrControllerModelNodeStateMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrControllerModelNodeStateMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrControllerModelNodeStateMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrControllerModelNodeStateMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrControllerModelNodeStateMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrControllerModelNodeStateMSFT.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().
-
nnodePose
public static XrPosef nnodePose(long struct)
Unsafe version ofnodePose().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
-