mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-31 03:20:05 +00:00
Added ImGuiDataType_Bool for convenience.
This commit is contained in:
parent
ac7d6fb5ca
commit
bc9e5b62b6
2 changed files with 3 additions and 1 deletions
|
|
@ -2131,6 +2131,7 @@ static const ImGuiDataTypeInfo GDataTypeInfo[] =
|
|||
#endif
|
||||
{ sizeof(float), "float", "%.3f","%f" }, // ImGuiDataType_Float (float are promoted to double in va_arg)
|
||||
{ sizeof(double), "double","%f", "%lf" }, // ImGuiDataType_Double
|
||||
{ sizeof(bool), "bool", "%d", "%d" }, // ImGuiDataType_Bool
|
||||
};
|
||||
IM_STATIC_ASSERT(IM_ARRAYSIZE(GDataTypeInfo) == ImGuiDataType_COUNT);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue