#include <camera.h>
Definition at line 23 of file camera.h.
◆ Camera() [1/2]
tango_gl::Camera::Camera |
( |
| ) |
|
◆ Camera() [2/2]
tango_gl::Camera::Camera |
( |
const Camera & |
other | ) |
|
|
delete |
◆ ~Camera()
tango_gl::Camera::~Camera |
( |
| ) |
|
◆ getFarClipPlane()
float tango_gl::Camera::getFarClipPlane |
( |
| ) |
const |
|
inline |
◆ getNearClipPlane()
float tango_gl::Camera::getNearClipPlane |
( |
| ) |
const |
|
inline |
◆ GetProjectionMatrix()
glm::mat4 tango_gl::Camera::GetProjectionMatrix |
( |
| ) |
|
◆ GetViewMatrix()
glm::mat4 tango_gl::Camera::GetViewMatrix |
( |
| ) |
|
◆ operator=()
◆ ProjectionMatrixForCameraIntrinsics()
glm::mat4 tango_gl::Camera::ProjectionMatrixForCameraIntrinsics |
( |
float |
width, |
|
|
float |
height, |
|
|
float |
fx, |
|
|
float |
fy, |
|
|
float |
cx, |
|
|
float |
cy, |
|
|
float |
near, |
|
|
float |
far |
|
) |
| |
|
static |
Create an OpenGL perspective matrix from window size, camera intrinsics, and clip settings.
- Parameters
-
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.
◆ SetFieldOfView()
void tango_gl::Camera::SetFieldOfView |
( |
const float |
fov | ) |
|
◆ SetNearFarClipPlanes()
void tango_gl::Camera::SetNearFarClipPlanes |
( |
const float |
near, |
|
|
const float |
far |
|
) |
| |
◆ SetOrthoCropFactor()
void tango_gl::Camera::SetOrthoCropFactor |
( |
float |
value | ) |
|
|
inline |
◆ SetOrthoMode()
void tango_gl::Camera::SetOrthoMode |
( |
bool |
enabled | ) |
|
|
inline |
◆ SetOrthoScale()
void tango_gl::Camera::SetOrthoScale |
( |
float |
scale | ) |
|
|
inline |
◆ SetWindowSize()
void tango_gl::Camera::SetWindowSize |
( |
const float |
width, |
|
|
const float |
height |
|
) |
| |
◆ aspect_ratio_
float tango_gl::Camera::aspect_ratio_ |
|
protected |
◆ far_clip_plane_
float tango_gl::Camera::far_clip_plane_ |
|
protected |
◆ field_of_view_
float tango_gl::Camera::field_of_view_ |
|
protected |
◆ height_
float tango_gl::Camera::height_ |
|
protected |
◆ near_clip_plane_
float tango_gl::Camera::near_clip_plane_ |
|
protected |
◆ ortho_
bool tango_gl::Camera::ortho_ |
|
protected |
◆ orthoCropFactor_
float tango_gl::Camera::orthoCropFactor_ |
|
protected |
◆ orthoScale_
float tango_gl::Camera::orthoScale_ |
|
protected |
◆ width_
float tango_gl::Camera::width_ |
|
protected |
The documentation for this class was generated from the following files: