Monado OpenXR Runtime
Loading...
Searching...
No Matches
target_builder_helpers.h File Reference

Helpers for xrt_builder implementations. More...

#include "xrt/xrt_space.h"
#include "xrt/xrt_prober.h"
#include "xrt/xrt_system.h"
Include dependency graph for target_builder_helpers.h:

Go to the source code of this file.

Data Structures

struct  t_builder_roles_helper
 This small helper struct is for t_builder_roles_helper_open_system, lets a builder focus on opening devices rather then dealing with Monado structs like xrt_system_devices and the like. More...
 
struct  t_builder
 This helper struct makes it easier to implement the builder interface, but it also comes with a set of integration that may not be what all builders want. More...
 

Typedefs

typedef xrt_result_t(* t_builder_open_system_fn) (struct xrt_builder *xb, cJSON *config, struct xrt_prober *xp, struct xrt_tracking_origin *origin, struct xrt_system_devices *xsysd, struct xrt_frame_context *xfctx, struct t_builder_roles_helper *tbrh)
 Argument to t_builder_roles_helper_open_system and implemented by t_builder::open_system_static_roles function.
 

Functions

void t_builder_create_space_overseer_legacy (struct xrt_session_event_sink *broadcast, struct xrt_device *head, struct xrt_device *eyes, struct xrt_device *left, struct xrt_device *right, struct xrt_device *gamepad, struct xrt_device **xdevs, uint32_t xdev_count, bool root_is_unbounded, bool per_app_local_spaces, struct xrt_space_overseer **out_xso)
 Create a legacy space overseer, most builders probably want to have a more advanced setup then this, especially stand alone ones.
 
xrt_result_t t_builder_roles_helper_open_system (struct xrt_builder *xb, cJSON *config, struct xrt_prober *xp, struct xrt_session_event_sink *broadcast, struct xrt_system_devices **out_xsysd, struct xrt_space_overseer **out_xso, t_builder_open_system_fn fn)
 Helper to create a system devices that has static roles and a appropriate space overseer.
 
xrt_result_t t_builder_open_system_static_roles (struct xrt_builder *xb, cJSON *config, struct xrt_prober *xp, struct xrt_session_event_sink *broadcast, struct xrt_system_devices **out_xsysd, struct xrt_space_overseer **out_xso)
 Implementation for xrt_builder::open_system to be used with t_builder.
 

Detailed Description

Helpers for xrt_builder implementations.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m