mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Refactor, shader fix
This commit is contained in:
parent
6965bbe809
commit
fbce36a05c
5 changed files with 26 additions and 17 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue