VisPro  1.0
Project of Visualisierung 2
Camera.h
1 #pragma once
2 
3 #include "SceneObject.h"
4 #include "glm.hpp"
5 
6 class Camera : public SceneObject {
7 public:
8  Camera(glm::mat4& model_matrix);
9  virtual ~Camera();
14  virtual void update(float look_speed, glm::vec2 angle); // rotate
19  virtual void update(float deltaTime, glm::vec3 direction); // translate
20  virtual void update(float deltaTime);
21  virtual void draw();
22  virtual glm::vec3 camera_location();
23  glm::vec2 planes;
24  float fov, ratio;
25 
26  void setProjMatrix(int w, int h, float fov, float far_plane, float near_plane);
27 
28  glm::mat4 view_matrix();
29  glm::vec3 forward_vector();
30  glm::vec3 backward_vector();
31  glm::vec3 right_vector();
32  glm::vec3 left_vector();
33 
34  glm::mat4 proj_matrix;
35 
36 
37 
38 };
Definition: Camera.h:6
virtual void update(float look_speed, glm::vec2 angle)
Definition: SceneObject.h:15