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