X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel%2FInstance.hpp;h=0c828393675cb50f6e175510cfacfd6592a083be;hb=b9a63fedbc65e8659c43f7fa381017c0c70a48da;hp=9de1a5db8e3382414131a77f2d4766b881118566;hpb=bc2806164f55b7ac48dbb6d224b7d4b55683decf;p=blank.git diff --git a/src/model/Instance.hpp b/src/model/Instance.hpp index 9de1a5d..0c82839 100644 --- a/src/model/Instance.hpp +++ b/src/model/Instance.hpp @@ -10,20 +10,26 @@ namespace blank { -class Model; class DirectionalLighting; +class Model; +class Part; class Instance { friend class Model; + friend class Part; public: Instance(); + ~Instance(); operator bool() const noexcept { return model; } const Model &GetModel() const noexcept { return *model; } - void Render(const glm::mat4 &, DirectionalLighting &) const; + glm::mat4 EyesTransform() const noexcept; + Part::State &EyesState() noexcept; + + void Render(const glm::mat4 &, DirectionalLighting &); private: const Model *model;