50 using index_t = QVector<int>::size_type; |
51 using index_t = QVector<int>::size_type; |
51 |
52 |
52 Q_DECLARE_METATYPE(glm::vec3) |
53 Q_DECLARE_METATYPE(glm::vec3) |
53 Q_DECLARE_METATYPE(glm::mat4) |
54 Q_DECLARE_METATYPE(glm::mat4) |
54 |
55 |
|
56 struct ModelId |
|
57 { |
|
58 std::int32_t value; |
|
59 constexpr auto operator<=>(const ModelId&) const = default; |
|
60 }; |
|
61 |
55 //! \brief count the amount of elements in a basic array |
62 //! \brief count the amount of elements in a basic array |
56 template<typename T, int N> |
63 template<typename T, int N> |
57 constexpr int countof(T(&)[N]) |
64 constexpr int countof(T(&)[N]) |
58 { |
65 { |
59 return N; |
66 return N; |