From 6ed978051668c08f5a957c97570f364dd580c807 Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 21 Oct 2022 01:03:18 +0200 Subject: Namespace and Folder refactor --- src/World/Chunk.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/World/Chunk.hpp') diff --git a/src/World/Chunk.hpp b/src/World/Chunk.hpp index 0a5f269..7a93f5a 100644 --- a/src/World/Chunk.hpp +++ b/src/World/Chunk.hpp @@ -1,22 +1,23 @@ #pragma once #include +#include #include "BlockType.hpp" -#include "../Mesh.hpp" +#include "../GFX/Mesh.hpp" #include "BlockSide.hpp" +#include "../GFX/Binder.hpp" #define CHUNK_WIDTH 16 #define CHUNK_HEIGHT 32 -namespace MC { +namespace MC::World { class Chunk { public: Chunk() : m_blocks{} {}; void set(uint32_t x, uint32_t y, uint32_t z, BlockType type); - - Mesh mesh(); + GFX::Mesh mesh(); private: bool is_face_visible(uint32_t x, uint32_t y, uint32_t z, BlockSide side); -- cgit 1.4.1