t/gui: Support quat values

This commit is contained in:
Ryan Pavlik 2019-09-17 19:27:38 -05:00 committed by Jakob Bornecrantz
parent 65cc62daf9
commit f123c41146

View file

@ -125,6 +125,9 @@ on_elem(const char *name, enum u_var_kind kind, void *ptr, void *priv)
case U_VAR_KIND_RO_VEC3_F32:
igInputFloat3(name, (float *)ptr, "%+f", ro_i_flags);
break;
case U_VAR_KIND_RO_QUAT_F32:
igInputFloat4(name, (float *)ptr, "%+f", ro_i_flags);
break;
case U_VAR_KIND_GUI_HEADER:
state->hidden = !igCollapsingHeader(name, 0);
break;