mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
Hud refactor
This commit is contained in:
parent
eaf3f4e7a1
commit
c2dd185c08
6 changed files with 183 additions and 90 deletions
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
#include "../graphics/GfxContext.h"
|
||||
|
||||
class Batch2D;
|
||||
class Camera;
|
||||
class Level;
|
||||
class Block;
|
||||
|
|
@ -17,8 +16,8 @@ class Player;
|
|||
class Level;
|
||||
class Engine;
|
||||
class ContentGfxCache;
|
||||
class WorldRenderer;
|
||||
class BlocksPreview;
|
||||
class InventoryView;
|
||||
|
||||
namespace gui {
|
||||
class GUI;
|
||||
|
|
@ -28,7 +27,6 @@ namespace gui {
|
|||
class HudRenderer {
|
||||
Level* level;
|
||||
Assets* assets;
|
||||
Batch2D* batch;
|
||||
Camera* uicamera;
|
||||
BlocksPreview* blocksPreview;
|
||||
|
||||
|
|
@ -37,9 +35,9 @@ class HudRenderer {
|
|||
int fpsMax = 60;
|
||||
std::wstring fpsString;
|
||||
bool inventoryOpen = false;
|
||||
int inventoryScroll = 0;
|
||||
bool pause = false;
|
||||
|
||||
std::unique_ptr<InventoryView> contentAccess;
|
||||
std::shared_ptr<gui::UINode> debugPanel;
|
||||
gui::GUI* gui;
|
||||
const ContentGfxCache* const cache;
|
||||
|
|
@ -50,7 +48,6 @@ public:
|
|||
~HudRenderer();
|
||||
|
||||
void update();
|
||||
void drawContentAccess(const GfxContext& ctx, Player* player);
|
||||
void draw(const GfxContext& context);
|
||||
void drawDebug(int fps);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue