Lmao, git removed some things :>(

This commit is contained in:
Bram Verhulst
2024-03-25 09:30:59 +01:00
parent ad847355b5
commit 61d1d17795
8 changed files with 116 additions and 15 deletions

View File

@@ -1,5 +1,7 @@
#pragma once
class Player;
class Camera
{
public:
@@ -16,11 +18,15 @@ public:
void BeginRendering() const;
void EndRendering() const;
void SetTrackingPlayer(Player* player) { m_FollowingPlayer = player; }
Point2f TransformMouse (const Point2f& mousePos) const;
Point2f TransformWorld (const Point2f& worldPos) const;
Rectf Viewport = Rectf{ 0, 0, 846.f, 500.f };
//TODO: Remove this and make it some static
private:
Point2f m_Position;
float m_Scale;
Player* m_FollowingPlayer{ nullptr };
};