diff options
Diffstat (limited to 'src/first_app.hpp')
-rwxr-xr-x | src/first_app.hpp | 11 |
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 |