2023-04-09 21:44:17 +02:00
|
|
|
#ifndef RENDERER_H
|
|
|
|
#define RENDERER_H
|
|
|
|
|
2023-04-29 14:54:43 +02:00
|
|
|
#include <oneapi/tbb/concurrent_unordered_set.h>
|
|
|
|
|
|
|
|
#include "chunk.hpp"
|
2023-04-09 21:44:17 +02:00
|
|
|
#include "shader.hpp"
|
|
|
|
|
|
|
|
namespace renderer{
|
|
|
|
void init();
|
|
|
|
void render();
|
|
|
|
void destroy();
|
|
|
|
Shader* getRenderShader();
|
2023-04-29 14:54:43 +02:00
|
|
|
oneapi::tbb::concurrent_unordered_set<Chunk::Chunk*>& getChunksToRender();
|
2023-04-09 21:44:17 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|