Krig Game Engine
Loading...
Searching...
No Matches
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
Matrix.h
Representation of 4x4 matrix with common matrix operations.
Vector.h
Represent and operate on vectors.
Object
Definition
Object.h:35
Particle
Definition
ParticleSystem.h:17
Vector
Definition
Vector.h:15
Generated on
for Krig Game Engine by
1.16.1