|
| 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 () |
|
| SceneObject (glm::mat4 &model_matrix) |
|
glm::vec3 | location () |
|
|
glm::vec2 | planes |
|
float | fov |
|
float | ratio |
|
glm::mat4 | proj_matrix |
|
glm::mat4 | model_matrix |
|
virtual void Camera::update |
( |
float |
look_speed, |
|
|
glm::vec2 |
angle |
|
) |
| |
|
virtual |
Rotate horizontally and vertically.
- Parameters
-
look_speed | speed of change |
angle | angles to rotate about |
virtual void Camera::update |
( |
float |
deltaTime, |
|
|
glm::vec3 |
direction |
|
) |
| |
|
virtual |
Translate in specified direction.
- Parameters
-
deltaTime | time since last update |
direction | translation vector |
The documentation for this class was generated from the following files: