Basic zoom implemented

This commit is contained in:
Jan Mrna
2025-10-05 21:20:30 +02:00
committed by Mrna
parent f5304d045d
commit 71e6bdb904
6 changed files with 70 additions and 30 deletions

View File

@@ -6,7 +6,7 @@ class Camera
{
public:
void Pan(const WorldPos& delta);
void Zoom(const WorldPos& delta);
void Zoom(float delta);
WindowPos WorldToWindow(WorldPos) const;
WorldPos WindowToWorld(WindowPos) const;
@@ -15,6 +15,6 @@ public:
private:
// TODO this should be replaced with a matrix
float m_Zoom;
float m_Zoom = 1.0f;
WorldPos m_Pan;
};