summaryrefslogtreecommitdiff
path: root/src/minecraft.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/minecraft.hpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/minecraft.hpp b/src/minecraft.hpp
index 5639ac7..59871b2 100755
--- a/src/minecraft.hpp
+++ b/src/minecraft.hpp
@@ -3,8 +3,8 @@
#include "xe_engine.hpp"
#include "player_controller.hpp"
-#include "chunk_renderer.hpp"
#include "chunk.hpp"
+#include "world.hpp"
#define GLM_FORCE_RADIANS
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
@@ -23,24 +23,13 @@ class Minecraft {
Minecraft();
~Minecraft();
- Minecraft(const Minecraft &) = delete;
- Minecraft operator=(const Minecraft &) = delete;
-
void run();
private:
static constexpr int WIDTH = 800;
static constexpr int HEIGHT = 600;
- static constexpr int RENDER_DISTANCE = 10;
-
- void createGameObjects(xe::GameObject& viewer);
- void reloadLoadedChunks(xe::GameObject& viewer);
-
-
- int viewX, viewZ;
- xe::Engine xeEngine;
- std::vector<xe::GameObject> loadedChunks;
+ xe::Engine engine;
};
} \ No newline at end of file