aboutsummaryrefslogtreecommitdiff
path: root/source/Enum.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-05-23 22:36:46 -0700
committerrtk0c <[email protected]>2022-05-23 22:36:46 -0700
commite3e848ac4da1c2ae59d93e62da8ef6f87b3452cd (patch)
treef70d86d4ae80f1fedc0afb1ba3b923e3651f0475 /source/Enum.hpp
parent123f741e3f5374b93ac39887b62bfa0d66762ae2 (diff)
Changeset: 37 Branch comment: [] Add infrastructure for rendering wireframe (rendering broken) including saving and loading config files
Diffstat (limited to 'source/Enum.hpp')
-rw-r--r--source/Enum.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/Enum.hpp b/source/Enum.hpp
index 5e106fe..3b6165e 100644
--- a/source/Enum.hpp
+++ b/source/Enum.hpp
@@ -101,3 +101,10 @@ public:
EnumFlags operator~() const { return EnumFlags(~mValue); }
};
+
+// Helper class for enumerating enum elements for ImGui::Begin/EndCombo
+template <class TEnum>
+struct EnumElement {
+ const char* name;
+ TEnum value;
+};