From 5d1c38150931b4f191d4b23dd908c80873e9860e Mon Sep 17 00:00:00 2001 From: ocornut Date: Wed, 11 Mar 2015 16:44:54 +0000 Subject: [PATCH] Update version number, added IMGUI_VERSION, ImGui::GetVersion() (#127) --- imgui.cpp | 7 ++++++- imgui.h | 5 ++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/imgui.cpp b/imgui.cpp index 4368cc7b..266e898c 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -1,4 +1,4 @@ -// ImGui library v1.35 +// ImGui library v1.36 wip // See ImGui::ShowTestWindow() for sample code. // Read 'Programmer guide' below for notes on how to setup ImGui in your codebase. // Get latest version at https://github.com/ocornut/imgui @@ -1713,6 +1713,11 @@ static void MarkSettingsDirty() g.SettingsDirtyTimer = g.IO.IniSavingRate; } +const char* ImGui::GetVersion() +{ + return IMGUI_VERSION; +} + // Internal state access - if you want to share ImGui state between modules (e.g. DLL) or allocate it yourself // Note that we still point to some static data and members (such as GFontAtlas), so the state instance you end up using will point to the static data within its module void* ImGui::GetInternalState() diff --git a/imgui.h b/imgui.h index f4f36f18..6efe3673 100644 --- a/imgui.h +++ b/imgui.h @@ -1,4 +1,4 @@ -// ImGui library v1.35 +// ImGui library v1.36 wip // See .cpp file for documentation. // See ImGui::ShowTestWindow() for sample code. // Read 'Programmer guide' in .cpp for notes on how to setup ImGui in your codebase. @@ -13,6 +13,8 @@ #include // NULL, malloc #include // memset, memmove +#define IMGUI_VERSION "1.36 wip" + // Define assertion handler. #ifndef IM_ASSERT #include @@ -369,6 +371,7 @@ namespace ImGui IMGUI_API void ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b); // Internal state access - if you want to share ImGui state between modules (e.g. DLL) or allocate it yourself + IMGUI_API const char* GetVersion(); IMGUI_API void* GetInternalState(); IMGUI_API size_t GetInternalStateSize(); IMGUI_API void SetInternalState(void* state, bool construct = false);