mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
add particles.emit(...) (WIP)
This commit is contained in:
parent
9728c674fc
commit
c8187c5f25
14 changed files with 125 additions and 47 deletions
|
|
@ -44,6 +44,7 @@
|
|||
#include "ChunksRenderer.hpp"
|
||||
#include "ModelBatch.hpp"
|
||||
#include "Skybox.hpp"
|
||||
#include "Emitter.hpp"
|
||||
|
||||
bool WorldRenderer::showChunkBorders = false;
|
||||
bool WorldRenderer::showEntitiesDebug = false;
|
||||
|
|
@ -534,6 +535,10 @@ void WorldRenderer::drawBorders(
|
|||
lineBatch->flush();
|
||||
}
|
||||
|
||||
void WorldRenderer::addEmitter(std::unique_ptr<Emitter> emitter) {
|
||||
particles->add(std::move(emitter));
|
||||
}
|
||||
|
||||
void WorldRenderer::clear() {
|
||||
renderer->clear();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue