X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel%2FPart.hpp;h=8c1db600244e4d4db37685c5abd3f0b1819c59e5;hb=0d580658b896dfec07466c31ae4847455724ee95;hp=f71efc5425a1580a992ba1b857e38e8ef9797a44;hpb=7e782291e0ce39eb2d4e8c1df28f682c313e6f8d;p=blank.git diff --git a/src/model/Part.hpp b/src/model/Part.hpp index f71efc5..8c1db60 100644 --- a/src/model/Part.hpp +++ b/src/model/Part.hpp @@ -17,9 +17,9 @@ class DirectionalLighting; class EntityMesh; class Instance; class Model; +class ResourceIndex; class Shape; class ShapeRegistry; -class TextureIndex; class TokenStreamReader; struct Part { @@ -33,7 +33,7 @@ public: Part(); ~Part(); - void Read(TokenStreamReader &, TextureIndex &, const ShapeRegistry &); + void Read(TokenStreamReader &, ResourceIndex &, const ShapeRegistry &); Part &AddChild(); const std::list &Children() const noexcept { return children; } @@ -41,6 +41,8 @@ public: std::uint16_t Enumerate(std::uint16_t) noexcept; void Index(std::vector &) noexcept; + std::uint16_t ID() const noexcept { return id; } + glm::mat4 LocalTransform(const Instance &) const noexcept; glm::mat4 GlobalTransform(const Instance &) const noexcept;