diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/include/IParticleAffector.h | 144 |
1 files changed, 72 insertions, 72 deletions
diff --git a/libraries/irrlicht-1.8/include/IParticleAffector.h b/libraries/irrlicht-1.8/include/IParticleAffector.h index e2b83e8..f5a18c6 100644 --- a/libraries/irrlicht-1.8/include/IParticleAffector.h +++ b/libraries/irrlicht-1.8/include/IParticleAffector.h | |||
@@ -1,72 +1,72 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt | 1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt |
2 | // This file is part of the "Irrlicht Engine". | 2 | // This file is part of the "Irrlicht Engine". |
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | 3 | // For conditions of distribution and use, see copyright notice in irrlicht.h |
4 | 4 | ||
5 | #ifndef __I_PARTICLE_AFFECTOR_H_INCLUDED__ | 5 | #ifndef __I_PARTICLE_AFFECTOR_H_INCLUDED__ |
6 | #define __I_PARTICLE_AFFECTOR_H_INCLUDED__ | 6 | #define __I_PARTICLE_AFFECTOR_H_INCLUDED__ |
7 | 7 | ||
8 | #include "IAttributeExchangingObject.h" | 8 | #include "IAttributeExchangingObject.h" |
9 | #include "SParticle.h" | 9 | #include "SParticle.h" |
10 | 10 | ||
11 | namespace irr | 11 | namespace irr |
12 | { | 12 | { |
13 | namespace scene | 13 | namespace scene |
14 | { | 14 | { |
15 | 15 | ||
16 | //! Types of built in particle affectors | 16 | //! Types of built in particle affectors |
17 | enum E_PARTICLE_AFFECTOR_TYPE | 17 | enum E_PARTICLE_AFFECTOR_TYPE |
18 | { | 18 | { |
19 | EPAT_NONE = 0, | 19 | EPAT_NONE = 0, |
20 | EPAT_ATTRACT, | 20 | EPAT_ATTRACT, |
21 | EPAT_FADE_OUT, | 21 | EPAT_FADE_OUT, |
22 | EPAT_GRAVITY, | 22 | EPAT_GRAVITY, |
23 | EPAT_ROTATE, | 23 | EPAT_ROTATE, |
24 | EPAT_SCALE, | 24 | EPAT_SCALE, |
25 | EPAT_COUNT | 25 | EPAT_COUNT |
26 | }; | 26 | }; |
27 | 27 | ||
28 | //! Names for built in particle affectors | 28 | //! Names for built in particle affectors |
29 | const c8* const ParticleAffectorTypeNames[] = | 29 | const c8* const ParticleAffectorTypeNames[] = |
30 | { | 30 | { |
31 | "None", | 31 | "None", |
32 | "Attract", | 32 | "Attract", |
33 | "FadeOut", | 33 | "FadeOut", |
34 | "Gravity", | 34 | "Gravity", |
35 | "Rotate", | 35 | "Rotate", |
36 | "Scale", | 36 | "Scale", |
37 | 0 | 37 | 0 |
38 | }; | 38 | }; |
39 | 39 | ||
40 | //! A particle affector modifies particles. | 40 | //! A particle affector modifies particles. |
41 | class IParticleAffector : public virtual io::IAttributeExchangingObject | 41 | class IParticleAffector : public virtual io::IAttributeExchangingObject |
42 | { | 42 | { |
43 | public: | 43 | public: |
44 | 44 | ||
45 | //! constructor | 45 | //! constructor |
46 | IParticleAffector() : Enabled(true) {} | 46 | IParticleAffector() : Enabled(true) {} |
47 | 47 | ||
48 | //! Affects an array of particles. | 48 | //! Affects an array of particles. |
49 | /** \param now Current time. (Same as ITimer::getTime() would return) | 49 | /** \param now Current time. (Same as ITimer::getTime() would return) |
50 | \param particlearray Array of particles. | 50 | \param particlearray Array of particles. |
51 | \param count Amount of particles in array. */ | 51 | \param count Amount of particles in array. */ |
52 | virtual void affect(u32 now, SParticle* particlearray, u32 count) = 0; | 52 | virtual void affect(u32 now, SParticle* particlearray, u32 count) = 0; |
53 | 53 | ||
54 | //! Sets whether or not the affector is currently enabled. | 54 | //! Sets whether or not the affector is currently enabled. |
55 | virtual void setEnabled(bool enabled) { Enabled = enabled; } | 55 | virtual void setEnabled(bool enabled) { Enabled = enabled; } |
56 | 56 | ||
57 | //! Gets whether or not the affector is currently enabled. | 57 | //! Gets whether or not the affector is currently enabled. |
58 | virtual bool getEnabled() const { return Enabled; } | 58 | virtual bool getEnabled() const { return Enabled; } |
59 | 59 | ||
60 | //! Get emitter type | 60 | //! Get emitter type |
61 | virtual E_PARTICLE_AFFECTOR_TYPE getType() const = 0; | 61 | virtual E_PARTICLE_AFFECTOR_TYPE getType() const = 0; |
62 | 62 | ||
63 | protected: | 63 | protected: |
64 | bool Enabled; | 64 | bool Enabled; |
65 | }; | 65 | }; |
66 | 66 | ||
67 | } // end namespace scene | 67 | } // end namespace scene |
68 | } // end namespace irr | 68 | } // end namespace irr |
69 | 69 | ||
70 | 70 | ||
71 | #endif | 71 | #endif |
72 | 72 | ||