Krig Game Engine
ParticleSystem.h
Go to the documentation of this file.
1 
8 #ifndef _PARTICLE_SYSTEM_H_
9 #define _PARTICLE_SYSTEM_H_
10 
11 #include <GL/glut.h>
12 #include "Matrix.h"
13 #include "Vector.h"
14 
15 class Object;
16 
17 struct Particle {
18  Vector position;
19  Vector velocity;
20  float intensity;
21 };
22 
24  public:
26  virtual ~ParticleSystem();
27 
28  virtual void update(const float&) = 0;
29  virtual void draw() = 0;
30  virtual void init() = 0;
31 
32  protected:
33  virtual void initParticle(const int&) = 0;
34 
35  int maxParticles;
36  int numParticles;
37 
38  float* currentTime;
39  float lastTime;
40 
41  Particle* particles;
42  Object* origin;
43 };
44 
45 #endif
Definition: Object.h:35
Definition: ParticleSystem.h:17
Definition: ParticleSystem.h:23
Definition: Vector.h:15
Represent and operate on vectors.