add particles.emit(...) (WIP)

This commit is contained in:
MihailRis
2024-11-03 16:01:07 +03:00
parent 9728c674fc
commit c8187c5f25
14 changed files with 125 additions and 47 deletions
+5
View File
@@ -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();
}