diff options
| author | 0undefined <oscar@nelin.dk> | 2026-02-19 01:39:46 +0000 |
|---|---|---|
| committer | 0undefined <oscar@nelin.dk> | 2026-02-19 01:39:46 +0000 |
| commit | eef15506347455593d0daf1159eaa1b2c5097802 (patch) | |
| tree | bd80d01ae0a5fae17a1e120c9630910c275a6971 /state_mainstate/include/states/mainstate.h | |
| parent | d623fb2cc40cb3648441f1818e172637b108f6a1 (diff) | |
Add chunking
Diffstat (limited to 'state_mainstate/include/states/mainstate.h')
| -rw-r--r-- | state_mainstate/include/states/mainstate.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/state_mainstate/include/states/mainstate.h b/state_mainstate/include/states/mainstate.h index 03c75d9..5f04a84 100644 --- a/state_mainstate/include/states/mainstate.h +++ b/state_mainstate/include/states/mainstate.h @@ -9,17 +9,14 @@ #include <cglm/cglm.h> -#define WORLD_HEIGHT 32 -#define WORLD_WIDTH 32 -#define WORLD_LENGTH 32 -#define WORLD_SIZE (WORLD_HEIGHT * WORLD_LENGTH * WORLD_WIDTH) +#include <worldgen.h> typedef struct mainstate_state { /* Resources */ Shader shaders[10]; RenderBatch terrain; RenderObject objects[10]; - u8 world[WORLD_HEIGHT * WORLD_WIDTH * WORLD_LENGTH]; + u8 world[WORLD_SIZE * CHUNK_SIZE]; i_ctx input_ctx; binding_t input_bindings[10]; vec3 cam_dir; |
