X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel%2FCompositeModel.hpp;h=947db0140b4a32219a26b44b57301070ed65ada9;hb=825f479edf9867938b6789215ad7ae6303596cba;hp=55708494cbbf37a53f61952503ad6f843dc071ef;hpb=2ea26d9ca5eaeae65daa0edbbaeada8c1f23670e;p=blank.git diff --git a/src/model/CompositeModel.hpp b/src/model/CompositeModel.hpp index 5570849..947db01 100644 --- a/src/model/CompositeModel.hpp +++ b/src/model/CompositeModel.hpp @@ -3,6 +3,7 @@ #include "geometry.hpp" +#include #include #include #include @@ -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;