VisPro  1.0
Project of Visualisierung 2
Camera Class Reference
Inheritance diagram for Camera:
SceneObject

Public Member Functions

 Camera (glm::mat4 &model_matrix)
 
virtual void update (float look_speed, glm::vec2 angle)
 
virtual void update (float deltaTime, glm::vec3 direction)
 
virtual void update (float deltaTime)
 
virtual void draw ()
 
virtual glm::vec3 camera_location ()
 
void setProjMatrix (int w, int h, float fov, float far_plane, float near_plane)
 
glm::mat4 view_matrix ()
 
glm::vec3 forward_vector ()
 
glm::vec3 backward_vector ()
 
glm::vec3 right_vector ()
 
glm::vec3 left_vector ()
 
- Public Member Functions inherited from SceneObject
 SceneObject (glm::mat4 &model_matrix)
 
glm::vec3 location ()
 

Public Attributes

glm::vec2 planes
 
float fov
 
float ratio
 
glm::mat4 proj_matrix
 
- Public Attributes inherited from SceneObject
glm::mat4 model_matrix
 

Member Function Documentation

virtual void Camera::update ( float  look_speed,
glm::vec2  angle 
)
virtual

Rotate horizontally and vertically.

Parameters
look_speedspeed of change
angleangles to rotate about
virtual void Camera::update ( float  deltaTime,
glm::vec3  direction 
)
virtual

Translate in specified direction.

Parameters
deltaTimetime since last update
directiontranslation vector

The documentation for this class was generated from the following files: