#include <camera.hh>
|
| Camera (float position, float width, float height, float up=0.0f, float yaw=-90.0f, float pitch=0.0f, float fov=45.0f, float z_zear=0.1f, float z_far=100.0f) |
|
void | update (Keyboard &k, Mouse &m, float delta_time) |
|
void | update (const float delta_time) |
|
glm::mat4 & | get_view_matrix () |
|
glm::mat4 & | get_projection () |
|
float | get_fov () |
|
glm::vec3 & | get_position () |
|
void | set_moviment_speed (float m) |
|
◆ Camera()
Camera::Camera |
( |
float |
position, |
|
|
float |
width, |
|
|
float |
height, |
|
|
float |
up = 0.0f , |
|
|
float |
yaw = -90.0f , |
|
|
float |
pitch = 0.0f , |
|
|
float |
fov = 45.0f , |
|
|
float |
z_zear = 0.1f , |
|
|
float |
z_far = 100.0f |
|
) |
| |
◆ get_fov()
float Camera::get_fov |
( |
| ) |
|
|
inline |
◆ get_position()
glm::vec3 & Camera::get_position |
( |
| ) |
|
|
inline |
◆ get_projection()
glm::mat4 & Camera::get_projection |
( |
| ) |
|
◆ get_view_matrix()
glm::mat4 & Camera::get_view_matrix |
( |
| ) |
|
◆ process_keyboard()
void Camera::process_keyboard |
( |
Keyboard & |
k, |
|
|
float |
delta_time |
|
) |
| |
|
private |
◆ process_mouse_moviment()
void Camera::process_mouse_moviment |
( |
Mouse & |
m, |
|
|
bool |
constrian_pitch = true |
|
) |
| |
|
private |
◆ process_mouse_scroll()
void Camera::process_mouse_scroll |
( |
float |
y_offset | ) |
|
|
private |
◆ process_NDC()
void Camera::process_NDC |
( |
| ) |
|
|
private |
◆ set_moviment_speed()
void Camera::set_moviment_speed |
( |
float |
m | ) |
|
|
inline |
◆ update() [1/2]
void Camera::update |
( |
const float |
delta_time | ) |
|
◆ update() [2/2]
void Camera::update |
( |
Keyboard & |
k, |
|
|
Mouse & |
m, |
|
|
float |
delta_time |
|
) |
| |
◆ update_camera()
void Camera::update_camera |
( |
| ) |
|
|
private |
◆ _direction_up
glm::vec3 Camera::_direction_up |
|
private |
◆ _fov
◆ _front
◆ _mouse_sensitivity
float Camera::_mouse_sensitivity = 0.1f |
|
private |
◆ _moviment_speed
float Camera::_moviment_speed = 2.5f |
|
private |
◆ _perspecitve_projection
glm::mat4 Camera::_perspecitve_projection |
|
private |
◆ _perspecitve_view
glm::mat4 Camera::_perspecitve_view |
|
private |
◆ _pitch
◆ _position
glm::vec3 Camera::_position |
|
private |
◆ _right
◆ _up
◆ _view_height
float Camera::_view_height |
|
private |
◆ _view_width
float Camera::_view_width |
|
private |
◆ _yaw
◆ _z_far
◆ _z_near
◆ _zoom_sensitivity
float Camera::_zoom_sensitivity = 2.0f |
|
private |
The documentation for this class was generated from the following files: