Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/particleEngine/src/lib/graphics/particles/particle_system.h @ 3926

Last change on this file since 3926 was 3926, checked in by patrick, 19 years ago

orxonox/trunk/lib/particles: added an abstract emitter class with some attributes, not yet finished

File size: 574 bytes
Line 
1/*!
2    \file particle_system.h
3
4*/
5
6#ifndef _PARTICLE_SYSTEM_H
7#define _PARTICLE_SYSTEM_H
8
9#include "base_object.h"
10#include "vector.h"
11// FORWARD DEFINITION
12
13class Material;
14class Vector;
15
16
17//! A struct for one Particle
18typedef struct Particle
19{
20  float timeToLive;
21  Vector position;
22  Quaternion rotation;
23  Material* material; 
24};
25
26//! A class to handle particle Systems
27class ParticleSystem : public BaseObject {
28
29 public:
30  ParticleSystem();
31  virtual ~ParticleSystem();
32
33
34 private:
35
36  int particleCount;
37
38  Particle* particles;
39};
40
41#endif /* _PARTICLE_SYSTEM_H */
Note: See TracBrowser for help on using the repository browser.