summaryrefslogtreecommitdiff
path: root/src/first_app.hpp
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2022-09-27 17:03:43 -0400
committerTyler Murphy <tylermurphy534@gmail.com>2022-09-27 17:03:43 -0400
commit9b60b862e58905780bf47f69a34522fde046ebea (patch)
treebda8f9c998cdeec6ad1a5b4fb6e60800dbaca8ad /src/first_app.hpp
parentasync chunk meshing (diff)
downloadminecraftvulkan-9b60b862e58905780bf47f69a34522fde046ebea.tar.gz
minecraftvulkan-9b60b862e58905780bf47f69a34522fde046ebea.tar.bz2
minecraftvulkan-9b60b862e58905780bf47f69a34522fde046ebea.zip
procedural chunk loading
Diffstat (limited to 'src/first_app.hpp')
-rwxr-xr-xsrc/first_app.hpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/first_app.hpp b/src/first_app.hpp
index 3339b04..d361296 100755
--- a/src/first_app.hpp
+++ b/src/first_app.hpp
@@ -4,6 +4,7 @@
#include "keyboard_movement_controller.hpp"
#include "simple_renderer.hpp"
+#include "chunk.hpp"
#define GLM_FORCE_RADIANS
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
@@ -31,9 +32,15 @@ class FirstApp {
static constexpr int WIDTH = 800;
static constexpr int HEIGHT = 600;
+ static constexpr int RENDER_DISTANCE = 10;
- xe::Engine xeEngine;
+ void createGameObjects(xe::GameObject& viewer);
+ void reloadLoadedChunks(xe::GameObject& viewer);
+
+
+ int viewX, viewZ;
- std::vector<xe::GameObject> gameObjects;
+ xe::Engine xeEngine;
+ std::vector<xe::GameObject> loadedChunks;
};
} \ No newline at end of file