source:
orxonox.OLD/orxonox/branches/particleEngine/src/lib/graphics/particles/particle_system.h
@
3925
Last change on this file since 3925 was 3925, checked in by bensch, 19 years ago | |
---|---|
File size: 526 bytes |
Rev | Line | |
---|---|---|
[3245] | 1 | /*! |
[3925] | 2 | \file particle_system.h |
[3329] | 3 | |
[3245] | 4 | */ |
[1853] | 5 | |
[3925] | 6 | #ifndef _PARTICLE_SYSTEM_H |
7 | #define _PARTICLE_SYSTEM_H | |
[1853] | 8 | |
[3543] | 9 | #include "base_object.h" |
[3925] | 10 | #include "vector.h" |
11 | // FORWARD DEFINITION | |
[1853] | 12 | |
[3543] | 13 | |
[3925] | 14 | //! A struct for one Particle |
15 | typedef struct Particle | |
16 | { | |
17 | float timeToLive; | |
18 | Vector position; | |
19 | Quaternion rotation; | |
20 | ||
21 | ||
22 | }; | |
[3543] | 23 | |
[3925] | 24 | //! A class to handle particle Systems |
25 | class ParticleSystem : public BaseObject { | |
[2036] | 26 | |
[1904] | 27 | public: |
[3925] | 28 | ParticleSystem(); |
29 | virtual ~ParticleSystem(); | |
[1853] | 30 | |
[3245] | 31 | |
32 | private: | |
33 | ||
[3925] | 34 | int particleCount; |
35 | ||
36 | Particle* particles; | |
37 | ||
[1853] | 38 | }; |
39 | ||
[3925] | 40 | #endif /* _PARTICLE_SYSTEM_H */ |
Note: See TracBrowser
for help on using the repository browser.