diff options
author | David Walter Seikel | 2013-01-13 18:54:10 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 18:54:10 +1000 |
commit | 959831f4ef5a3e797f576c3de08cd65032c997ad (patch) | |
tree | e7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/source/Irrlicht/CParticleFadeOutAffector.h | |
parent | Add info about changes to Irrlicht. (diff) | |
download | SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.zip SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.gz SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.bz2 SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.xz |
Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard.
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/CParticleFadeOutAffector.h | 126 |
1 files changed, 63 insertions, 63 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CParticleFadeOutAffector.h b/libraries/irrlicht-1.8/source/Irrlicht/CParticleFadeOutAffector.h index b39d559..5d8d3a2 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/CParticleFadeOutAffector.h +++ b/libraries/irrlicht-1.8/source/Irrlicht/CParticleFadeOutAffector.h | |||
@@ -1,63 +1,63 @@ | |||
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 __C_PARTICLE_FADE_OUT_AFFECTOR_H_INCLUDED__ | 5 | #ifndef __C_PARTICLE_FADE_OUT_AFFECTOR_H_INCLUDED__ |
6 | #define __C_PARTICLE_FADE_OUT_AFFECTOR_H_INCLUDED__ | 6 | #define __C_PARTICLE_FADE_OUT_AFFECTOR_H_INCLUDED__ |
7 | 7 | ||
8 | #include "IParticleFadeOutAffector.h" | 8 | #include "IParticleFadeOutAffector.h" |
9 | #include "SColor.h" | 9 | #include "SColor.h" |
10 | 10 | ||
11 | namespace irr | 11 | namespace irr |
12 | { | 12 | { |
13 | namespace scene | 13 | namespace scene |
14 | { | 14 | { |
15 | 15 | ||
16 | //! Particle Affector for fading out a color | 16 | //! Particle Affector for fading out a color |
17 | class CParticleFadeOutAffector : public IParticleFadeOutAffector | 17 | class CParticleFadeOutAffector : public IParticleFadeOutAffector |
18 | { | 18 | { |
19 | public: | 19 | public: |
20 | 20 | ||
21 | CParticleFadeOutAffector(const video::SColor& targetColor, u32 fadeOutTime); | 21 | CParticleFadeOutAffector(const video::SColor& targetColor, u32 fadeOutTime); |
22 | 22 | ||
23 | //! Affects a particle. | 23 | //! Affects a particle. |
24 | virtual void affect(u32 now, SParticle* particlearray, u32 count); | 24 | virtual void affect(u32 now, SParticle* particlearray, u32 count); |
25 | 25 | ||
26 | //! Sets the targetColor, i.e. the color the particles will interpolate | 26 | //! Sets the targetColor, i.e. the color the particles will interpolate |
27 | //! to over time. | 27 | //! to over time. |
28 | virtual void setTargetColor( const video::SColor& targetColor ) { TargetColor = targetColor; } | 28 | virtual void setTargetColor( const video::SColor& targetColor ) { TargetColor = targetColor; } |
29 | 29 | ||
30 | //! Sets the amount of time it takes for each particle to fade out. | 30 | //! Sets the amount of time it takes for each particle to fade out. |
31 | virtual void setFadeOutTime( u32 fadeOutTime ) { FadeOutTime = fadeOutTime ? static_cast<f32>(fadeOutTime) : 1.0f; } | 31 | virtual void setFadeOutTime( u32 fadeOutTime ) { FadeOutTime = fadeOutTime ? static_cast<f32>(fadeOutTime) : 1.0f; } |
32 | 32 | ||
33 | //! Sets the targetColor, i.e. the color the particles will interpolate | 33 | //! Sets the targetColor, i.e. the color the particles will interpolate |
34 | //! to over time. | 34 | //! to over time. |
35 | virtual const video::SColor& getTargetColor() const { return TargetColor; } | 35 | virtual const video::SColor& getTargetColor() const { return TargetColor; } |
36 | 36 | ||
37 | //! Sets the amount of time it takes for each particle to fade out. | 37 | //! Sets the amount of time it takes for each particle to fade out. |
38 | virtual u32 getFadeOutTime() const { return static_cast<u32>(FadeOutTime); } | 38 | virtual u32 getFadeOutTime() const { return static_cast<u32>(FadeOutTime); } |
39 | 39 | ||
40 | //! Writes attributes of the object. | 40 | //! Writes attributes of the object. |
41 | //! Implement this to expose the attributes of your scene node animator for | 41 | //! Implement this to expose the attributes of your scene node animator for |
42 | //! scripting languages, editors, debuggers or xml serialization purposes. | 42 | //! scripting languages, editors, debuggers or xml serialization purposes. |
43 | virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const; | 43 | virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const; |
44 | 44 | ||
45 | //! Reads attributes of the object. | 45 | //! Reads attributes of the object. |
46 | //! Implement this to set the attributes of your scene node animator for | 46 | //! Implement this to set the attributes of your scene node animator for |
47 | //! scripting languages, editors, debuggers or xml deserialization purposes. | 47 | //! scripting languages, editors, debuggers or xml deserialization purposes. |
48 | //! \param startIndex: start index where to start reading attributes. | 48 | //! \param startIndex: start index where to start reading attributes. |
49 | //! \return: returns last index of an attribute read by this affector | 49 | //! \return: returns last index of an attribute read by this affector |
50 | virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options); | 50 | virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options); |
51 | 51 | ||
52 | private: | 52 | private: |
53 | 53 | ||
54 | video::SColor TargetColor; | 54 | video::SColor TargetColor; |
55 | f32 FadeOutTime; | 55 | f32 FadeOutTime; |
56 | }; | 56 | }; |
57 | 57 | ||
58 | } // end namespace scene | 58 | } // end namespace scene |
59 | } // end namespace irr | 59 | } // end namespace irr |
60 | 60 | ||
61 | 61 | ||
62 | #endif | 62 | #endif |
63 | 63 | ||