voxel-engine/include/renderer.hpp

24 lines
512 B
C++
Raw Normal View History

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