Base class for camera, meant to be overridden.
More...
#include <Camera.h>
Inherited by Fling::FirstPersonCamera.
Base class for camera, meant to be overridden.
◆ Camera()
| Fling::Camera::Camera |
( |
| ) |
|
|
inline |
◆ ~Camera()
| virtual Fling::Camera::~Camera |
( |
| ) |
|
|
virtualdefault |
◆ GetAspectRatio()
| const float Fling::Camera::GetAspectRatio |
( |
| ) |
const |
|
inline |
◆ GetExposure()
| float Fling::Camera::GetExposure |
( |
| ) |
const |
|
inline |
◆ GetFarPlane()
| const float Fling::Camera::GetFarPlane |
( |
| ) |
const |
|
inline |
Gets the far plane of the view frustrum.
- Returns
- const float& m_farPlane
◆ GetFieldOfView()
| const float Fling::Camera::GetFieldOfView |
( |
| ) |
const |
|
inline |
Gets the field of view angle from the view frustrum.
- Returns
- const float& m_fieldOfView
◆ GetGamma()
| float Fling::Camera::GetGamma |
( |
| ) |
const |
|
inline |
◆ GetNearPlane()
| const float Fling::Camera::GetNearPlane |
( |
| ) |
const |
|
inline |
Gets the near plane of the view frustrum.
- Returns
- const float& m_nearPlane
◆ GetPosition()
| const glm::vec3& Fling::Camera::GetPosition |
( |
| ) |
const |
|
inline |
◆ GetProjectionMatrix()
| const glm::mat4& Fling::Camera::GetProjectionMatrix |
( |
| ) |
const |
|
inline |
Gets the projection matrix used by camera.
- Returns
- const glm::mat4& projectionMatrix
◆ GetRotation()
| const glm::vec3& Fling::Camera::GetRotation |
( |
| ) |
const |
|
inline |
◆ GetSpeed()
| const float Fling::Camera::GetSpeed |
( |
| ) |
const |
|
inline |
◆ GetViewMatrix()
| const glm::mat4& Fling::Camera::GetViewMatrix |
( |
| ) |
const |
|
inline |
Gets the view matrix created by the current camera position and rotation.
- Returns
- const glm::mat4& viewMatrix
◆ SetExposure()
| void Fling::Camera::SetExposure |
( |
float |
t_Val | ) |
|
|
inline |
◆ SetFarPlane()
| void Fling::Camera::SetFarPlane |
( |
const float & |
farPlane | ) |
|
|
inline |
◆ SetFieldOfView()
| void Fling::Camera::SetFieldOfView |
( |
const float & |
fieldOfView | ) |
|
|
inline |
◆ SetGamma()
| void Fling::Camera::SetGamma |
( |
float |
t_Gam | ) |
|
|
inline |
◆ SetNearPlane()
| void Fling::Camera::SetNearPlane |
( |
const float & |
nearPlane | ) |
|
|
inline |
◆ Update()
| virtual void Fling::Camera::Update |
( |
float |
dt | ) |
|
|
pure virtual |
◆ m_aspectRatio
| float Fling::Camera::m_aspectRatio |
|
protected |
◆ m_Exposure
| float Fling::Camera::m_Exposure = 4.5f |
|
protected |
◆ m_farPlane
| float Fling::Camera::m_farPlane |
|
protected |
◆ m_fieldOfView
| float Fling::Camera::m_fieldOfView |
|
protected |
◆ m_Gamma
| float Fling::Camera::m_Gamma = 2.2f |
|
protected |
◆ m_nearPlane
| float Fling::Camera::m_nearPlane |
|
protected |
◆ m_position
| glm::vec3 Fling::Camera::m_position |
|
protected |
◆ m_projectionMatrix
| glm::mat4 Fling::Camera::m_projectionMatrix |
|
protected |
◆ m_rotation
| glm::vec3 Fling::Camera::m_rotation |
|
protected |
◆ m_speed
| float Fling::Camera::m_speed |
|
protected |
◆ m_viewMatrix
| glm::mat4 Fling::Camera::m_viewMatrix |
|
protected |
The documentation for this class was generated from the following file: