#ifndef CHUNKMESH_H #define CHUNKMESH_H #include #include #include #include #include #include "chunk.hpp" #include "globals.hpp" #include "shader.hpp" namespace chunkmesher{ struct MeshData{ Chunk::Chunk* chunk; GLuint numVertices{0}; std::vector vertices; std::vector extents; std::vector texinfo; }; oneapi::tbb::concurrent_queue& getMeshDataQueue(); void mesh(Chunk::Chunk* chunk); void sendtogpu(MeshData* mesh_data); void quad(MeshData* mesh_data, glm::vec3 bottomLeft, glm::vec3 topLeft, glm::vec3 topRight, glm::vec3 bottomRight, glm::vec3 normal, Block block, int dim, bool backFace); } #endif