Adde camera class

This commit is contained in:
Jan Mrna
2025-10-04 17:10:20 +02:00
committed by Mrna
parent 8a49c12909
commit 326094caf3
2 changed files with 32 additions and 0 deletions

16
cpp/src/camera.hpp Normal file
View File

@@ -0,0 +1,16 @@
#pragma once
#include "math.hpp"
class Camera
{
public:
WindowPos WorldToWindow(WorldPos) const;
WorldPos WindowToWorld(WindowPos) const;
private:
// TODO this should be replaced with a matrix
float m_Zoom;
WorldPos m_RectCorner; // upper left corner (0,0) of the drawn regios
};