#include <camerasettings.h>
◆ CameraSettings()
| Graphics::CameraSettings::CameraSettings |
( |
| ) |
|
◆ GetAspect()
| float Graphics::CameraSettings::GetAspect |
( |
| ) |
const |
|
inline |
get aspect ration (only if perspective)
◆ GetFarHeight()
| float Graphics::CameraSettings::GetFarHeight |
( |
| ) |
const |
|
inline |
◆ GetFarWidth()
| float Graphics::CameraSettings::GetFarWidth |
( |
| ) |
const |
|
inline |
◆ GetFocalLength()
| const Math::vec2 & Graphics::CameraSettings::GetFocalLength |
( |
| ) |
const |
|
inline |
get focal length (computed from fov and aspect ratio)
◆ GetFov()
| float Graphics::CameraSettings::GetFov |
( |
| ) |
const |
|
inline |
get field-of-view (only if perspective)
◆ GetInvProjTransform()
| const Math::mat4 & Graphics::CameraSettings::GetInvProjTransform |
( |
| ) |
const |
|
inline |
get the inverse projection matrix
◆ GetNearHeight()
| float Graphics::CameraSettings::GetNearHeight |
( |
| ) |
const |
|
inline |
◆ GetNearWidth()
| float Graphics::CameraSettings::GetNearWidth |
( |
| ) |
const |
|
inline |
◆ GetProjTransform()
| const Math::mat4 & Graphics::CameraSettings::GetProjTransform |
( |
| ) |
const |
|
inline |
◆ GetZFar()
| float Graphics::CameraSettings::GetZFar |
( |
| ) |
const |
|
inline |
◆ GetZNear()
| float Graphics::CameraSettings::GetZNear |
( |
| ) |
const |
|
inline |
◆ IsOrthogonal()
| bool Graphics::CameraSettings::IsOrthogonal |
( |
| ) |
const |
|
inline |
return true if this is an orthogonal transform
◆ IsPerspective()
| bool Graphics::CameraSettings::IsPerspective |
( |
| ) |
const |
|
inline |
return true if this is a perspective projection
◆ SetupOrthogonal()
| void Graphics::CameraSettings::SetupOrthogonal |
( |
float | w, |
|
|
float | h, |
|
|
float | zNear_, |
|
|
float | zFar_ ) |
setup an orthogonal projection transform
Setup camera as orthogonal projection.
This method can be called before or after setting up the object. When the object is alive, an update message will be sent to the render-thread.
◆ SetupPerspectiveFov()
| void Graphics::CameraSettings::SetupPerspectiveFov |
( |
float | fov_, |
|
|
float | aspect_, |
|
|
float | zNear_, |
|
|
float | zFar_ ) |
setup a perspective view volume
Setup camera as perspective projection.
This method can be called before or after setting up the object. When the object is alive, an update message will be sent to the render-thread.
◆ aspect
| float Graphics::CameraSettings::aspect |
|
private |
◆ farHeight
| float Graphics::CameraSettings::farHeight |
|
private |
◆ farWidth
| float Graphics::CameraSettings::farWidth |
|
private |
◆ focalLength
◆ fov
| float Graphics::CameraSettings::fov |
|
private |
◆ invProjMatrix
| Math::mat4 Graphics::CameraSettings::invProjMatrix |
|
private |
◆ isPersp
| bool Graphics::CameraSettings::isPersp |
|
private |
◆ nearHeight
| float Graphics::CameraSettings::nearHeight |
|
private |
◆ nearWidth
| float Graphics::CameraSettings::nearWidth |
|
private |
◆ projMatrix
◆ zFar
| float Graphics::CameraSettings::zFar |
|
private |
◆ zNear
| float Graphics::CameraSettings::zNear |
|
private |
The documentation for this class was generated from the following files: