aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CParticleRotationAffector.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 18:54:10 +1000
committerDavid Walter Seikel2013-01-13 18:54:10 +1000
commit959831f4ef5a3e797f576c3de08cd65032c997ad (patch)
treee7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/source/Irrlicht/CParticleRotationAffector.h
parentAdd info about changes to Irrlicht. (diff)
downloadSledjHamr-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 'libraries/irrlicht-1.8/source/Irrlicht/CParticleRotationAffector.h')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CParticleRotationAffector.h112
1 files changed, 56 insertions, 56 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CParticleRotationAffector.h b/libraries/irrlicht-1.8/source/Irrlicht/CParticleRotationAffector.h
index 8db5752..d3c5c03 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/CParticleRotationAffector.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CParticleRotationAffector.h
@@ -1,56 +1,56 @@
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_ROTATION_AFFECTOR_H_INCLUDED__ 5#ifndef __C_PARTICLE_ROTATION_AFFECTOR_H_INCLUDED__
6#define __C_PARTICLE_ROTATION_AFFECTOR_H_INCLUDED__ 6#define __C_PARTICLE_ROTATION_AFFECTOR_H_INCLUDED__
7 7
8#include "IParticleRotationAffector.h" 8#include "IParticleRotationAffector.h"
9 9
10namespace irr 10namespace irr
11{ 11{
12namespace scene 12namespace scene
13{ 13{
14 14
15//! Particle Affector for rotating particles about a point 15//! Particle Affector for rotating particles about a point
16class CParticleRotationAffector : public IParticleRotationAffector 16class CParticleRotationAffector : public IParticleRotationAffector
17{ 17{
18public: 18public:
19 19
20 CParticleRotationAffector( const core::vector3df& speed = core::vector3df(5.0f, 5.0f, 5.0f), 20 CParticleRotationAffector( const core::vector3df& speed = core::vector3df(5.0f, 5.0f, 5.0f),
21 const core::vector3df& point = core::vector3df() ); 21 const core::vector3df& point = core::vector3df() );
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 //! Set the point that particles will attract to 26 //! Set the point that particles will attract to
27 virtual void setPivotPoint( const core::vector3df& point ) { PivotPoint = point; } 27 virtual void setPivotPoint( const core::vector3df& point ) { PivotPoint = point; }
28 28
29 //! Set the speed in degrees per second 29 //! Set the speed in degrees per second
30 virtual void setSpeed( const core::vector3df& speed ) { Speed = speed; } 30 virtual void setSpeed( const core::vector3df& speed ) { Speed = speed; }
31 31
32 //! Get the point that particles are attracted to 32 //! Get the point that particles are attracted to
33 virtual const core::vector3df& getPivotPoint() const { return PivotPoint; } 33 virtual const core::vector3df& getPivotPoint() const { return PivotPoint; }
34 34
35 //! Get the speed in degrees per second 35 //! Get the speed in degrees per second
36 virtual const core::vector3df& getSpeed() const { return Speed; } 36 virtual const core::vector3df& getSpeed() const { return Speed; }
37 37
38 //! Writes attributes of the object. 38 //! Writes attributes of the object.
39 virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const; 39 virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const;
40 40
41 //! Reads attributes of the object. 41 //! Reads attributes of the object.
42 virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options); 42 virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options);
43 43
44private: 44private:
45 45
46 core::vector3df PivotPoint; 46 core::vector3df PivotPoint;
47 core::vector3df Speed; 47 core::vector3df Speed;
48 u32 LastTime; 48 u32 LastTime;
49}; 49};
50 50
51} // end namespace scene 51} // end namespace scene
52} // end namespace irr 52} // end namespace irr
53 53
54 54
55#endif // __C_PARTICLE_ROTATION_AFFECTOR_H_INCLUDED__ 55#endif // __C_PARTICLE_ROTATION_AFFECTOR_H_INCLUDED__
56 56