|
Monado OpenXR Runtime
|
This interface acts as a way to store per-application policy for xrt_system. More...
#include <xrt/xrt_app_policy.h>


Static Public Member Functions | |
| static XRT_NONNULL_ALL xrt_result_t | xrt_app_system_poll_events (struct xrt_app_system *xasys, struct xrt_app_system_event *out_xasyse) |
| Poll a single event from this app system, if no event is available then the type of the event will be XRT_APP_SYSTEM_EVENT_NONE. | |
| static XRT_NONNULL_ALL xrt_result_t | xrt_app_system_get_recommended_view_configuration (struct xrt_app_system *xasys, enum xrt_view_type view_type, struct xrt_recommended_view_config *out_recommended_view_config) |
| Gets the recommended view configuration for the given view type, if available and supported. | |
| static XRT_NONNULL_ALL xrt_result_t | xrt_app_system_set_recommended_view_configuration (struct xrt_app_system *xasys, enum xrt_view_type view_type, const struct xrt_recommended_view_config *recommended_view_config) |
| Sets the recommended view configuration for this application, for the given view type. | |
| static XRT_NONNULL_ALL void | xrt_app_system_destroy (struct xrt_app_system **xasys_ptr) |
| Destroy the application system and its owned objects. | |
Data Fields | |
Interface Methods | |
All implementations of the xrt_app_system interface must populate all these function pointers with their implementation methods. To use this interface, see the helper functions. | |
| xrt_result_t(* | poll_events )(struct xrt_app_system *xasys, struct xrt_app_system_event *out_xasyse) |
| Poll a single event from this app system, if no event is available then the type of the event will be XRT_APP_SYSTEM_EVENT_NONE. | |
| xrt_result_t(* | get_recommended_view_configuration )(struct xrt_app_system *xasys, enum xrt_view_type view_type, struct xrt_recommended_view_config *out_recommended_view_config) |
| Gets the recommended view configuration for the given view type, if available and supported. | |
| xrt_result_t(* | set_recommended_view_configuration )(struct xrt_app_system *xasys, enum xrt_view_type view_type, const struct xrt_recommended_view_config *recommended_view_config) |
| Sets the recommended view configuration for this application, for the given view type. | |
| void(* | destroy )(struct xrt_app_system *xasys) |
| Destroy the application system and its owned objects. | |
This interface acts as a way to store per-application policy for xrt_system.
Only a single one of these should be created per xrt_system per application (aka per XrInstance, in OpenXR terminology).
|
inlinestatic |
Destroy the application system and its owned objects.
| xasys | Pointer to self |
Helper for calling through the function pointer.
References destroy.
|
inlinestatic |
Gets the recommended view configuration for the given view type, if available and supported.
| xasys | Pointer to self | |
| view_type | The view type to get the recommended view configuration for. | |
| [out] | out_recommended_view_config | The recommendation for the client. |
Helper for calling through the function pointer.
References get_recommended_view_configuration.
|
inlinestatic |
Poll a single event from this app system, if no event is available then the type of the event will be XRT_APP_SYSTEM_EVENT_NONE.
| xasys | Pointer to self | |
| [out] | out_xasyse | Event to be returned. |
Helper for calling through the function pointer.
References poll_events.
|
inlinestatic |
Sets the recommended view configuration for this application, for the given view type.
| xasys | Pointer to self | |
| view_type | The view type to set the recommended view configuration for. | |
| [in] | recommended_view_config | The recommended view configuration to set for the given view type. |
Helper for calling through the function pointer.
References set_recommended_view_configuration.
| void(* xrt_app_system::destroy) (struct xrt_app_system *xasys) |
Destroy the application system and its owned objects.
| xasys | Pointer to self |
Referenced by b_app_system::b_app_system_init(), and xrt_app_system_destroy().
| xrt_result_t(* xrt_app_system::get_recommended_view_configuration) (struct xrt_app_system *xasys, enum xrt_view_type view_type, struct xrt_recommended_view_config *out_recommended_view_config) |
Gets the recommended view configuration for the given view type, if available and supported.
| xasys | Pointer to self | |
| view_type | The view type to get the recommended view configuration for. | |
| [out] | out_recommended_view_config | The recommendation for the client. |
Referenced by b_app_system::b_app_system_init(), and xrt_app_system_get_recommended_view_configuration().
| xrt_result_t(* xrt_app_system::poll_events) (struct xrt_app_system *xasys, struct xrt_app_system_event *out_xasyse) |
Poll a single event from this app system, if no event is available then the type of the event will be XRT_APP_SYSTEM_EVENT_NONE.
| xasys | Pointer to self | |
| [out] | out_xasyse | Event to be returned. |
Referenced by b_app_system::b_app_system_init(), and xrt_app_system_poll_events().
| xrt_result_t(* xrt_app_system::set_recommended_view_configuration) (struct xrt_app_system *xasys, enum xrt_view_type view_type, const struct xrt_recommended_view_config *recommended_view_config) |
Sets the recommended view configuration for this application, for the given view type.
| xasys | Pointer to self | |
| view_type | The view type to set the recommended view configuration for. | |
| [in] | recommended_view_config | The recommended view configuration to set for the given view type. |
Referenced by b_app_system::b_app_system_init(), and xrt_app_system_set_recommended_view_configuration().