#ifndef RENDERER_H #define RENDERER_H #include #include #include "chunk.hpp" #include "chunkmesher.hpp" #include "shader.hpp" namespace renderer{ typedef oneapi::tbb::concurrent_unordered_set RenderSet; void init(GLFWwindow* window); void render(); void resize_framebuffer(int width, int height); void framebuffer_size_callback(GLFWwindow *window, int width, int height); void destroy(); void saveScreenshot(bool forceFullHD=false); Shader* getRenderShader(); RenderSet& getChunksToRender(); oneapi::tbb::concurrent_queue& getMeshDataQueue(); }; #endif