summary refs log tree commit diff
path: root/src/World/Generation/ChunkMeshing.hpp
blob: dd9446be58ceaf4b3791d9061eb719ca77ef1759 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include "../../GFX/Mesh.hpp"
#include "../Chunk.hpp"

namespace MC::World::Generation::ChunkMeshing {

struct ChunkNeighbors {
    Chunk *north, *east, *south, *west;
    Chunk *north_east, *south_east, *south_west, *north_west;
};
GFX::Mesh create_mesh_for_chunk(Chunk& chunk, const ChunkNeighbors& neighbors);

}