class
#include <nCine/Graphics/Camera.h>
Camera Camera that handles matrices for shaders.
Public types
- struct ProjectionValues
- Values for the projection matrix.
- struct ViewValues
- Values for the view matrix.
Constructors, destructors, conversion operators
- Camera()
- Creates a camera with default matrices.
Public functions
- auto GetProjectionValues() const -> const ProjectionValues&
- auto GetViewValues() const -> const ViewValues&
- auto GetProjection() const -> const Matrix4x4f&
- auto GetView() 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 -> std::
uint32_t -
auto UpdateFrameViewMatrix() const -> std::
uint32_t