Package org.lwjgl.openxr
Class XrActiveActionSet
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrActiveActionSet
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrActiveActionSet extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescribes an active action set.Description
This structure defines a single active action set and subaction path combination. Applications can provide a list of these structures to the
SyncActionsfunction.Valid Usage (Implicit)
actionSetmust be a validXrActionSethandle
See Also
XrActionsSyncInfo,SyncActionsLayout
struct XrActiveActionSet { XrActionSetactionSet(); XrPathsubactionPath(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrActiveActionSet.BufferAn array ofXrActiveActionSetstructs.
-
Field Summary
Fields Modifier and Type Field Description static intACTIONSETThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intSIZEOFThe struct size in bytes.static intSUBACTIONPATHThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrActiveActionSet(java.nio.ByteBuffer container)Creates aXrActiveActionSetinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longactionSet()the handle of the action set to activate.XrActiveActionSetactionSet(XrActionSet value)Sets the specified value to theactionSet()field.static XrActiveActionSetcalloc()Returns a newXrActiveActionSetinstance allocated withmemCalloc.static XrActiveActionSet.Buffercalloc(int capacity)Returns a newXrActiveActionSet.Bufferinstance allocated withmemCalloc.static XrActiveActionSet.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrActiveActionSet.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrActiveActionSetcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrActiveActionSetinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrActiveActionSetcreate()Returns a newXrActiveActionSetinstance allocated withBufferUtils.static XrActiveActionSet.Buffercreate(int capacity)Returns a newXrActiveActionSet.Bufferinstance allocated withBufferUtils.static XrActiveActionSetcreate(long address)Returns a newXrActiveActionSetinstance for the specified memory address.static XrActiveActionSet.Buffercreate(long address, int capacity)Create aXrActiveActionSet.Bufferinstance at the specified memory.static XrActiveActionSetcreateSafe(long address)static XrActiveActionSet.BuffercreateSafe(long address, int capacity)static XrActiveActionSetmalloc()Returns a newXrActiveActionSetinstance allocated withmemAlloc.static XrActiveActionSet.Buffermalloc(int capacity)Returns a newXrActiveActionSet.Bufferinstance allocated withmemAlloc.static XrActiveActionSet.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrActiveActionSet.Bufferinstance allocated on the specifiedMemoryStack.static XrActiveActionSetmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrActiveActionSetinstance allocated on the specifiedMemoryStack.static longnactionSet(long struct)Unsafe version ofactionSet().static voidnactionSet(long struct, XrActionSet value)Unsafe version ofactionSet.static longnsubactionPath(long struct)Unsafe version ofsubactionPath().static voidnsubactionPath(long struct, long value)Unsafe version ofsubactionPath.XrActiveActionSetset(XrActionSet actionSet, long subactionPath)Initializes this struct with the specified values.XrActiveActionSetset(XrActiveActionSet src)Copies the specified struct data to this struct.intsizeof()longsubactionPath()a subaction path that was declared when one or more actions in the action set was created orNULL_PATH.XrActiveActionSetsubactionPath(long value)Sets the specified value to thesubactionPath()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrActiveActionSet
public XrActiveActionSet(java.nio.ByteBuffer container)
Creates aXrActiveActionSetinstance 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
-
actionSet
public long actionSet()
the handle of the action set to activate.
-
subactionPath
public long subactionPath()
a subaction path that was declared when one or more actions in the action set was created orNULL_PATH. If the application wants to activate the action set on more than one subaction path, it can include additionalXrActiveActionSetstructs with the othersubactionPathvalues. UsingNULL_PATHas the value forsubactionPath, acts as a wildcard for all subaction paths on the actions in the action set. If the subaction path was not specified on any of the actions in the actionSet when that action was created, the runtime must returnERROR_PATH_UNSUPPORTED.
-
actionSet
public XrActiveActionSet actionSet(XrActionSet value)
Sets the specified value to theactionSet()field.
-
subactionPath
public XrActiveActionSet subactionPath(long value)
Sets the specified value to thesubactionPath()field.
-
set
public XrActiveActionSet set(XrActionSet actionSet, long subactionPath)
Initializes this struct with the specified values.
-
set
public XrActiveActionSet set(XrActiveActionSet src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrActiveActionSet malloc()
Returns a newXrActiveActionSetinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrActiveActionSet calloc()
Returns a newXrActiveActionSetinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrActiveActionSet create()
Returns a newXrActiveActionSetinstance allocated withBufferUtils.
-
create
public static XrActiveActionSet create(long address)
Returns a newXrActiveActionSetinstance for the specified memory address.
-
createSafe
@Nullable public static XrActiveActionSet createSafe(long address)
-
malloc
public static XrActiveActionSet.Buffer malloc(int capacity)
Returns a newXrActiveActionSet.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrActiveActionSet.Buffer calloc(int capacity)
Returns a newXrActiveActionSet.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrActiveActionSet.Buffer create(int capacity)
Returns a newXrActiveActionSet.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrActiveActionSet.Buffer create(long address, int capacity)
Create aXrActiveActionSet.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrActiveActionSet.Buffer createSafe(long address, int capacity)
-
malloc
public static XrActiveActionSet malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrActiveActionSetinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrActiveActionSet calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrActiveActionSetinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrActiveActionSet.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrActiveActionSet.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrActiveActionSet.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrActiveActionSet.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nactionSet
public static long nactionSet(long struct)
Unsafe version ofactionSet().
-
nsubactionPath
public static long nsubactionPath(long struct)
Unsafe version ofsubactionPath().
-
nactionSet
public static void nactionSet(long struct, XrActionSet value)Unsafe version ofactionSet.
-
nsubactionPath
public static void nsubactionPath(long struct, long value)Unsafe version ofsubactionPath.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-