mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
a/util,st/gui: Add i64 as a debug GUI type
This commit is contained in:
parent
e035d060d1
commit
17560d0618
|
@ -162,6 +162,7 @@ enum u_var_kind
|
|||
U_VAR_KIND_U16,
|
||||
U_VAR_KIND_U64,
|
||||
U_VAR_KIND_I32,
|
||||
U_VAR_KIND_I64,
|
||||
U_VAR_KIND_F32,
|
||||
U_VAR_KIND_DRAGGABLE_F32,
|
||||
U_VAR_KIND_F64,
|
||||
|
@ -273,6 +274,7 @@ u_var_force_on(void);
|
|||
ADD_FUNC(u16, uint16_t, U16) \
|
||||
ADD_FUNC(u64, uint64_t, U64) \
|
||||
ADD_FUNC(i32, int32_t, I32) \
|
||||
ADD_FUNC(i64, int64_t, I64) \
|
||||
ADD_FUNC(f32, float, F32) \
|
||||
ADD_FUNC(f64, double, F64) \
|
||||
ADD_FUNC(f32_arr, struct u_var_f32_arr, F32_ARR) \
|
||||
|
|
|
@ -359,6 +359,7 @@ on_elem(struct u_var_info *info, void *priv)
|
|||
case U_VAR_KIND_U16: igDragScalar(name, ImGuiDataType_U16, ptr, drag_speed, NULL, NULL, NULL, power); break;
|
||||
case U_VAR_KIND_U64: igDragScalar(name, ImGuiDataType_U64, ptr, drag_speed, NULL, NULL, NULL, power); break;
|
||||
case U_VAR_KIND_I32: igInputInt(name, (int *)ptr, 1, 10, i_flags); break;
|
||||
case U_VAR_KIND_I64: igInputScalar(name, ImGuiDataType_S64, ptr, NULL, NULL, NULL, i_flags); break;
|
||||
case U_VAR_KIND_VEC3_I32: igInputInt3(name, (int *)ptr, i_flags); break;
|
||||
case U_VAR_KIND_F32: igInputFloat(name, (float *)ptr, 1, 10, "%+f", i_flags); break;
|
||||
case U_VAR_KIND_F64: igInputDouble(name, (double *)ptr, 0.1, 1, "%+f", i_flags); break;
|
||||
|
|
Loading…
Reference in a new issue