Class Camera#

Inheritance Relationships#

Derived Types#

Class Documentation#

class Camera#

Subclassed by TRAP::Graphics::EditorCamera, TRAP::SceneCamera

Public Functions

constexpr Camera() noexcept = default#

Constructor.

explicit constexpr Camera(const Math::Mat4 &projection) noexcept#

Constructor.

Parameters:

projection – Projection matrix.

virtual constexpr ~Camera() = default#

Destructor.

constexpr Camera(const Camera&) noexcept = default#

Copy constructor.

constexpr Camera(Camera&&) noexcept = default#

Move constructor.

constexpr Camera &operator=(const Camera&) noexcept = default#

Copy assignment operator.

constexpr Camera &operator=(Camera&&) noexcept = default#

Move assignment operator.

constexpr Math::Mat4 GetProjectionMatrix() const noexcept#

Retrieve the projection matrix.

Returns:

Projection matrix.

Protected Attributes

Math::Mat4 m_projection = Math::Mat4(1.0f)#