|
Monado OpenXR Runtime
|

Public Member Functions | |
| struct b_tracked_device * | b_tracked_device_create (struct xrt_space *space) |
Create a tracked device with a reference to space. | |
| void | b_tracked_device_reference (struct b_tracked_device **dst, struct b_tracked_device *src) |
| struct xrt_space * | b_tracked_device_get_space (struct b_tracked_device *btd) |
| Returns the device space without taking a reference. | |
| void | b_tracked_device_track_pose_space (struct b_tracked_device *btd, struct xrt_space *xs) |
| Track a pose space owned by this device. | |
| void | b_tracked_device_untrack_pose_space (struct b_tracked_device *btd, struct xrt_space *xs) |
| Stop tracking a pose space. | |
| void | b_tracked_device_for_each_pose_space (struct b_tracked_device *btd, b_tracked_device_pose_space_cb cb, void *priv) |
| Iterate tracked pose spaces. | |
| void | b_tracked_device_clear_pose_spaces (struct b_tracked_device *btd) |
| Drop all tracked pose spaces without destroying them. | |
Data Fields | |
| struct xrt_reference | reference |
| struct xrt_space * | space |
| struct xrt_space ** | pose_spaces |
| uint32_t | pose_space_count |
| uint32_t | pose_space_capacity |
| void b_tracked_device_clear_pose_spaces | ( | struct b_tracked_device * | btd | ) |
Drop all tracked pose spaces without destroying them.
The caller must hold the space overseer graph lock.
| struct b_tracked_device * b_tracked_device_create | ( | struct xrt_space * | space | ) |
Create a tracked device with a reference to space.
References U_TYPED_CALLOC.
Referenced by b_space_overseer_link_space_to_device().
| void b_tracked_device_for_each_pose_space | ( | struct b_tracked_device * | btd, |
| b_tracked_device_pose_space_cb | cb, | ||
| void * | priv | ||
| ) |
Iterate tracked pose spaces.
The caller must hold the space overseer graph lock.
| struct xrt_space * b_tracked_device_get_space | ( | struct b_tracked_device * | btd | ) |
Returns the device space without taking a reference.
| void b_tracked_device_track_pose_space | ( | struct b_tracked_device * | btd, |
| struct xrt_space * | xs | ||
| ) |
Track a pose space owned by this device.
The caller must hold the space overseer graph lock.
References U_ARRAY_REALLOC_OR_FREE.
| void b_tracked_device_untrack_pose_space | ( | struct b_tracked_device * | btd, |
| struct xrt_space * | xs | ||
| ) |
Stop tracking a pose space.
The caller must hold the space overseer graph lock.