aux/util: Add sink as tracker variable

This commit is contained in:
Jakob Bornecrantz 2019-09-21 18:17:38 +01:00
parent 046c9e18b9
commit ef3074afa7
2 changed files with 6 additions and 7 deletions

View file

@ -31,12 +31,7 @@ class Var
public:
std::string name;
u_var_kind kind;
union {
void *ptr;
struct xrt_colour_rgb_u8 *rgb_u8;
struct xrt_colour_rgb_f32 *rgb_f32;
bool *boolean;
};
void *ptr;
};
class Obj
@ -200,6 +195,7 @@ ADD_FUNC(i32, int32_t, I32);
ADD_FUNC(f32, float, F32);
ADD_FUNC(vec3_i32, struct xrt_vec3_i32, VEC3_I32);
ADD_FUNC(vec3_f32, struct xrt_vec3, VEC3_F32);
ADD_FUNC(sink, struct xrt_frame_sink *, SINK);
ADD_FUNC(ro_text, const char, RO_TEXT);
ADD_FUNC(ro_i32, int32_t, RO_I32);
ADD_FUNC(ro_f32, float, RO_F32);

View file

@ -16,6 +16,8 @@ extern "C" {
#endif
struct xrt_frame_sink;
/*!
* @ingroup aux_util
* @{
@ -26,7 +28,6 @@ extern "C" {
*/
enum u_var_kind
{
U_VAR_KIND_BOOL,
U_VAR_KIND_RGB_U8,
U_VAR_KIND_RGB_F32,
@ -35,6 +36,7 @@ enum u_var_kind
U_VAR_KIND_F32,
U_VAR_KIND_VEC3_I32,
U_VAR_KIND_VEC3_F32,
U_VAR_KIND_SINK,
U_VAR_KIND_RO_TEXT,
U_VAR_KIND_RO_I32,
U_VAR_KIND_RO_F32,
@ -114,6 +116,7 @@ ADD_FUNC(i32, int32_t, I32);
ADD_FUNC(f32, float, F32);
ADD_FUNC(vec3_i32, struct xrt_vec3_i32, VEC3_I32);
ADD_FUNC(vec3_f32, struct xrt_vec3, VEC3_F32);
ADD_FUNC(sink, struct xrt_frame_sink *, SINK);
ADD_FUNC(ro_text, const char, RO_TEXT);
ADD_FUNC(ro_i32, int32_t, RO_I32);
ADD_FUNC(ro_f32, float, RO_F32);