blob: 7b14f71d569c8ae5741c8f7aa811543fe0d8b4ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma once
#include <vector>
#include "ParticleEmitter.h"
namespace crepe {
class ParticleSystem {
public:
ParticleSystem();
void update(float deltaTime, std::vector<std::reference_wrapper<ParticleEmitter>>& emitters);
private:
void emitParticle(ParticleEmitter &emitter); //emits a new particle
float m_elapsedTime; //elapsed time since the last emission
};
}
|