![]() |
Raven Engine v0.1
|
Base class for camera implementations. More...
#include <Camera.h>
Public Member Functions | |
| Camera ()=default | |
| Camera (const Crux::mat4 &projection) | |
| Constructs a Camera with a given projection matrix. | |
| virtual | ~Camera ()=default |
| const Crux::mat4 & | GetProjection () const |
| const Crux::mat4 & | GetViewProjection () const |
| const Crux::mat4 & | GetView () const |
| const Crux::vec3 & | GetPosition () const noexcept |
Protected Attributes | |
| Crux::mat4 | m_Projection = Crux::mat4(1.0f) |
| Projection matrix (e.g., perspective or orthographic). | |
| Crux::mat4 | m_View = Crux::mat4(1.0f) |
| View matrix representing camera position/orientation. | |
| Crux::mat4 | m_ViewProjection = Crux::mat4(1.0f) |
| Cached combined view-projection matrix. | |
| Crux::vec3 | m_Position = Crux::vec3(0.0f) |
| World Space Position of the Camera. | |
Base class for camera implementations.
Stores and provides access to projection, view, and view-projection matrices.
Typical usage involves subclassing to update view and view-projection matrices according to camera movement or other parameters.
|
default |
|
inline |
Constructs a Camera with a given projection matrix.
| projection | The initial projection matrix. |
|
virtualdefault |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
protected |
World Space Position of the Camera.
|
protected |
Projection matrix (e.g., perspective or orthographic).
|
protected |
View matrix representing camera position/orientation.
|
protected |
Cached combined view-projection matrix.