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_block.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_block.h')
| -rw-r--r-- | src/engine/M_block.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/engine/M_block.h b/src/engine/M_block.h new file mode 100644 index 0000000..852830c --- /dev/null +++ b/src/engine/M_block.h @@ -0,0 +1,26 @@ +#pragma once + +//#include "M_types.ḥ" +#include "M_object.h" + +typedef struct { + unsigned short type; +} M_Block; + +typedef struct { + M_Object obj; +} M_BlockType; + +typedef struct { + M_BlockType *blocks; + unsigned short block_amount; + unsigned short size; +} M_BlockAtlas; + +void M_createBlock(M_Block *block, unsigned short type); + +unsigned short M_createBlockType(M_Object obj, M_BlockAtlas *atl); + +M_BlockAtlas M_createBlockAtlas(); + +void M_killBlockAtlas(M_BlockAtlas *atl); |
