The JECamera class.
More...
#include <Camera.h>
The JECamera class.
This class manages all data necessary for a rendering camera. This class is used for both perspective rendering as well as orthographics projections, such as shadow maps. View/projection matrices are cached.
◆ JECamera() [1/2]
JoeEngine::JECamera::JECamera |
( |
| ) |
|
|
inline |
Default constructor.
Invokes other constructor.
◆ JECamera() [2/2]
JoeEngine::JECamera::JECamera |
( |
glm::vec3 |
e, |
|
|
glm::vec3 |
r, |
|
|
float |
a, |
|
|
float |
n, |
|
|
float |
f |
|
) |
| |
|
inline |
Constructor.
Initializes all member variables and computes view/projection matrices.
◆ ~JECamera()
JoeEngine::JECamera::~JECamera |
( |
| ) |
|
|
default |
◆ Cull()
Frustum cull.
Given a bounding box and transformation, check whether it should be culled due to being outside of the view frustum.
- Parameters
-
transformComponent | the world transformation of the bounding box. |
boundingBox | the bounding box data |
- Returns
- true if the bounding box passed culling (was NOT culled), false otherwise.
◆ GetFarPlane()
float JoeEngine::JECamera::GetFarPlane |
( |
| ) |
const |
|
inline |
Get far clip plane value.
◆ GetInvProj()
const glm::mat4& JoeEngine::JECamera::GetInvProj |
( |
| ) |
const |
|
inline |
Get inverse projection matrix.
◆ GetInvView()
const glm::mat4& JoeEngine::JECamera::GetInvView |
( |
| ) |
const |
|
inline |
◆ GetNearPlane()
float JoeEngine::JECamera::GetNearPlane |
( |
| ) |
const |
|
inline |
Get near clip plane value.
◆ GetOrthoViewProj()
glm::mat4 JoeEngine::JECamera::GetOrthoViewProj |
( |
| ) |
const |
|
inline |
Get orthographic view-projection matrix.
◆ GetProj()
const glm::mat4& JoeEngine::JECamera::GetProj |
( |
| ) |
const |
|
inline |
◆ GetView()
const glm::mat4& JoeEngine::JECamera::GetView |
( |
| ) |
const |
|
inline |
◆ GetViewProj()
const glm::mat4& JoeEngine::JECamera::GetViewProj |
( |
| ) |
const |
|
inline |
Get view-projection matrix.
◆ RotateAboutLook()
void JoeEngine::JECamera::RotateAboutLook |
( |
float |
amount | ) |
|
|
inline |
Rotate camera about look vector.
- Parameters
-
amount | how much to rotate by in radians. |
◆ RotateAboutRight()
void JoeEngine::JECamera::RotateAboutRight |
( |
float |
amount | ) |
|
|
inline |
Rotate camera about right vector.
- Parameters
-
amount | how much to rotate by in radians. |
◆ RotateAboutUp()
void JoeEngine::JECamera::RotateAboutUp |
( |
float |
amount | ) |
|
|
inline |
Rotate camera about up vector.
- Parameters
-
amount | how much to rotate by in radians. |
◆ SetAspect()
void JoeEngine::JECamera::SetAspect |
( |
float |
a | ) |
|
|
inline |
Update camera aspect ratio.
- Parameters
-
◆ SetEye()
void JoeEngine::JECamera::SetEye |
( |
glm::vec3 |
e | ) |
|
|
inline |
Update camera eye position.
- Parameters
-
◆ TranslateAlongLook()
void JoeEngine::JECamera::TranslateAlongLook |
( |
float |
amount | ) |
|
|
inline |
Translate camera along look vector.
- Parameters
-
amount | how much to translate by. |
◆ TranslateAlongRight()
void JoeEngine::JECamera::TranslateAlongRight |
( |
float |
amount | ) |
|
|
inline |
Translate camera along right vector.
- Parameters
-
amount | how much to translate by. |
◆ TranslateAlongUp()
void JoeEngine::JECamera::TranslateAlongUp |
( |
float |
amount | ) |
|
|
inline |
Translate camera along up vector.
- Parameters
-
amount | how much to translate by. |
The documentation for this class was generated from the following file: