commit 0bc493e
uint
·
2026-07-31 14:31:23 +0000 UTC
parent 0970030
add chunk_mesh_... prototype documentation
3 files changed,
+3,
-5
M
TODO
+0,
-1
1@@ -1,6 +1,5 @@
2 uint:
3 [-] Wireframe
4-[-] Face hiding
5 [-] Chunk meshing
6 [-] Greedily
7 [-] Fonts
+3,
-2
1@@ -33,10 +33,11 @@ BlockType chunk_get(const Chunk* chunk, i32 x, i32 y, i32 z);
2 the future? who knows */
3 void chunk_set(Chunk* chunk, i32 x, i32 y, i32 z, BlockType block);
4
5-/**/
6+/* create a mesh for chunk by generating vertices
7+ and indices for each (visible) face */
8 i8 chunk_mesh_create(Chunk* chunk);
9
10-/**/
11+/* destroy a chunks mesh */
12 void chunk_mesh_destroy(Chunk* chunk);
13
14 #endif /* CHUNK_H */
+0,
-2
1@@ -144,8 +144,6 @@ void chunk_set(Chunk* chunk, i32 x, i32 y, i32 z, BlockType block)
2 chunk->blocks[x][y][z] = block;
3 }
4
5-/* create a mesh for chunk by generating vertices
6- and indices for each (visible) face */
7 i8 chunk_mesh_create(Chunk* chunk)
8 {
9 MGVertex* vertices[BLOCK_LAST];