Adde camera class
This commit is contained in:
16
cpp/src/camera.hpp
Normal file
16
cpp/src/camera.hpp
Normal 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
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user