mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +00:00
add debug world generator visualization
This commit is contained in:
parent
88752806e6
commit
75d66b644b
11 changed files with 116 additions and 9 deletions
|
|
@ -18,6 +18,7 @@ class LevelFrontend;
|
|||
class UiDocument;
|
||||
class DrawContext;
|
||||
class Viewport;
|
||||
class ImageData;
|
||||
|
||||
namespace gui {
|
||||
class GUI;
|
||||
|
|
@ -107,6 +108,8 @@ class Hud : public util::ObjectsKeeper {
|
|||
|
||||
/// @brief UI element will be dynamicly positioned near to inventory or in screen center
|
||||
std::shared_ptr<gui::UINode> secondUI = nullptr;
|
||||
|
||||
std::unique_ptr<ImageData> debugImgWorldGen;
|
||||
|
||||
std::shared_ptr<gui::InventoryView> createContentAccess();
|
||||
std::shared_ptr<gui::InventoryView> createHotbar();
|
||||
|
|
@ -117,6 +120,7 @@ class Hud : public util::ObjectsKeeper {
|
|||
void cleanup();
|
||||
|
||||
void showExchangeSlot();
|
||||
void updateWorldGenDebugVisualization();
|
||||
public:
|
||||
Hud(Engine* engine, LevelFrontend* frontend, Player* player);
|
||||
~Hud();
|
||||
|
|
@ -167,4 +171,7 @@ public:
|
|||
Player* getPlayer() const;
|
||||
|
||||
std::shared_ptr<Inventory> getBlockInventory();
|
||||
|
||||
/// @brief Runtime updating debug visualization texture
|
||||
inline static std::string DEBUG_WORLDGEN_IMAGE = "#debug.img.worldgen";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue