diff options
| author | DrNuget <drnuget@outlook.com> | 2026-01-07 04:58:54 +0200 |
|---|---|---|
| committer | DrNuget <drnuget@outlook.com> | 2026-01-07 04:58:54 +0200 |
| commit | 7f3aa1cff755d21d972457b05c140cf465b9fa19 (patch) | |
| tree | 748b74a65d71ead9d0d7ade533074c5a643076d7 /src/engine/M_chunk.h | |
| parent | 67592a66dd9bcc4d79d23624a9abfd8f2c6e92ff (diff) | |
| download | mnm-7f3aa1cff755d21d972457b05c140cf465b9fa19.tar.gz | |
some basic 3D rendering and the base for chunk generation etc.
Diffstat (limited to 'src/engine/M_chunk.h')
| -rw-r--r-- | src/engine/M_chunk.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/engine/M_chunk.h b/src/engine/M_chunk.h new file mode 100644 index 0000000..be1d4f1 --- /dev/null +++ b/src/engine/M_chunk.h @@ -0,0 +1,17 @@ +#pragma once + +#include "M_object.h" +#include "M_block.h" +#include "M_game.h" + +#define M_CHUNK_SIZE 32 + + +typedef struct { + M_Block blocks[M_CHUNK_SIZE][M_CHUNK_SIZE][M_CHUNK_SIZE]; + int x, y, z; +} M_Chunk; + +void M_generateChunk(M_Chunk *chunk); + +void M_renderChunk(M_Game *game, M_Chunk *chunk); |
