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