Monado OpenXR Runtime
Loading...
Searching...
No Matches
u_builder_helpers.h
Go to the documentation of this file.
1// Copyright 2022-2023, Collabora, Ltd.
2// Copyright 2026, NVIDIA CORPORATION.
3// SPDX-License-Identifier: BSL-1.0
4/*!
5 * @file
6 * @brief Tracking-origin setup helpers for @ref xrt_builder implementations.
7 * @author Jakob Bornecrantz <jakob@collabora.com>
8 * @ingroup aux_util
9 */
10
11#pragma once
12
13#include "xrt/xrt_prober.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19/*!
20 * Helper function for setting up tracking origins. Applies 3dof offsets for devices with XRT_TRACKING_TYPE_NONE.
21 *
22 * @ingroup aux_util
23 */
24void
26 struct xrt_device *eyes,
27 struct xrt_device *left,
28 struct xrt_device *right,
29 struct xrt_device *gamepad,
30 struct xrt_vec3 *global_tracking_origin_offset);
31
32#ifdef __cplusplus
33}
34#endif
void u_builder_setup_tracking_origins(struct xrt_device *head, struct xrt_device *eyes, struct xrt_device *left, struct xrt_device *right, struct xrt_device *gamepad, struct xrt_vec3 *global_tracking_origin_offset)
Helper function for setting up tracking origins.
Definition u_builder_helpers.c:28
A single HMD or input device.
Definition xrt_device.h:310
A 3 element vector with single floats.
Definition xrt_defines.h:289
Common interface to probe for devices.