1 #ifndef BLANK_CAMERA_HPP_
2 #define BLANK_CAMERA_HPP_
6 #include "controller.hpp"
7 #include "geometry.hpp"
13 : public FPSController {
18 Camera(const Camera &) = delete;
19 Camera &operator =(const Camera &) = delete;
21 glm::mat4 MakeMVP(const glm::mat4 &m) const { return vp * m; }
23 void Viewport(int width, int height);
24 void Viewport(int x, int y, int width, int height);
28 void Aspect(float w, float h);
29 void Clip(float near, float far);
33 const glm::mat4 &Projection() { return projection; }
34 const glm::mat4 &View() { return view; }
39 void UpdateProjection();