mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add particles.stop(...)
This commit is contained in:
parent
0cd5136fdb
commit
3ecb7b447f
4 changed files with 16 additions and 10 deletions
|
|
@ -535,10 +535,6 @@ void WorldRenderer::drawBorders(
|
|||
lineBatch->flush();
|
||||
}
|
||||
|
||||
void WorldRenderer::addEmitter(std::unique_ptr<Emitter> emitter) {
|
||||
particles->add(std::move(emitter));
|
||||
}
|
||||
|
||||
void WorldRenderer::clear() {
|
||||
renderer->clear();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@
|
|||
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
#include "typedefs.hpp"
|
||||
|
||||
class Level;
|
||||
class Player;
|
||||
class Camera;
|
||||
|
|
@ -42,7 +44,6 @@ class WorldRenderer {
|
|||
std::unique_ptr<Skybox> skybox;
|
||||
std::unique_ptr<Batch3D> batch3d;
|
||||
std::unique_ptr<ModelBatch> modelBatch;
|
||||
std::unique_ptr<ParticlesRenderer> particles;
|
||||
|
||||
float timer = 0.0f;
|
||||
|
||||
|
|
@ -80,6 +81,8 @@ class WorldRenderer {
|
|||
float fogFactor
|
||||
);
|
||||
public:
|
||||
std::unique_ptr<ParticlesRenderer> particles;
|
||||
|
||||
static bool showChunkBorders;
|
||||
static bool showEntitiesDebug;
|
||||
|
||||
|
|
@ -108,7 +111,5 @@ public:
|
|||
bool pause
|
||||
);
|
||||
|
||||
void addEmitter(std::unique_ptr<Emitter> emitter);
|
||||
|
||||
void clear();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue