X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel%2FCompositeModel.hpp;fp=src%2Fmodel%2FCompositeModel.hpp;h=947db0140b4a32219a26b44b57301070ed65ada9;hb=d4c71969df4f6b5e6b750c98268d30ca6784908b;hp=55708494cbbf37a53f61952503ad6f843dc071ef;hpb=36923ee2defd0848c5a530721114d4e553872305;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;