mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
remove unnecessary shared_ptrs from ChunksRenderer and ChunkMesh
This commit is contained in:
parent
ebc890bdd6
commit
71788e4eb9
4 changed files with 21 additions and 29 deletions
|
|
@ -65,13 +65,13 @@ public:
|
|||
);
|
||||
virtual ~ChunksRenderer();
|
||||
|
||||
std::shared_ptr<Mesh> render(
|
||||
const Mesh* render(
|
||||
const std::shared_ptr<Chunk>& chunk, bool important
|
||||
);
|
||||
void unload(const Chunk* chunk);
|
||||
void clear();
|
||||
|
||||
std::shared_ptr<Mesh> getOrRender(
|
||||
const Mesh* getOrRender(
|
||||
const std::shared_ptr<Chunk>& chunk, bool important
|
||||
);
|
||||
void drawChunks(const Camera& camera, Shader& shader);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue