aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/ParticleSystem.hpp
blob: f6704153cb2e40c2835343ccfbbaaf91bd939aaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include <vector>
#include "ParticleEmitter.hpp"

class ParticleSystem {
public:
    ParticleSystem();
    void update(float deltaTime, std::vector<ParticleEmitter>& emitters);
private:
    void emitParticle(ParticleEmitter &emitter); //emits a new particle

    float m_elapsedTime; //elapsed time since the last emission
};