Monado OpenXR Runtime
u_builders.c File Reference

Helpers for xrt_builder implementations. More...

Include dependency graph for u_builders.c:

Functions

static void apply_offset (struct xrt_vec3 *position, struct xrt_vec3 *offset)
 
struct xrt_prober_deviceu_builder_find_prober_device (struct xrt_prober_device *const *xpdevs, size_t xpdev_count, uint16_t vendor_id, uint16_t product_id, enum xrt_bus_type bus_type)
 Find the first xrt_prober_device in the prober list. More...
 
void u_builder_search (struct xrt_prober *xp, struct xrt_prober_device *const *xpdevs, size_t xpdev_count, const struct u_builder_search_filter *filters, size_t filter_count, struct u_builder_search_results *results)
 Find all of the xrt_prober_device that matches any in the given list of u_builder_search_filter filters. More...
 
void u_builder_setup_tracking_origins (struct xrt_device *head, struct xrt_device *left, struct xrt_device *right, struct xrt_vec3 *global_tracking_origin_offset)
 Helper function for setting up tracking origins. More...
 
void u_builder_create_space_overseer_legacy (struct xrt_session_event_sink *broadcast, struct xrt_device *head, struct xrt_device *left, struct xrt_device *right, struct xrt_device **xdevs, uint32_t xdev_count, bool root_is_unbounded, 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. More...
 
xrt_result_t u_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, u_builder_open_system_fn fn)
 Helper to create a system devices that has static roles and a appropriate space overseer. More...
 
xrt_result_t u_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 u_builder. More...
 

Detailed Description

Helpers for xrt_builder implementations.

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