Monado OpenXR Runtime
|
Variable tracking code. More...
#include "xrt/xrt_defines.h"
Go to the source code of this file.
Data Structures | |
struct | u_var_f32_arr |
struct | u_var_timing |
#define | U_VAR_ADD_FUNCS() |
#define | ADD_FUNC(SUFFIX, TYPE, ENUM) void u_var_add_##SUFFIX(void *, TYPE *, const char *); |
enum | u_var_kind { U_VAR_KIND_BOOL, U_VAR_KIND_RGB_U8, U_VAR_KIND_RGB_F32, U_VAR_KIND_U8, U_VAR_KIND_I32, U_VAR_KIND_F32, U_VAR_KIND_F32_ARR, U_VAR_KIND_TIMING, U_VAR_KIND_VEC3_I32, U_VAR_KIND_VEC3_F32, U_VAR_KIND_POSE, U_VAR_KIND_SINK, U_VAR_KIND_RO_TEXT, U_VAR_KIND_RO_I32, U_VAR_KIND_RO_U32, U_VAR_KIND_RO_F32, U_VAR_KIND_RO_I64, U_VAR_KIND_RO_U64, U_VAR_KIND_RO_F64, U_VAR_KIND_RO_VEC3_I32, U_VAR_KIND_RO_VEC3_F32, U_VAR_KIND_RO_QUAT_F32, U_VAR_KIND_GUI_HEADER } |
What kind of variable is this tracking. More... | |
typedef void(* | u_var_root_cb) (const char *, void *) |
Callback for entering and leaving root nodes. More... | |
typedef void(* | u_var_elm_cb) (const char *, enum u_var_kind, void *, void *) |
Callback on each variable a root node has. More... | |
void | u_var_add_root (void *root, const char *c_name, bool number) |
Add a named root object, the u_var subsystem is completely none-invasive to the object it's tracking. More... | |
void | u_var_remove_root (void *root) |
Remove the root node. More... | |
void | u_var_visit (u_var_root_cb enter_cb, u_var_root_cb exit_cb, u_var_elm_cb elem_cb, void *priv) |
Visit all root nodes and their variables. More... | |
void | u_var_force_on (void) |
This forces the variable tracking code to on, it is disabled by default. More... | |
Variable tracking code.
#define ADD_FUNC | ( | SUFFIX, | |
TYPE, | |||
ENUM | |||
) | void u_var_add_##SUFFIX(void *, TYPE *, const char *); |
#define U_VAR_ADD_FUNCS | ( | ) |
typedef void(* u_var_elm_cb) (const char *, enum u_var_kind, void *, void *) |
Callback on each variable a root node has.
typedef void(* u_var_root_cb) (const char *, void *) |
Callback for entering and leaving root nodes.
enum u_var_kind |
What kind of variable is this tracking.
void u_var_force_on | ( | void | ) |
This forces the variable tracking code to on, it is disabled by default.
References Tracker::on, and Tracker::tested.
Referenced by main(), and oxr_sdl2_hack_stop().
void u_var_remove_root | ( | void * | root | ) |
Remove the root node.
Referenced by gui_sdl2_imgui_loop(), and oxr_sdl2_hack_stop().
void u_var_visit | ( | u_var_root_cb | enter_cb, |
u_var_root_cb | exit_cb, | ||
u_var_elm_cb | elem_cb, | ||
void * | priv | ||
) |
Visit all root nodes and their variables.