nCine::Camera class

Camera that handles matrices for shaders.

Public types

struct ProjectionValues
struct ViewValues

Constructors, destructors, conversion operators

Camera()
Creates a camera with default matrices.

Public functions

auto projectionValues() const -> const ProjectionValues&
auto viewValues() const -> const ViewValues&
auto projection() const -> const Matrix4x4f&
auto view() const -> const Matrix4x4f&
void setOrthoProjection(float left, float right, float top, float bottom)
void setOrthoProjection(const ProjectionValues& values)
void setView(Vector2f pos, float rotation, float scale)
void setView(float x, float y, float rotation, float scale)
void setView(const ViewValues& values)
auto updateFrameProjectionMatrix() const -> unsigned long int
auto updateFrameViewMatrix() const -> unsigned long int