X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcamera.hpp;h=22e2ba598fd9f9990e228fda37f43f7878c0ca1f;hb=c3c5045f06327db2a3c97eae77a072bc06677286;hp=7cdd5e527b1ca5ecc2e0c795dd5679907dd0d209;hpb=3baab6cca7423d55ea08288d96570b02380b1fe9;p=blank.git diff --git a/src/camera.hpp b/src/camera.hpp index 7cdd5e5..22e2ba5 100644 --- a/src/camera.hpp +++ b/src/camera.hpp @@ -3,22 +3,13 @@ #include -#include "controller.hpp" - namespace blank { -class Camera -: public FPSController { +class Camera { public: Camera(); - ~Camera(); - - Camera(const Camera &) = delete; - Camera &operator =(const Camera &) = delete; - - glm::mat4 MakeMVP(const glm::mat4 &m) const { return vp * m; } void Viewport(int width, int height); void Viewport(int x, int y, int width, int height); @@ -29,9 +20,6 @@ public: void Clip(float near, float far); const glm::mat4 &Projection() { return projection; } - const glm::mat4 &View() { return view; } - - void Update(int dt); private: void UpdateProjection(); @@ -43,8 +31,6 @@ private: float far_clip; glm::mat4 projection; - glm::mat4 view; - glm::mat4 vp; };