diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-04-05 00:41:21 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-04-05 00:41:21 +0000 |
| commit | 55957e1c645f825c07969e0065abe2db151cef50 (patch) | |
| tree | e60308e68f140e6d959adfe25eb53d432e2b6522 /Imgui/interface | |
| parent | Updates to match API version 240056 (diff) | |
| download | DiligentTools-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.hpp | 13 |
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) { |
