aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CParticleScaleAffector.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 17:24:39 +1000
committerDavid Walter Seikel2013-01-13 17:24:39 +1000
commit393b5cd1dc438872af89d334ef6e5fcc59f27d47 (patch)
tree6a14521219942a08a1b95cb2f5a923a9edd60f63 /libraries/irrlicht-1.8/source/Irrlicht/CParticleScaleAffector.h
parentAdd a note about rasters suggested start up code. (diff)
downloadSledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.zip
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.gz
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.bz2
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.xz
Added Irrlicht 1.8, but without all the Windows binaries.
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CParticleScaleAffector.h')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CParticleScaleAffector.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CParticleScaleAffector.h b/libraries/irrlicht-1.8/source/Irrlicht/CParticleScaleAffector.h
new file mode 100644
index 0000000..8bd4c42
--- /dev/null
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CParticleScaleAffector.h
@@ -0,0 +1,44 @@
1// Copyright (C) 2010-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_SCALE_AFFECTOR_H
6#define C_PARTICLE_SCALE_AFFECTOR_H
7
8#include <IParticleAffector.h>
9
10namespace irr
11{
12 namespace scene
13 {
14 class CParticleScaleAffector : public IParticleAffector
15 {
16 public:
17 CParticleScaleAffector(const core::dimension2df& scaleTo = core::dimension2df(1.0f, 1.0f));
18
19 virtual void affect(u32 now, SParticle *particlearray, u32 count);
20
21 //! Writes attributes of the object.
22 //! Implement this to expose the attributes of your scene node animator for
23 //! scripting languages, editors, debuggers or xml serialization purposes.
24 virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const;
25
26 //! Reads attributes of the object.
27 //! Implement this to set the attributes of your scene node animator for
28 //! scripting languages, editors, debuggers or xml deserialization purposes.
29 //! \param startIndex: start index where to start reading attributes.
30 //! \return: returns last index of an attribute read by this affector
31 virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options);
32
33 //! Get emitter type
34 virtual E_PARTICLE_AFFECTOR_TYPE getType() const;
35
36 protected:
37 core::dimension2df ScaleTo;
38 };
39 }
40}
41
42
43#endif // C_PARTICLE_SCALE_AFFECTOR_H
44