#include <camera.h>

Static Public Member Functions | |
| static glm::mat4 | ProjectionMatrixForCameraIntrinsics (float width, float height, float fx, float fy, float cx, float cy, float near, float far) |
Protected Attributes | |
| float | aspect_ratio_ |
| float | far_clip_plane_ |
| float | field_of_view_ |
| float | height_ |
| float | near_clip_plane_ |
| bool | ortho_ |
| float | orthoCropFactor_ |
| float | orthoScale_ |
| float | width_ |
| Camera::Camera | ( | ) |
Definition at line 22 of file camera.cpp.
|
delete |
| Camera::~Camera | ( | ) |
Definition at line 62 of file camera.cpp.
| glm::mat4 Camera::GetProjectionMatrix | ( | ) |
Definition at line 38 of file camera.cpp.
| glm::mat4 Camera::GetViewMatrix | ( | ) |
Definition at line 34 of file camera.cpp.
|
static |
Create an OpenGL perspective matrix from window size, camera intrinsics, and clip settings.
| width | - The width of the camera image. |
| height | - The height of the camera image. |
| fx | - The x-axis focal length of the camera. |
| fy | - The y-axis focal length of the camera. |
| cx | - The x-coordinate principal point in pixels. |
| cy | - The y-coordinate principal point in pixels. |
| near | - The desired near z-clipping plane. |
| far | - The desired far z-clipping plane. |
Definition at line 65 of file camera.cpp.
| void Camera::SetFieldOfView | ( | const float | fov | ) |
Definition at line 52 of file camera.cpp.
Definition at line 56 of file camera.cpp.
|
inline |
Definition at line 46 of file camera.cpp.