| 123456789101112131415161718192021222324252627 |
- #pragma once
- // STD
- #include <unordered_map>
- // Libs
- #define GLM_ENABLE_EXPERIMENTAL
- #include <gtx/hash.hpp>
- // Coral
- #include "coral_mesh.h"
- #include "voxel_data.h"
- struct Chunk
- {
- glm::ivec2 coord{};
- glm::ivec2 world_position{};
- bool is_active{ false };
- bool is_initialized{ false };
- std::shared_ptr<coral_3d::coral_mesh> mesh{};
- std::vector<coral_3d::Vertex> vertices{};
- std::vector<uint32_t> indices{};
- std::unordered_map<glm::vec3, BlockType> block_map{};
- };
|