]> git.localhorst.tv Git - blank.git/blobdiff - src/model/Model.hpp
new gcc version
[blank.git] / src / model / Model.hpp
index 55a9734381a7e68ad453f94f1e51ce489fdce748..54b5256c13f34e4767475735d259d3161272aa9c 100644 (file)
@@ -2,11 +2,11 @@
 #define BLANK_MODEL_MODEL_HPP_
 
 #include "Part.hpp"
+#include "../graphics/glm.hpp"
 
 #include <cstdint>
 #include <list>
 #include <vector>
-#include <glm/glm.hpp>
 #include <glm/gtc/quaternion.hpp>
 
 
@@ -31,8 +31,10 @@ public:
        Part &GetPart(std::size_t i) noexcept { return *part[i]; }
        const Part &GetPart(std::size_t i) const noexcept { return *part[i]; }
 
-       void SetEyes(std::uint16_t id) { eyes_id = id; }
+       void SetBody(std::uint16_t id) { body_id = id; }
+       const Part &GetBodyPart() const noexcept { return GetPart(body_id); }
 
+       void SetEyes(std::uint16_t id) { eyes_id = id; }
        const Part &GetEyesPart() const noexcept { return GetPart(eyes_id); }
 
        void Enumerate();
@@ -42,6 +44,7 @@ private:
        std::uint32_t id;
        Part root;
        std::vector<Part *> part;
+       std::uint16_t body_id;
        std::uint16_t eyes_id;
 
 };