]> git.localhorst.tv Git - blank.git/blobdiff - src/model/Skeletons.hpp
load models from assets
[blank.git] / src / model / Skeletons.hpp
diff --git a/src/model/Skeletons.hpp b/src/model/Skeletons.hpp
deleted file mode 100644 (file)
index 3c7c886..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#ifndef BLANK_MODEL_SKELETONS_HPP_
-#define BLANK_MODEL_SKELETONS_HPP_
-
-#include <cstdint>
-#include <memory>
-#include <vector>
-
-
-namespace blank {
-
-class Model;
-class ShapeRegistry;
-
-class Skeletons {
-
-public:
-       using size_type = std::size_t;
-       using reference = Model &;
-       using const_reference = const Model &;
-
-public:
-       Skeletons();
-       ~Skeletons();
-
-       void Load(const ShapeRegistry &);
-
-       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]; }
-
-       Model *ByID(std::uint16_t) noexcept;
-       const Model *ByID(std::uint16_t) const noexcept;
-
-private:
-       std::vector<std::unique_ptr<Model>> skeletons;
-
-};
-
-}
-
-#endif