From 7961c5314518a031444a5985e6c0663dac46ca7f Mon Sep 17 00:00:00 2001 From: Yaroslav Bunyak Date: Wed, 12 Nov 2014 01:36:34 +0200 Subject: [PATCH] Fix namespaces for Value() and Color() functions. --- imgui.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/imgui.cpp b/imgui.cpp index cbee0b49..69628ed9 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -5182,22 +5182,22 @@ void ImGui::TreePop() PopID(); } -void Value(const char* prefix, bool b) +void ImGui::Value(const char* prefix, bool b) { ImGui::Text("%s: %s", prefix, (b ? "true" : "false")); } -void Value(const char* prefix, int v) +void ImGui::Value(const char* prefix, int v) { ImGui::Text("%s: %d", prefix, v); } -void Value(const char* prefix, unsigned int v) +void ImGui::Value(const char* prefix, unsigned int v) { ImGui::Text("%s: %d", prefix, v); } -void Value(const char* prefix, float v, const char* float_format) +void ImGui::Value(const char* prefix, float v, const char* float_format) { if (float_format) { @@ -5211,14 +5211,14 @@ void Value(const char* prefix, float v, const char* float_format) } } -void Color(const char* prefix, const ImVec4& v) +void ImGui::Color(const char* prefix, const ImVec4& v) { ImGui::Text("%s: (%.2f,%.2f,%.2f,%.2f)", prefix, v.x, v.y, v.z, v.w); ImGui::SameLine(); ImGui::ColorButton(v, true); } -void Color(const char* prefix, unsigned int v) +void ImGui::Color(const char* prefix, unsigned int v) { ImGui::Text("%s: %08X", prefix, v); ImGui::SameLine();