mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
refactor
This commit is contained in:
parent
5e55e20ec4
commit
d745a34657
33 changed files with 209 additions and 205 deletions
|
|
@ -32,9 +32,9 @@ class Assets;
|
|||
struct EngineSettings;
|
||||
|
||||
class WorldRenderer {
|
||||
Engine* engine;
|
||||
Engine& engine;
|
||||
const Level& level;
|
||||
Player* player;
|
||||
Player& player;
|
||||
const Assets& assets;
|
||||
std::unique_ptr<Frustum> frustumCulling;
|
||||
std::unique_ptr<LineBatch> lineBatch;
|
||||
|
|
@ -74,7 +74,7 @@ public:
|
|||
static bool showChunkBorders;
|
||||
static bool showEntitiesDebug;
|
||||
|
||||
WorldRenderer(Engine* engine, LevelFrontend& frontend, Player* player);
|
||||
WorldRenderer(Engine& engine, LevelFrontend& frontend, Player& player);
|
||||
~WorldRenderer();
|
||||
|
||||
void draw(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue