Monado OpenXR Runtime
Loading...
Searching...
No Matches
u_body_tracker.h
Go to the documentation of this file.
1// Copyright 2026, NVIDIA CORPORATION.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Misc helpers for @ref xrt_body_tracker implementations.
6 * @ingroup aux_util
7 */
8
9#pragma once
10
12
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18
19/*!
20 * Function pointer type for the body tracker's destroy function.
21 *
22 * @ingroup aux_util
23 */
25
26/*!
27 * Populate the body tracker's function pointers with default implementations.
28 *
29 * Fills in all body tracker function pointers with not-implemented versions,
30 * allowing implementations to override only the functions they implement.
31 * @p destroy_fn must be implemented and must not be NULL.
32 *
33 * @param[in,out] xbt Pointer to the body tracker to populate.
34 * @param[in] destroy_fn The body tracker's destroy function.
35 * @ingroup aux_util
36 */
37void
39
40
41#ifdef __cplusplus
42}
43#endif
void u_body_tracker_populate_function_pointers(struct xrt_body_tracker *xbt, u_body_tracker_destroy_function_t destroy_fn)
Populate the body tracker's function pointers with default implementations.
Definition u_body_tracker.c:17
void(* u_body_tracker_destroy_function_t)(struct xrt_body_tracker *xbt)
Function pointer type for the body tracker's destroy function.
Definition u_body_tracker.h:24
A body tracker, owns the policy for selecting which device and body-tracking source back a single Ope...
Definition xrt_body_tracker.h:102
Header defining xrt body tracker.