summaryrefslogtreecommitdiffhomepage
path: root/editor/inspect.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-27 08:59:13 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-03-27 08:59:13 +0200
commitf6684418f22df4baaccdcda325cbe1beb8e6180a (patch)
treed463fc05e5ebdd4ac55fff249060c8f2cc2ac6c2 /editor/inspect.cpp
parentc27896540f0a1051183cb3f0de314f170d3c32c3 (diff)
editor: allow inspecting object id
Diffstat (limited to 'editor/inspect.cpp')
-rw-r--r--editor/inspect.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/inspect.cpp b/editor/inspect.cpp
index 415dcdff..1631f11c 100644
--- a/editor/inspect.cpp
+++ b/editor/inspect.cpp
@@ -34,6 +34,8 @@ template<> struct IGDT_<uint16_t> : std::integral_constant<int, ImGuiDataType_U1
template<> struct IGDT_<int16_t> : std::integral_constant<int, ImGuiDataType_S16> {};
template<> struct IGDT_<uint32_t> : std::integral_constant<int, ImGuiDataType_U32> {};
template<> struct IGDT_<int32_t> : std::integral_constant<int, ImGuiDataType_S32> {};
+template<> struct IGDT_<uint64_t> : std::integral_constant<int, ImGuiDataType_U64> {};
+template<> struct IGDT_<int64_t> : std::integral_constant<int, ImGuiDataType_S64> {};
template<> struct IGDT_<float> : std::integral_constant<int, ImGuiDataType_Float> {};
template<typename T> constexpr auto IGDT = IGDT_<T>::value;
@@ -203,6 +205,8 @@ MAKE_SPEC_REPRS2(uint16_t)
MAKE_SPEC_REPRS2(int16_t)
MAKE_SPEC_REPRS2(uint32_t)
MAKE_SPEC_REPRS2(int32_t)
+MAKE_SPEC_REPRS2(uint64_t)
+MAKE_SPEC_REPRS2(int64_t)
MAKE_SPEC_REPRS2(float)
MAKE_SPEC(bool, field_repr::input)
MAKE_SPEC(String, field_repr::input)