← API Reference Struct

asge::video::Camera

A simple 2D camera: a world-space position plus a uniform zoom.

#include <Camera.hpp>

Consumed by IRenderer::SetCamera and the WorldToScreen/ScreenToWorld/ TransformRect helpers below to convert world-space coordinates passed to draw calls into screen-space ones. No rotation position and zoom only.

Public Attributes

#float m_X { 0.0f }
#float m_Y { 0.0f }
#float m_Zoom { 1.0f }