mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
minor refactor
This commit is contained in:
parent
781ab0e892
commit
dc660edc74
2 changed files with 18 additions and 22 deletions
|
|
@ -20,7 +20,7 @@ class ContentGfxCache;
|
|||
|
||||
struct RendererResult {
|
||||
glm::ivec2 key;
|
||||
std::shared_ptr<BlocksRenderer> renderer;
|
||||
BlocksRenderer* renderer;
|
||||
};
|
||||
|
||||
class ChunksRenderer {
|
||||
|
|
@ -39,7 +39,7 @@ public:
|
|||
virtual ~ChunksRenderer();
|
||||
|
||||
std::shared_ptr<Mesh> render(std::shared_ptr<Chunk> chunk, bool important);
|
||||
void unload(Chunk* chunk);
|
||||
void unload(const Chunk* chunk);
|
||||
|
||||
std::shared_ptr<Mesh> getOrRender(std::shared_ptr<Chunk> chunk, bool important);
|
||||
std::shared_ptr<Mesh> get(Chunk* chunk);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue