Last change
on this file since 3925 was
3925,
checked in by bensch, 19 years ago
|
orxonox/branches/particleEngine: added the ParticleSystem class
|
File size:
526 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 | |
---|
13 | |
---|
14 | //! A struct for one Particle |
---|
15 | typedef struct Particle |
---|
16 | { |
---|
17 | float timeToLive; |
---|
18 | Vector position; |
---|
19 | Quaternion rotation; |
---|
20 | |
---|
21 | |
---|
22 | }; |
---|
23 | |
---|
24 | //! A class to handle particle Systems |
---|
25 | class ParticleSystem : public BaseObject { |
---|
26 | |
---|
27 | public: |
---|
28 | ParticleSystem(); |
---|
29 | virtual ~ParticleSystem(); |
---|
30 | |
---|
31 | |
---|
32 | private: |
---|
33 | |
---|
34 | int particleCount; |
---|
35 | |
---|
36 | Particle* particles; |
---|
37 | |
---|
38 | }; |
---|
39 | |
---|
40 | #endif /* _PARTICLE_SYSTEM_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.