Class 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.NativeResource
    Describes 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 SyncActions function.

    Valid Usage (Implicit)
    • actionSet must be a valid XrActionSet handle
    See Also

    XrActionsSyncInfo, SyncActions

    Layout

    
     struct XrActiveActionSet {
         XrActionSet actionSet();
         XrPath subactionPath();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • ACTIONSET, SUBACTIONPATH

        The struct member offsets.
    • Constructor Detail

      • XrActiveActionSet

        public XrActiveActionSet​(java.nio.ByteBuffer container)
        Creates a XrActiveActionSet instance at the current position of the specified ByteBuffer container. 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:
        sizeof in class org.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 or NULL_PATH. If the application wants to activate the action set on more than one subaction path, it can include additional XrActiveActionSet structs with the other subactionPath values. Using NULL_PATH as the value for subactionPath, 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 return ERROR_PATH_UNSUPPORTED.
      • malloc

        public static XrActiveActionSet malloc()
        Returns a new XrActiveActionSet instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static XrActiveActionSet calloc()
        Returns a new XrActiveActionSet instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static XrActiveActionSet create()
        Returns a new XrActiveActionSet instance allocated with BufferUtils.
      • create

        public static XrActiveActionSet create​(long address)
        Returns a new XrActiveActionSet instance for the specified memory address.
      • createSafe

        @Nullable
        public static XrActiveActionSet createSafe​(long address)
        Like create, but returns null if address is NULL.
      • createSafe

        @Nullable
        public static XrActiveActionSet.Buffer createSafe​(long address,
                                                          int capacity)
        Like create, but returns null if address is NULL.
      • malloc

        public static XrActiveActionSet malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new XrActiveActionSet instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static XrActiveActionSet calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new XrActiveActionSet instance allocated on the specified MemoryStack and 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 new XrActiveActionSet.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static XrActiveActionSet.Buffer calloc​(int capacity,
                                                      org.lwjgl.system.MemoryStack stack)
        Returns a new XrActiveActionSet.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nactionSet

        public static long nactionSet​(long struct)
        Unsafe version of actionSet().
      • nsubactionPath

        public static long nsubactionPath​(long struct)
        Unsafe version of subactionPath().
      • nactionSet

        public static void nactionSet​(long struct,
                                      XrActionSet value)
        Unsafe version of actionSet.
      • nsubactionPath

        public static void nsubactionPath​(long struct,
                                          long value)
        Unsafe version of subactionPath.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate