summaryrefslogtreecommitdiffstats
path: root/Imgui/interface
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-04-05 00:41:21 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-04-05 00:41:21 +0000
commit55957e1c645f825c07969e0065abe2db151cef50 (patch)
treee60308e68f140e6d959adfe25eb53d432e2b6522 /Imgui/interface
parentUpdates to match API version 240056 (diff)
downloadDiligentTools-55957e1c645f825c07969e0065abe2db151cef50.tar.gz
DiligentTools-55957e1c645f825c07969e0065abe2db151cef50.zip
Moved ImGuiScopedDisabler to ImGui namespace and renamed to ScopedDisabler
Diffstat (limited to 'Imgui/interface')
-rw-r--r--Imgui/interface/ImGuiUtils.hpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/Imgui/interface/ImGuiUtils.hpp b/Imgui/interface/ImGuiUtils.hpp
index 8639742..f3c5a91 100644
--- a/Imgui/interface/ImGuiUtils.hpp
+++ b/Imgui/interface/ImGuiUtils.hpp
@@ -33,13 +33,13 @@
#include "../../ThirdParty/imgui/imgui.h"
#include "../../ThirdParty/imgui/imgui_internal.h"
-namespace Diligent
+namespace ImGui
{
-class ImGuiScopedDisabler
+class ScopedDisabler
{
public:
- explicit ImGuiScopedDisabler(bool Disable, float AlphaScale = 0.25f) :
+ explicit ScopedDisabler(bool Disable, float AlphaScale = 0.25f) :
m_IsDisabled{Disable}
{
if (m_IsDisabled)
@@ -49,7 +49,7 @@ public:
}
}
- ~ImGuiScopedDisabler()
+ ~ScopedDisabler()
{
if (m_IsDisabled)
{
@@ -62,11 +62,6 @@ private:
const bool m_IsDisabled;
};
-} // namespace Diligent
-
-namespace ImGui
-{
-
template <typename T>
inline bool Checkbox(const char* label, T* v)
{