#include <CameraComponent.h>
Definition at line 22 of file CameraComponent.h.
◆ CameraComponent()
◆ create_orthographic()
| CameraComponent * hellfire::CameraComponent::create_orthographic |
( |
float |
size = 10.0f, |
|
|
float |
aspect = 16.0f/9.0f, |
|
|
float |
near_plane = 0.1f, |
|
|
float |
far_plane = 100.0f |
|
) |
| |
|
static |
◆ create_perspective()
| CameraComponent * hellfire::CameraComponent::create_perspective |
( |
float |
fov = 45.0f, |
|
|
float |
aspect = 16.0f/9.0f, |
|
|
float |
near_plane = 0.1f, |
|
|
float |
far_plane = 100.0f |
|
) |
| |
|
static |
◆ get_aspect_ratio()
| float hellfire::CameraComponent::get_aspect_ratio |
( |
| ) |
const |
|
inline |
◆ get_camera_type()
| CameraType hellfire::CameraComponent::get_camera_type |
( |
| ) |
const |
|
inline |
◆ get_far_plane()
| float hellfire::CameraComponent::get_far_plane |
( |
| ) |
const |
|
inline |
◆ get_fov()
| float hellfire::CameraComponent::get_fov |
( |
| ) |
const |
|
inline |
◆ get_front_vector()
| glm::vec3 hellfire::CameraComponent::get_front_vector |
( |
| ) |
const |
|
inline |
◆ get_mouse_sensitivity()
| float hellfire::CameraComponent::get_mouse_sensitivity |
( |
| ) |
const |
|
inline |
◆ get_near_plane()
| float hellfire::CameraComponent::get_near_plane |
( |
| ) |
const |
|
inline |
◆ get_pitch()
| float hellfire::CameraComponent::get_pitch |
( |
| ) |
const |
|
inline |
◆ get_projection_matrix()
| glm::mat4 hellfire::CameraComponent::get_projection_matrix |
( |
| ) |
const |
◆ get_right_vector()
| glm::vec3 hellfire::CameraComponent::get_right_vector |
( |
| ) |
const |
|
inline |
◆ get_target()
| glm::vec3 hellfire::CameraComponent::get_target |
( |
| ) |
const |
|
inline |
◆ get_up_vector()
| glm::vec3 hellfire::CameraComponent::get_up_vector |
( |
| ) |
const |
|
inline |
◆ get_view_matrix()
| glm::mat4 hellfire::CameraComponent::get_view_matrix |
( |
| ) |
const |
◆ get_yaw()
| float hellfire::CameraComponent::get_yaw |
( |
| ) |
const |
|
inline |
◆ invalidate_view()
| void hellfire::CameraComponent::invalidate_view |
( |
| ) |
const |
|
inline |
◆ look_at()
| void hellfire::CameraComponent::look_at |
( |
const glm::vec3 & |
target | ) |
|
◆ set_aspect_ratio()
| void hellfire::CameraComponent::set_aspect_ratio |
( |
float |
aspect | ) |
|
◆ set_camera_type()
| void hellfire::CameraComponent::set_camera_type |
( |
CameraType |
type | ) |
|
◆ set_clip_planes()
| void hellfire::CameraComponent::set_clip_planes |
( |
float |
near_plane, |
|
|
float |
far_plane |
|
) |
| |
◆ set_fov()
| void hellfire::CameraComponent::set_fov |
( |
float |
fov | ) |
|
◆ set_mouse_sensitivity()
| void hellfire::CameraComponent::set_mouse_sensitivity |
( |
float |
sensitivity | ) |
|
◆ set_orthographic()
| void hellfire::CameraComponent::set_orthographic |
( |
float |
left, |
|
|
float |
right, |
|
|
float |
bottom, |
|
|
float |
top, |
|
|
float |
near_plane, |
|
|
float |
far_plane |
|
) |
| |
◆ set_perspective()
| void hellfire::CameraComponent::set_perspective |
( |
float |
fov, |
|
|
float |
aspect, |
|
|
float |
near_plane, |
|
|
float |
far_plane |
|
) |
| |
◆ set_pitch()
| void hellfire::CameraComponent::set_pitch |
( |
float |
pitch | ) |
|
◆ set_target()
| void hellfire::CameraComponent::set_target |
( |
const glm::vec3 & |
target | ) |
|
◆ set_yaw()
| void hellfire::CameraComponent::set_yaw |
( |
float |
yaw | ) |
|
◆ update_camera_vectors()
| void hellfire::CameraComponent::update_camera_vectors |
( |
| ) |
|
|
private |
◆ update_orthographic_bounds()
| void hellfire::CameraComponent::update_orthographic_bounds |
( |
| ) |
|
|
private |
◆ update_projection_matrix()
| void hellfire::CameraComponent::update_projection_matrix |
( |
| ) |
const |
|
private |
◆ update_view_matrix()
| void hellfire::CameraComponent::update_view_matrix |
( |
| ) |
const |
|
private |
◆ aspect_ratio_
| float hellfire::CameraComponent::aspect_ratio_ = 16.0f / 9.0f |
|
private |
◆ camera_data_
| CameraData hellfire::CameraComponent::camera_data_ |
|
private |
◆ camera_type_
◆ far_plane_
| float hellfire::CameraComponent::far_plane_ = 100.0f |
|
private |
◆ fov_
| float hellfire::CameraComponent::fov_ = 45.0f |
|
private |
◆ front_
| glm::vec3 hellfire::CameraComponent::front_ = glm::vec3(0.0f, 0.0f, -1.0f) |
|
private |
◆ near_plane_
| float hellfire::CameraComponent::near_plane_ = 0.1f |
|
private |
◆ ortho_bottom_
| float hellfire::CameraComponent::ortho_bottom_ = -10.0f |
|
private |
◆ ortho_left_
| float hellfire::CameraComponent::ortho_left_ = -10.0f |
|
private |
◆ ortho_right_
| float hellfire::CameraComponent::ortho_right_ = 10.0f |
|
private |
◆ ortho_size_
| float hellfire::CameraComponent::ortho_size_ = 10.0f |
|
private |
◆ ortho_top_
| float hellfire::CameraComponent::ortho_top_ = 10.0f |
|
private |
◆ projection_dirty_
| bool hellfire::CameraComponent::projection_dirty_ = true |
|
mutableprivate |
◆ projection_matrix_
| glm::mat4 hellfire::CameraComponent::projection_matrix_ = glm::mat4(1.0f) |
|
mutableprivate |
◆ right_
| glm::vec3 hellfire::CameraComponent::right_ = glm::vec3(1.0f, 0.0f, 0.0f) |
|
private |
◆ target_
| glm::vec3 hellfire::CameraComponent::target_ = glm::vec3(0.0f) |
|
private |
◆ up_
| glm::vec3 hellfire::CameraComponent::up_ = glm::vec3(0.0f, 1.0f, 0.0f) |
|
private |
◆ view_dirty_
| bool hellfire::CameraComponent::view_dirty_ = true |
|
mutableprivate |
◆ view_matrix_
| glm::mat4 hellfire::CameraComponent::view_matrix_ = glm::mat4(1.0f) |
|
mutableprivate |
◆ world_up_
| glm::vec3 hellfire::CameraComponent::world_up_ = glm::vec3(0.0f, 1.0f, 0.0f) |
|
private |
The documentation for this class was generated from the following files: