diff options
author | David Walter Seikel | 2016-03-28 22:28:34 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-03-28 22:28:34 +1000 |
commit | 7028cbe09c688437910a25623098762bf0fa592d (patch) | |
tree | 10b5af58277d9880380c2251f109325542c4e6eb /libraries/irrlicht-1.8.1/source/Irrlicht/CParticleFadeOutAffector.h | |
parent | Move lemon to the src/others directory. (diff) | |
download | SledjHamr-7028cbe09c688437910a25623098762bf0fa592d.zip SledjHamr-7028cbe09c688437910a25623098762bf0fa592d.tar.gz SledjHamr-7028cbe09c688437910a25623098762bf0fa592d.tar.bz2 SledjHamr-7028cbe09c688437910a25623098762bf0fa592d.tar.xz |
Move Irrlicht to src/others.
Diffstat (limited to 'libraries/irrlicht-1.8.1/source/Irrlicht/CParticleFadeOutAffector.h')
-rw-r--r-- | libraries/irrlicht-1.8.1/source/Irrlicht/CParticleFadeOutAffector.h | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/libraries/irrlicht-1.8.1/source/Irrlicht/CParticleFadeOutAffector.h b/libraries/irrlicht-1.8.1/source/Irrlicht/CParticleFadeOutAffector.h deleted file mode 100644 index b39d559..0000000 --- a/libraries/irrlicht-1.8.1/source/Irrlicht/CParticleFadeOutAffector.h +++ /dev/null | |||
@@ -1,63 +0,0 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt | ||
2 | // This file is part of the "Irrlicht Engine". | ||
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | ||
4 | |||
5 | #ifndef __C_PARTICLE_FADE_OUT_AFFECTOR_H_INCLUDED__ | ||
6 | #define __C_PARTICLE_FADE_OUT_AFFECTOR_H_INCLUDED__ | ||
7 | |||
8 | #include "IParticleFadeOutAffector.h" | ||
9 | #include "SColor.h" | ||
10 | |||
11 | namespace irr | ||
12 | { | ||
13 | namespace scene | ||
14 | { | ||
15 | |||
16 | //! Particle Affector for fading out a color | ||
17 | class CParticleFadeOutAffector : public IParticleFadeOutAffector | ||
18 | { | ||
19 | public: | ||
20 | |||
21 | CParticleFadeOutAffector(const video::SColor& targetColor, u32 fadeOutTime); | ||
22 | |||
23 | //! Affects a particle. | ||
24 | virtual void affect(u32 now, SParticle* particlearray, u32 count); | ||
25 | |||
26 | //! Sets the targetColor, i.e. the color the particles will interpolate | ||
27 | //! to over time. | ||
28 | virtual void setTargetColor( const video::SColor& targetColor ) { TargetColor = targetColor; } | ||
29 | |||
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; } | ||
32 | |||
33 | //! Sets the targetColor, i.e. the color the particles will interpolate | ||
34 | //! to over time. | ||
35 | virtual const video::SColor& getTargetColor() const { return TargetColor; } | ||
36 | |||
37 | //! Sets the amount of time it takes for each particle to fade out. | ||
38 | virtual u32 getFadeOutTime() const { return static_cast<u32>(FadeOutTime); } | ||
39 | |||
40 | //! Writes attributes of the object. | ||
41 | //! Implement this to expose the attributes of your scene node animator for | ||
42 | //! scripting languages, editors, debuggers or xml serialization purposes. | ||
43 | virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const; | ||
44 | |||
45 | //! Reads attributes of the object. | ||
46 | //! Implement this to set the attributes of your scene node animator for | ||
47 | //! scripting languages, editors, debuggers or xml deserialization purposes. | ||
48 | //! \param startIndex: start index where to start reading attributes. | ||
49 | //! \return: returns last index of an attribute read by this affector | ||
50 | virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options); | ||
51 | |||
52 | private: | ||
53 | |||
54 | video::SColor TargetColor; | ||
55 | f32 FadeOutTime; | ||
56 | }; | ||
57 | |||
58 | } // end namespace scene | ||
59 | } // end namespace irr | ||
60 | |||
61 | |||
62 | #endif | ||
63 | |||