Krig Game Engine
Loading...
Searching...
No Matches
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
15class Object;
16
17struct Particle {
18 Vector position;
19 Vector velocity;
20 float intensity;
21};
22
23class 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
Representation of 4x4 matrix with common matrix operations.
Represent and operate on vectors.
Definition Object.h:35
Definition ParticleSystem.h:17
Definition Vector.h:15