]> git.localhorst.tv Git - blank.git/blobdiff - src/model/CompositeModel.hpp
sky box model & shader
[blank.git] / src / model / CompositeModel.hpp
index 55708494cbbf37a53f61952503ad6f843dc071ef..947db0140b4a32219a26b44b57301070ed65ada9 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "geometry.hpp"
 
+#include <cstdint>
 #include <list>
 #include <glm/glm.hpp>
 #include <glm/gtc/quaternion.hpp>
@@ -21,6 +22,9 @@ public:
        CompositeModel(const CompositeModel &) = delete;
        CompositeModel &operator =(const CompositeModel &) = delete;
 
+       std::uint32_t ID() const noexcept { return id; }
+       void ID(std::uint32_t i) noexcept { id = i; }
+
        const AABB &Bounds() const noexcept { return bounds; }
        void Bounds(const AABB &b) noexcept { bounds = b; }
 
@@ -49,6 +53,8 @@ private:
        CompositeModel *parent;
        const EntityModel *node_model;
 
+       std::uint32_t id;
+
        AABB bounds;
 
        glm::vec3 position;