From cca5f473ca6bd296b40d8150c55a1a0ae5d49396 Mon Sep 17 00:00:00 2001 From: omar Date: Mon, 8 Dec 2014 17:18:20 +0000 Subject: [PATCH] Clarified comment --- imgui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.h b/imgui.h index df38958e..eec7d8c1 100644 --- a/imgui.h +++ b/imgui.h @@ -612,7 +612,7 @@ struct ImGuiStorage // - Set***() functions find pair, insertion on demand if missing. // - Get***Ptr() functions find pair, insertion on demand if missing, return pointer. Useful if you intend to do Get+Set. // A typical use case where this is very convenient: - // ImGui::SliderInt("tmp adjustment", GetIntPtr(key), 0, 100); some_var += *GetIntPtr(key); + // float* pvar = ImGui::GetIntPtr(key); ImGui::SliderInt("var", pvar, 0, 100); some_var += *pvar; // - Sorted insertion is costly but should amortize. A typical frame shouldn't need to insert any new pair. IMGUI_API void Clear(); IMGUI_API int GetInt(ImGuiID key, int default_val = 0) const;