diff options
| author | Mel <einebeere@gmail.com> | 2023-06-30 15:15:00 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2023-06-30 15:15:00 +0200 |
| commit | 424d00eaf7335e1c6427f40260d55782c3fd902c (patch) | |
| tree | 62550b085078d84c8a48cbb01f4f7738bfeeb3da /src/World/ChunkMeshing.hpp | |
| parent | 6d61b17c4289185d59d37caae8070a40e91fba40 (diff) | |
| download | meowcraft-424d00eaf7335e1c6427f40260d55782c3fd902c.tar.zst meowcraft-424d00eaf7335e1c6427f40260d55782c3fd902c.zip | |
Avoid per-frame chunk copies and don't render block faces between chunks
Diffstat (limited to 'src/World/ChunkMeshing.hpp')
| -rw-r--r-- | src/World/ChunkMeshing.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/World/ChunkMeshing.hpp b/src/World/ChunkMeshing.hpp new file mode 100644 index 0000000..1348817 --- /dev/null +++ b/src/World/ChunkMeshing.hpp @@ -0,0 +1,11 @@ +#pragma once + +#include "../GFX/Mesh.hpp" +#include "Chunk.hpp" + +namespace MC::World::ChunkMeshing { + +struct ChunkNeighbors { Chunk &north, &east, &south, &west; }; +GFX::Mesh create_mesh_for_chunk(Chunk& chunk, ChunkNeighbors neighbors); + +} |
