add particles.emit(...) (WIP)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user