hud refactor (part II)

This commit is contained in:
MihailRis
2024-01-07 19:22:29 +03:00
parent 8118afce5c
commit e493c67dfa
13 changed files with 142 additions and 91 deletions
+5 -3
View File
@@ -27,7 +27,7 @@
#include "../maths/voxmaths.h"
#include "../settings.h"
#include "../engine.h"
#include "ContentGfxCache.h"
#include "LevelFrontend.h"
#include "graphics/Skybox.h"
using glm::vec3;
@@ -38,12 +38,14 @@ using std::shared_ptr;
WorldRenderer::WorldRenderer(Engine* engine,
Level* level,
const ContentGfxCache* cache)
LevelFrontend* frontend)
: engine(engine),
level(level),
frustumCulling(new Frustum()),
lineBatch(new LineBatch()),
renderer( new ChunksRenderer(level, cache, engine->getSettings())) {
renderer(new ChunksRenderer(level,
frontend->getContentGfxCache(),
engine->getSettings())) {
auto& settings = engine->getSettings();
level->events->listen(EVT_CHUNK_HIDDEN,