]> git.localhorst.tv Git - blank.git/blobdiff - src/camera.hpp
minor optimization of noise generator
[blank.git] / src / camera.hpp
index 33c69d373fd3327dea38e4cbc92ba9b29e7cfce4..22e2ba598fd9f9990e228fda37f43f7878c0ca1f 100644 (file)
@@ -3,22 +3,13 @@
 
 #include <glm/glm.hpp>
 
-#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);
@@ -28,7 +19,7 @@ public:
        void Aspect(float w, float h);
        void Clip(float near, float far);
 
-       void Update(int dt);
+       const glm::mat4 &Projection() { return projection; }
 
 private:
        void UpdateProjection();
@@ -40,7 +31,6 @@ private:
        float far_clip;
 
        glm::mat4 projection;
-       glm::mat4 vp;
 
 };