Class Camera2D

Inheritance Relationships

Base Type

Class Documentation

class Camera2D : public CE::Rendering::CameraBase

Declaration: final

Y-up GLM orthographic camera spanning [0,width] by [0,height], near/far 0/1.

Public Functions

Camera2D()

Compute the initial orthographic projection at revision zero; a zero initial pixel extent uses one pixel per axis.

Protected Functions

virtual void recalculate_projection() override

Recompute Y-up orthographic bounds using at least one pixel per framebuffer axis, without selecting depth policy.