Refactor, shader fix

This commit is contained in:
MihailRis
2022-10-01 18:02:48 +03:00
parent 6965bbe809
commit fbce36a05c
5 changed files with 26 additions and 17 deletions
+3
View File
@@ -1,6 +1,7 @@
#include "Level.h"
#include "../lighting/Lighting.h"
#include "../voxels/ChunksController.h"
#include "../player_control.h"
Level::Level(World* world, Player* player, Chunks* chunks, PhysicsSolver* physics) :
player(player),
@@ -8,6 +9,7 @@ Level::Level(World* world, Player* player, Chunks* chunks, PhysicsSolver* physic
physics(physics) {
lighting = new Lighting(chunks);
chunksController = new ChunksController(world, chunks, lighting);
playerController = new PlayerController(this);
}
Level::~Level(){
@@ -16,4 +18,5 @@ Level::~Level(){
delete player;
delete lighting;
delete chunksController;
delete playerController;
}