Krig Game Engine
src
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
23
class
ParticleSystem
{
24
public
:
25
ParticleSystem
();
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
Object
Definition:
Object.h:35
Particle
Definition:
ParticleSystem.h:17
ParticleSystem
Definition:
ParticleSystem.h:23
Vector
Definition:
Vector.h:15
Vector.h
Represent and operate on vectors.
Generated on Wed May 3 2017 00:46:51 for Krig Game Engine by
1.8.13