-
Notifications
You must be signed in to change notification settings - Fork 0
/
ParticleManager.h
55 lines (40 loc) · 1.5 KB
/
ParticleManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//------------------------------------------------------------------------------
// File: ParticleManager.h
// Desc: Controls the particle systems
//
// Created: 22 September 2005 18:46:21
//
// (c)2005 Neil Wakefield, Lionhead Studios Ltd
//------------------------------------------------------------------------------
#ifndef INCLUSIONGUARD_PARTICLEMANAGER_H
#define INCLUSIONGUARD_PARTICLEMANAGER_H
//------------------------------------------------------------------------------
// Included files:
//------------------------------------------------------------------------------
#include <list>
//------------------------------------------------------------------------------
// Prototypes and declarations:
//------------------------------------------------------------------------------
enum PARTICLE_EFFECT
{
PARTICLE_EFFECT_EXPLOSION,
PARTICLE_EFFECT_STARFIELD,
};
class ParticleEffect;
class GParticleManager
{
public:
static bool Initialise();
static bool Shutdown();
static bool Process();
static bool Render( float frame_delta );
static ParticleEffect* CreateEffect( PARTICLE_EFFECT effect, float pos_x, float pos_y, float size );
static bool DestroyEffect( ParticleEffect* effect );
static void SetStencilEnabled( bool enabled );
private:
typedef std::list< ParticleEffect* > EffectList;
static EffectList Effects;
static EffectList DeadEffects;
static bool Initialised;
};
#endif //INCLUSIONGUARD_PARTICLEMANAGER_H