|
Brenta Engine 1.2
|
Data Structures | |
| class | Aircraft |
| class | Builder |
| struct | Config |
| class | Spherical |
Public Types | |
| enum class | ProjectionType { Perspective , Orthographic } |
| enum class | Movement { Forward , Backward , Left , Right } |
Public Member Functions | |
| Camera (Config conf) | |
| Camera (Builder &builder) | |
| std::variant< Spherical, Aircraft > | get_pos () const |
| Transform | get_transform () |
| float | get_fov () const |
| glm::mat4 | get_view_matrix () const |
| ProjectionType | get_projection_type () const |
| glm::mat4 | get_projection_matrix (int window_width, int window_height) const |
| glm::vec3 | get_world_up () const |
| glm::vec3 | get_front () const |
| glm::vec3 | get_up () const |
| glm::vec3 | get_right () const |
| void | set_pos (std::variant< Spherical, Aircraft > pos) |
| void | set_projection_type (ProjectionType proj_type) |
| void | set_fov (float fov) |
| void | set_world_up (glm::vec3 world_up) |
| void | set_front (glm::vec3 front) |
| void | set_up (glm::vec3 up) |
| void | set_right (glm::vec3 right) |
Definition at line 37 of file camera.hpp.
|
strong |
Definition at line 142 of file camera.hpp.
|
strong |
Definition at line 136 of file camera.hpp.
| Camera::Camera | ( | Config | conf | ) |
Definition at line 13 of file camera.cpp.
| Camera::Camera | ( | Builder & | builder | ) |
Definition at line 26 of file camera.cpp.
| float Camera::get_fov | ( | ) | const |
Definition at line 117 of file camera.cpp.
| glm::vec3 Camera::get_front | ( | ) | const |
Definition at line 122 of file camera.cpp.
| std::variant< Camera::Spherical, Camera::Aircraft > Camera::get_pos | ( | ) | const |
Definition at line 107 of file camera.cpp.
| glm::mat4 Camera::get_projection_matrix | ( | int | window_width, |
| int | window_height | ||
| ) | const |
Definition at line 48 of file camera.cpp.
| Camera::ProjectionType Camera::get_projection_type | ( | ) | const |
Definition at line 102 of file camera.cpp.
| glm::vec3 Camera::get_right | ( | ) | const |
Definition at line 132 of file camera.cpp.
| Transform Camera::get_transform | ( | ) |
Definition at line 112 of file camera.cpp.
| glm::vec3 Camera::get_up | ( | ) | const |
Definition at line 127 of file camera.cpp.
| glm::mat4 Camera::get_view_matrix | ( | ) | const |
Definition at line 31 of file camera.cpp.
| glm::vec3 Camera::get_world_up | ( | ) | const |
Definition at line 162 of file camera.cpp.
| void Camera::set_fov | ( | float | fov | ) |
Definition at line 172 of file camera.cpp.
| void Camera::set_front | ( | glm::vec3 | front | ) |
Definition at line 177 of file camera.cpp.
Definition at line 146 of file camera.cpp.
| void Camera::set_projection_type | ( | ProjectionType | proj_type | ) |
Definition at line 141 of file camera.cpp.
| void Camera::set_right | ( | glm::vec3 | right | ) |
Definition at line 187 of file camera.cpp.
| void Camera::set_up | ( | glm::vec3 | up | ) |
Definition at line 182 of file camera.cpp.
| void Camera::set_world_up | ( | glm::vec3 | world_up | ) |
Definition at line 167 of file camera.cpp.