Monado OpenXR Runtime
|
Helpers for system objects like xrt_system_devices. More...
#include "xrt/xrt_results.h"
#include "xrt/xrt_frame.h"
#include "xrt/xrt_system.h"
#include "xrt/xrt_instance.h"
#include "xrt/xrt_tracking.h"
Go to the source code of this file.
Data Structures | |
struct | u_system_devices |
Helper struct to manage devices by implementing the xrt_system_devices. More... | |
struct | u_system_devices_static |
Helper struct to manage devices by implementing the xrt_system_devices, this has only static device roles. More... | |
Functions | |
static struct u_system_devices * | u_system_devices (struct xrt_system_devices *xsysd) |
Small inline helper to cast from xrt_system_devices. More... | |
struct u_system_devices * | u_system_devices_allocate (void) |
Allocates a empty u_system_devices to be filled in by the caller, only the destroy function is filled in. More... | |
void | u_system_devices_close (struct xrt_system_devices *xsysd) |
Destroys all devices and clears out the frame context, doesn't free the struct itself, useful for code embedding the system devices struct into other objects where it's not the first member or C++ classes. More... | |
static struct u_system_devices_static * | u_system_devices_static (struct xrt_system_devices *xsysd) |
Small inline helper to cast from xrt_system_devices. More... | |
struct u_system_devices_static * | u_system_devices_static_allocate (void) |
Allocates a empty u_system_devices to be filled in by the caller, only the destroy function is filled in. More... | |
void | u_system_devices_static_finalize (struct u_system_devices_static *usysds, struct xrt_device *left, struct xrt_device *right) |
Finalizes the static struct with the given input devices, the system devices will always return these devices for the left and right role. More... | |
xrt_result_t | u_system_devices_create_from_prober (struct xrt_instance *xinst, struct xrt_session_event_sink *broadcast, struct xrt_system_devices **out_xsysd, struct xrt_space_overseer **out_xso) |
Takes a xrt_instance, gets the prober from it and then uses the prober to allocate a filled in u_system_devices. More... | |
struct xrt_device * | u_system_devices_get_ht_device (struct xrt_system_devices *xsysd, enum xrt_input_name name) |
Helper function. More... | |
static struct xrt_device * | u_system_devices_get_ht_device_left (struct xrt_system_devices *xsysd) |
Helper to get the first left hand-tracking device, uses u_system_devices_get_ht_device. More... | |
static struct xrt_device * | u_system_devices_get_ht_device_right (struct xrt_system_devices *xsysd) |
Helper to get the first right hand-tracking device, uses u_system_devices_get_ht_device. More... | |
Helpers for system objects like xrt_system_devices.