|
Monado OpenXR Runtime
|
A group of actions. More...
#include <oxr/oxr_objects.h>


Data Fields | |
| struct oxr_handle_base | handle |
| Common structure for things referred to by OpenXR handles. | |
| struct oxr_instance * | inst |
| Owner of this action set. | |
| struct oxr_instance_action_context * | inst_context |
| Reference to the instance action context (reference-counted). | |
| struct oxr_action_set_ref * | data |
| The data for this action set that must live as long as any session we are attached to. | |
| uint32_t | act_set_key |
| Unique key for the session hashmap. | |
| struct u_hashset_item * | name_item |
| The item in the name hashset. | |
| struct u_hashset_item * | loc_item |
| The item in the localized hashset. | |
Data Fields inherited from oxr_handle_base | |
| uint64_t | debug |
| Magic (per-handle-type) value for debugging. | |
| struct oxr_handle_base * | parent |
| Pointer to this object's parent handle holder, if any. | |
| struct oxr_handle_base * | children [256] |
| Array of children, if any. | |
| enum oxr_handle_state | state |
| Current handle state. | |
| oxr_handle_destroyer | destroy |
| Destroy the object this handle refers to. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| static XrActionSet | oxr_action_set_to_openxr (struct oxr_action_set *act_set) |
| To go back to a OpenXR object. | |
Related Symbols inherited from oxr_handle_base | |
| typedef XrResult(* | oxr_handle_destroyer) (struct oxr_logger *log, struct oxr_handle_base *hb) |
| Function pointer type for a handle destruction function. | |
| XrResult | oxr_handle_allocate_and_init (struct oxr_logger *log, size_t size, uint64_t debug, oxr_handle_destroyer destroy, struct oxr_handle_base *parent, void **out) |
| Allocate some memory for use as a handle, and initialize it as a handle. | |
| #define | OXR_ALLOCATE_HANDLE(LOG, OUT, DEBUG, DESTROY, PARENT) oxr_handle_allocate_and_init(LOG, sizeof(*OUT), DEBUG, DESTROY, PARENT, (void **)&OUT) |
| Allocates memory for a handle and evaluates to an XrResult. | |
| #define | OXR_ALLOCATE_HANDLE_OR_RETURN(LOG, OUT, DEBUG, DESTROY, PARENT) |
| Allocate memory for a handle, returning in case of failure. | |
| const char * | oxr_handle_state_to_string (enum oxr_handle_state state) |
| Returns a human-readable label for a handle state. | |
Additional Inherited Members | |
Public Member Functions inherited from oxr_handle_base | |
| XrResult | oxr_handle_destroy (struct oxr_logger *log, struct oxr_handle_base *hb) |
| Destroy the handle's object, as well as all child handles recursively. | |
Protected Member Functions inherited from oxr_handle_base | |
| XrResult | oxr_handle_init (struct oxr_logger *log, struct oxr_handle_base *hb, uint64_t debug, oxr_handle_destroyer destroy, struct oxr_handle_base *parent) |
| Initialize a handle holder, and if a parent is specified, update its child list to include this handle. | |
A group of actions.
Parent type/handle is oxr_instance
Note, however, that an action set must be "attached" to a session ( oxr_session ) to be used and not just configured. The corresponding data is in oxr_action_set_attachment.
| uint32_t oxr_action_set::act_set_key |
Unique key for the session hashmap.
Duplicated from oxr_action_set_ref::act_set_key for efficiency.
| struct oxr_action_set_ref* oxr_action_set::data |
The data for this action set that must live as long as any session we are attached to.
Referenced by oxr_action_sync_data(), oxr_session::oxr_session_attach_action_sets(), oxr_verify_subaction_path_sync(), oxr_xrCreateAction(), and oxr_xrSuggestInteractionProfileBindings().
| struct oxr_handle_base oxr_action_set::handle |
Common structure for things referred to by OpenXR handles.
Referenced by oxr_session::oxr_session_attach_action_sets(), and oxr_xrDestroyActionSet().
| struct oxr_instance* oxr_action_set::inst |
Owner of this action set.
Referenced by oxr_xrApplyHapticFeedback(), oxr_xrCreateAction(), oxr_xrGetActionStateBoolean(), oxr_xrGetActionStateFloat(), oxr_xrGetActionStatePose(), oxr_xrGetActionStateVector2f(), and oxr_xrStopHapticFeedback().
| struct oxr_instance_action_context* oxr_action_set::inst_context |
Reference to the instance action context (reference-counted).
| struct u_hashset_item* oxr_action_set::loc_item |
The item in the localized hashset.
| struct u_hashset_item* oxr_action_set::name_item |
The item in the name hashset.