Add Imgui Navbar

This commit is contained in:
Bram Verhulst
2024-03-18 23:47:13 +01:00
parent 964a1a42f6
commit 6f2a6ead37
8 changed files with 95 additions and 152 deletions

View File

@@ -18,7 +18,7 @@ public:
static const int TILE_WIDTH = 50;
static const int TILE_HEIGHT = 50;
WorldLevel(Camera* camera);
WorldLevel(Camera* camera, Rectf viewport);
~WorldLevel() override;
void Update(float elapsedSec) override;
@@ -34,6 +34,8 @@ public:
std::vector<Collision::CollisionRect> m_Rects;
std::array<std::array<WorldTile*, WORLD_WIDTH>, WORLD_HEIGHT> GetWorldTiles() const { return m_worldTiles; }
private:
@@ -43,4 +45,11 @@ private:
Player m_player;
Point2f m_mousePos{};
Rectf m_viewport;
// ImGui Vars
bool m_ShowTextureManagerWindow{ false };
bool m_ShowCameraWindow{ false };
bool m_ShowPlayerInfo{ false };
};