X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=src%2Fgraphics%2FCamera.hpp;h=736020da8b491efa9ea39f9d4c3ecdef9276f8f2;hp=51dd8f15c447e1a67731b816b78f7211f251179d;hb=e0180e01f4c659c97973f585fea5eb3344254ce0;hpb=b0e73e632f0b681a0af78f889dd82d370563944a diff --git a/src/graphics/Camera.hpp b/src/graphics/Camera.hpp index 51dd8f1..736020d 100644 --- a/src/graphics/Camera.hpp +++ b/src/graphics/Camera.hpp @@ -5,6 +5,9 @@ namespace blobs { +namespace creature { + class Creature; +} namespace world { class Body; } @@ -38,6 +41,8 @@ public: Camera &MapView(int surface, const glm::vec3 &pos, float roll = 0.0f) noexcept; /// look at center, position relative to orbital reference plane for children Camera &Orbital(const glm::vec3 &pos) noexcept; + /// look at creature from above + Camera &TopDown(const creature::Creature &, float distance, float roll = 0.0f); const glm::mat4 &Projection() const noexcept { return projection; } const glm::mat4 &View() const noexcept { return view; }