1 #ifndef BLANK_CAMERA_HPP_
2 #define BLANK_CAMERA_HPP_
15 Camera(const Camera &) = delete;
16 Camera &operator =(const Camera &) = delete;
18 glm::mat4 MakeMVP(const glm::mat4 &m) const { return vp * m; }
20 void Viewport(int width, int height);
21 void Viewport(int x, int y, int width, int height);
25 void Aspect(float w, float h);
26 void Clip(float near, float far);
28 void Position(glm::vec3 pos) { position = pos; UpdateView(); }
29 void Move(glm::vec3 delta) { position += delta; UpdateView(); }
31 void LookAt(glm::vec3 tgt) { target = tgt; UpdateView(); }
34 void UpdateProjection();