]> git.localhorst.tv Git - blank.git/blobdiff - src/model/Instance.hpp
glm backwards compatibility
[blank.git] / src / model / Instance.hpp
index 8b94bcd8c20ac0fc6a53de887201ecd5fa5b2748..60e195087099fbfe8f28493d326a2680fdd3355a 100644 (file)
@@ -2,9 +2,9 @@
 #define BLANK_MODEL_INSTANCE_HPP_
 
 #include "Part.hpp"
+#include "../graphics/glm.hpp"
 
 #include <vector>
-#include <glm/glm.hpp>
 #include <glm/gtc/quaternion.hpp>
 
 
@@ -26,6 +26,12 @@ public:
        operator bool() const noexcept { return model; }
        const Model &GetModel() const noexcept { return *model; }
 
+       glm::mat4 BodyTransform() const noexcept;
+       Part::State &BodyState() noexcept;
+
+       glm::mat4 EyesTransform() const noexcept;
+       Part::State &EyesState() noexcept;
+
        void Render(const glm::mat4 &, DirectionalLighting &);
 
 private: