|
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_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 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(* | 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 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.
Only the recommended field is guaranteed to be provided, and max may be left unspecified.
This allows a policy to set a new recommended view configuration for the lifetime of this application.
| 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 |
Sets the recommended view configuration for the given view type.
Only the recommended field will be meaningfully read by the xrt_app_system.
The callee should push a session event of type XRT_SESSION_EVENT_RECOMMENDED_VIEW_CONFIGURATION_CHANGE when the recommended view configuration changes, so that sessions can react to this change if they want to.
| 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.
Only the recommended field is guaranteed to be provided, and max may be left unspecified.
This allows a policy to set a new recommended view configuration for the lifetime of this application.
| 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::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 the given view type.
Only the recommended field will be meaningfully read by the xrt_app_system.
The callee should push a session event of type XRT_SESSION_EVENT_RECOMMENDED_VIEW_CONFIGURATION_CHANGE when the recommended view configuration changes, so that sessions can react to this change if they want to.
| 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().