Version 1.61 + todo additions

This commit is contained in:
omar
2018-05-14 11:58:11 +02:00
parent d7cc4bc317
commit 78b28d545f
8 changed files with 26 additions and 21 deletions

View File

@ -1,4 +1,4 @@
// dear imgui, v1.61 WIP
// dear imgui, v1.61
// (demo code)
// Message to the person tempted to delete this file when integrating ImGui into their code base:
@ -1009,7 +1009,7 @@ void ImGui::ShowDemoWindow(bool* p_open)
// This is the reason the test code below creates local variables to hold "zero" "one" etc. for each types.
// In practice, if you frequently use a given type that is not covered by the normal API entry points, you may want to wrap it yourself inside a 1 line function
// which can take typed values argument instead of void*, and then pass their address to the generic function. For example:
// bool SliderU64(const char *label, u64* value, u64 min = 0, u64 max = ~(u64)0, const char* format = "%d") { return SliderScalar(label, ImGuiDataType_U64, value, &min, &max, format); }
// bool SliderU64(const char *label, u64* value, u64 min = 0, u64 max = 0, const char* format = "%lld") { return SliderScalar(label, ImGuiDataType_U64, value, &min, &max, format); }
// Below are helper variables we can take the address of to work-around this:
// Note that the SliderScalar function has a maximum usable range of half the natural type maximum, hence the /2 below.
const ImS32 s32_zero = 0, s32_one = 1, s32_fifty = 50, s32_min = INT_MIN/2, s32_max = INT_MAX/2, s32_hi_a = INT_MAX/2 - 100, s32_hi_b = INT_MAX/2;