|
Zen 0.3.0
|
Public Member Functions | |
| Camera (CameraType type=CameraType::Orthographic) | |
| void | setCameraType (CameraType type) |
| void | setPerspective (float fov, float aspect, float near, float far) |
| void | setOrthographic (float left, float right, float bottom, float top) |
| void | setAspectRatio (float aspect) |
| void | setClip (float near, float far) |
| void | setPosition (const glm::vec3 &position) |
| void | setRotation (float yaw, float pitch, float roll) |
| void | setSpeed (float speed) |
| void | setSensitivity (float sensitivity) |
| CameraType | type () const |
| const glm::vec3 & | position () const |
| glm::vec3 | rotation () const |
| float | speed () const |
| float | sensitivity () const |
| float | aspectRatio () const |
| const glm::mat4 & | projectionMatrix () const |
| const glm::mat4 & | viewMatrix () const |
| glm::mat4 | viewProjectionMatrix () const |
Definition at line 11 of file ZEN_Camera.h.
| Zen::Camera::Camera | ( | CameraType | type = CameraType::Orthographic | ) |
Definition at line 8 of file ZEN_Camera.cpp.
| float Zen::Camera::aspectRatio | ( | ) | const |
Definition at line 81 of file ZEN_Camera.cpp.
| const glm::vec3 & Zen::Camera::position | ( | ) | const |
Definition at line 73 of file ZEN_Camera.cpp.
| const glm::mat4 & Zen::Camera::projectionMatrix | ( | ) | const |
Definition at line 83 of file ZEN_Camera.cpp.
| glm::vec3 Zen::Camera::rotation | ( | ) | const |
Definition at line 75 of file ZEN_Camera.cpp.
| float Zen::Camera::sensitivity | ( | ) | const |
Definition at line 79 of file ZEN_Camera.cpp.
| void Zen::Camera::setAspectRatio | ( | float | aspect | ) |
Definition at line 38 of file ZEN_Camera.cpp.
| void Zen::Camera::setCameraType | ( | CameraType | type | ) |
Definition at line 14 of file ZEN_Camera.cpp.
| void Zen::Camera::setClip | ( | float | near, |
| float | far ) |
Definition at line 45 of file ZEN_Camera.cpp.
| void Zen::Camera::setOrthographic | ( | float | left, |
| float | right, | ||
| float | bottom, | ||
| float | top ) |
Definition at line 29 of file ZEN_Camera.cpp.
| void Zen::Camera::setPerspective | ( | float | fov, |
| float | aspect, | ||
| float | near, | ||
| float | far ) |
Definition at line 20 of file ZEN_Camera.cpp.
| void Zen::Camera::setPosition | ( | const glm::vec3 & | position | ) |
Definition at line 53 of file ZEN_Camera.cpp.
| void Zen::Camera::setRotation | ( | float | yaw, |
| float | pitch, | ||
| float | roll ) |
Definition at line 58 of file ZEN_Camera.cpp.
| void Zen::Camera::setSensitivity | ( | float | sensitivity | ) |
Definition at line 69 of file ZEN_Camera.cpp.
| void Zen::Camera::setSpeed | ( | float | speed | ) |
Definition at line 67 of file ZEN_Camera.cpp.
| float Zen::Camera::speed | ( | ) | const |
Definition at line 77 of file ZEN_Camera.cpp.
| CameraType Zen::Camera::type | ( | ) | const |
Definition at line 71 of file ZEN_Camera.cpp.
| const glm::mat4 & Zen::Camera::viewMatrix | ( | ) | const |
Definition at line 85 of file ZEN_Camera.cpp.
| glm::mat4 Zen::Camera::viewProjectionMatrix | ( | ) | const |
Definition at line 87 of file ZEN_Camera.cpp.