src/basics.h

changeset 309
d862721d19a3
parent 300
3a4b132b8353
child 313
c24d87f64bed
--- a/src/basics.h	Wed Jun 29 16:21:44 2022 +0300
+++ b/src/basics.h	Wed Jun 29 16:33:49 2022 +0300
@@ -19,6 +19,7 @@
 #pragma once
 #include <algorithm>
 #include <cmath>
+#include <cinttypes>
 #include <compare>
 #include <deque>
 #include <memory>
@@ -52,6 +53,12 @@
 Q_DECLARE_METATYPE(glm::vec3)
 Q_DECLARE_METATYPE(glm::mat4)
 
+struct ModelId
+{
+	std::int32_t value;
+	constexpr auto operator<=>(const ModelId&) const = default;
+};
+
 //! \brief count the amount of elements in a basic array
 template<typename T, int N>
 constexpr int countof(T(&)[N])

mercurial