mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +00:00
Refactor and fixes
This commit is contained in:
parent
b4a3608302
commit
63b5f4bc6b
25 changed files with 394 additions and 278 deletions
|
|
@ -21,9 +21,9 @@ class HudRenderer {
|
|||
Batch2D* batch;
|
||||
Camera* uicamera;
|
||||
|
||||
int fps = 60;
|
||||
int fpsMin = 60;
|
||||
int fpsMax = 60;
|
||||
int fpsFrame = 0;
|
||||
std::wstring fpsString;
|
||||
bool occlusion;
|
||||
bool inventoryOpen = false;
|
||||
|
|
@ -38,6 +38,9 @@ public:
|
|||
void drawInventory(Player* player);
|
||||
void draw();
|
||||
void drawDebug(int fps, bool occlusion);
|
||||
|
||||
bool isInventoryOpen() const;
|
||||
bool isPause() const;
|
||||
};
|
||||
|
||||
#endif /* SRC_HUD_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue