mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
make BlocksRenderer::createMesh return MeshData & make ChunksRenderer workers have standalone results
This commit is contained in:
parent
4e3064e37b
commit
3e1a82d137
5 changed files with 28 additions and 12 deletions
|
|
@ -9,6 +9,7 @@
|
|||
#include "voxels/Block.hpp"
|
||||
#include "voxels/ChunksStorage.hpp"
|
||||
#include "util/ThreadPool.hpp"
|
||||
#include "graphics/core/MeshData.hpp"
|
||||
|
||||
class Mesh;
|
||||
class Chunk;
|
||||
|
|
@ -19,7 +20,8 @@ struct EngineSettings;
|
|||
|
||||
struct RendererResult {
|
||||
glm::ivec2 key;
|
||||
BlocksRenderer* renderer;
|
||||
bool cancelled;
|
||||
MeshData meshData;
|
||||
};
|
||||
|
||||
class ChunksRenderer {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue