X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel%2FSkeletons.hpp;h=90affd333d58e0d8891013069f0f1e4b725edd58;hb=bc2806164f55b7ac48dbb6d224b7d4b55683decf;hp=131bf0cfd1218258b56eecbe6eb64a53301e034a;hpb=825f479edf9867938b6789215ad7ae6303596cba;p=blank.git diff --git a/src/model/Skeletons.hpp b/src/model/Skeletons.hpp index 131bf0c..90affd3 100644 --- a/src/model/Skeletons.hpp +++ b/src/model/Skeletons.hpp @@ -8,34 +8,36 @@ namespace blank { -class CompositeModel; -class EntityModel; +class Model; +class EntityMesh; +class ShapeRegistry; +class TextureIndex; class Skeletons { public: using size_type = std::size_t; - using reference = CompositeModel &; - using const_reference = const CompositeModel &; + using reference = Model &; + using const_reference = const Model &; public: Skeletons(); ~Skeletons(); void LoadHeadless(); - void Load(); + void Load(const ShapeRegistry &, TextureIndex &); size_type size() const noexcept { return skeletons.size(); } reference operator[](size_type i) noexcept { return *skeletons[i]; } const_reference operator[](size_type i) const noexcept { return *skeletons[i]; } - CompositeModel *ByID(std::uint16_t) noexcept; - const CompositeModel *ByID(std::uint16_t) const noexcept; + Model *ByID(std::uint16_t) noexcept; + const Model *ByID(std::uint16_t) const noexcept; private: - std::vector> skeletons; - std::vector models; + std::vector> skeletons; + std::vector meshes; };