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/include/IParticleEmitter.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/include/IParticleEmitter.h | 258 |
1 files changed, 129 insertions, 129 deletions
diff --git a/libraries/irrlicht-1.8/include/IParticleEmitter.h b/libraries/irrlicht-1.8/include/IParticleEmitter.h index 4b88266..6fc9a2c 100644 --- a/libraries/irrlicht-1.8/include/IParticleEmitter.h +++ b/libraries/irrlicht-1.8/include/IParticleEmitter.h | |||
@@ -1,129 +1,129 @@ | |||
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_EMITTER_H_INCLUDED__ | 5 | #ifndef __I_PARTICLE_EMITTER_H_INCLUDED__ |
6 | #define __I_PARTICLE_EMITTER_H_INCLUDED__ | 6 | #define __I_PARTICLE_EMITTER_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 emitters | 16 | //! Types of built in particle emitters |
17 | enum E_PARTICLE_EMITTER_TYPE | 17 | enum E_PARTICLE_EMITTER_TYPE |
18 | { | 18 | { |
19 | EPET_POINT = 0, | 19 | EPET_POINT = 0, |
20 | EPET_ANIMATED_MESH, | 20 | EPET_ANIMATED_MESH, |
21 | EPET_BOX, | 21 | EPET_BOX, |
22 | EPET_CYLINDER, | 22 | EPET_CYLINDER, |
23 | EPET_MESH, | 23 | EPET_MESH, |
24 | EPET_RING, | 24 | EPET_RING, |
25 | EPET_SPHERE, | 25 | EPET_SPHERE, |
26 | EPET_COUNT | 26 | EPET_COUNT |
27 | }; | 27 | }; |
28 | 28 | ||
29 | //! Names for built in particle emitters | 29 | //! Names for built in particle emitters |
30 | const c8* const ParticleEmitterTypeNames[] = | 30 | const c8* const ParticleEmitterTypeNames[] = |
31 | { | 31 | { |
32 | "Point", | 32 | "Point", |
33 | "AnimatedMesh", | 33 | "AnimatedMesh", |
34 | "Box", | 34 | "Box", |
35 | "Cylinder", | 35 | "Cylinder", |
36 | "Mesh", | 36 | "Mesh", |
37 | "Ring", | 37 | "Ring", |
38 | "Sphere", | 38 | "Sphere", |
39 | 0 | 39 | 0 |
40 | }; | 40 | }; |
41 | 41 | ||
42 | //! A particle emitter for using with particle systems. | 42 | //! A particle emitter for using with particle systems. |
43 | /** A Particle emitter emitts new particles into a particle system. | 43 | /** A Particle emitter emitts new particles into a particle system. |
44 | */ | 44 | */ |
45 | class IParticleEmitter : public virtual io::IAttributeExchangingObject | 45 | class IParticleEmitter : public virtual io::IAttributeExchangingObject |
46 | { | 46 | { |
47 | public: | 47 | public: |
48 | 48 | ||
49 | //! Prepares an array with new particles to emitt into the system | 49 | //! Prepares an array with new particles to emitt into the system |
50 | /** \param now Current time. | 50 | /** \param now Current time. |
51 | \param timeSinceLastCall Time elapsed since last call, in milliseconds. | 51 | \param timeSinceLastCall Time elapsed since last call, in milliseconds. |
52 | \param outArray Pointer which will point to the array with the new | 52 | \param outArray Pointer which will point to the array with the new |
53 | particles to add into the system. | 53 | particles to add into the system. |
54 | \return Amount of new particles in the array. Can be 0. */ | 54 | \return Amount of new particles in the array. Can be 0. */ |
55 | virtual s32 emitt(u32 now, u32 timeSinceLastCall, SParticle*& outArray) = 0; | 55 | virtual s32 emitt(u32 now, u32 timeSinceLastCall, SParticle*& outArray) = 0; |
56 | 56 | ||
57 | //! Set direction the emitter emits particles | 57 | //! Set direction the emitter emits particles |
58 | virtual void setDirection( const core::vector3df& newDirection ) = 0; | 58 | virtual void setDirection( const core::vector3df& newDirection ) = 0; |
59 | 59 | ||
60 | //! Set minimum number of particles the emitter emits per second | 60 | //! Set minimum number of particles the emitter emits per second |
61 | virtual void setMinParticlesPerSecond( u32 minPPS ) = 0; | 61 | virtual void setMinParticlesPerSecond( u32 minPPS ) = 0; |
62 | 62 | ||
63 | //! Set maximum number of particles the emitter emits per second | 63 | //! Set maximum number of particles the emitter emits per second |
64 | virtual void setMaxParticlesPerSecond( u32 maxPPS ) = 0; | 64 | virtual void setMaxParticlesPerSecond( u32 maxPPS ) = 0; |
65 | 65 | ||
66 | //! Set minimum starting color for particles | 66 | //! Set minimum starting color for particles |
67 | virtual void setMinStartColor( const video::SColor& color ) = 0; | 67 | virtual void setMinStartColor( const video::SColor& color ) = 0; |
68 | 68 | ||
69 | //! Set maximum starting color for particles | 69 | //! Set maximum starting color for particles |
70 | virtual void setMaxStartColor( const video::SColor& color ) = 0; | 70 | virtual void setMaxStartColor( const video::SColor& color ) = 0; |
71 | 71 | ||
72 | //! Set the maximum starting size for particles | 72 | //! Set the maximum starting size for particles |
73 | virtual void setMaxStartSize( const core::dimension2df& size ) = 0; | 73 | virtual void setMaxStartSize( const core::dimension2df& size ) = 0; |
74 | 74 | ||
75 | //! Set the minimum starting size for particles | 75 | //! Set the minimum starting size for particles |
76 | virtual void setMinStartSize( const core::dimension2df& size ) = 0; | 76 | virtual void setMinStartSize( const core::dimension2df& size ) = 0; |
77 | 77 | ||
78 | //! Set the minimum particle life-time in milliseconds | 78 | //! Set the minimum particle life-time in milliseconds |
79 | virtual void setMinLifeTime( u32 lifeTimeMin ) = 0; | 79 | virtual void setMinLifeTime( u32 lifeTimeMin ) = 0; |
80 | 80 | ||
81 | //! Set the maximum particle life-time in milliseconds | 81 | //! Set the maximum particle life-time in milliseconds |
82 | virtual void setMaxLifeTime( u32 lifeTimeMax ) = 0; | 82 | virtual void setMaxLifeTime( u32 lifeTimeMax ) = 0; |
83 | 83 | ||
84 | //! Set maximal random derivation from the direction | 84 | //! Set maximal random derivation from the direction |
85 | virtual void setMaxAngleDegrees( s32 maxAngleDegrees ) = 0; | 85 | virtual void setMaxAngleDegrees( s32 maxAngleDegrees ) = 0; |
86 | 86 | ||
87 | //! Get direction the emitter emits particles | 87 | //! Get direction the emitter emits particles |
88 | virtual const core::vector3df& getDirection() const = 0; | 88 | virtual const core::vector3df& getDirection() const = 0; |
89 | 89 | ||
90 | //! Get the minimum number of particles the emitter emits per second | 90 | //! Get the minimum number of particles the emitter emits per second |
91 | virtual u32 getMinParticlesPerSecond() const = 0; | 91 | virtual u32 getMinParticlesPerSecond() const = 0; |
92 | 92 | ||
93 | //! Get the maximum number of particles the emitter emits per second | 93 | //! Get the maximum number of particles the emitter emits per second |
94 | virtual u32 getMaxParticlesPerSecond() const = 0; | 94 | virtual u32 getMaxParticlesPerSecond() const = 0; |
95 | 95 | ||
96 | //! Get the minimum starting color for particles | 96 | //! Get the minimum starting color for particles |
97 | virtual const video::SColor& getMinStartColor() const = 0; | 97 | virtual const video::SColor& getMinStartColor() const = 0; |
98 | 98 | ||
99 | //! Get the maximum starting color for particles | 99 | //! Get the maximum starting color for particles |
100 | virtual const video::SColor& getMaxStartColor() const = 0; | 100 | virtual const video::SColor& getMaxStartColor() const = 0; |
101 | 101 | ||
102 | //! Get the maximum starting size for particles | 102 | //! Get the maximum starting size for particles |
103 | virtual const core::dimension2df& getMaxStartSize() const = 0; | 103 | virtual const core::dimension2df& getMaxStartSize() const = 0; |
104 | 104 | ||
105 | //! Get the minimum starting size for particles | 105 | //! Get the minimum starting size for particles |
106 | virtual const core::dimension2df& getMinStartSize() const = 0; | 106 | virtual const core::dimension2df& getMinStartSize() const = 0; |
107 | 107 | ||
108 | //! Get the minimum particle life-time in milliseconds | 108 | //! Get the minimum particle life-time in milliseconds |
109 | virtual u32 getMinLifeTime() const = 0; | 109 | virtual u32 getMinLifeTime() const = 0; |
110 | 110 | ||
111 | //! Get the maximum particle life-time in milliseconds | 111 | //! Get the maximum particle life-time in milliseconds |
112 | virtual u32 getMaxLifeTime() const = 0; | 112 | virtual u32 getMaxLifeTime() const = 0; |
113 | 113 | ||
114 | //! Get maximal random derivation from the direction | 114 | //! Get maximal random derivation from the direction |
115 | virtual s32 getMaxAngleDegrees() const = 0; | 115 | virtual s32 getMaxAngleDegrees() const = 0; |
116 | 116 | ||
117 | 117 | ||
118 | //! Get emitter type | 118 | //! Get emitter type |
119 | virtual E_PARTICLE_EMITTER_TYPE getType() const { return EPET_POINT; } | 119 | virtual E_PARTICLE_EMITTER_TYPE getType() const { return EPET_POINT; } |
120 | }; | 120 | }; |
121 | 121 | ||
122 | typedef IParticleEmitter IParticlePointEmitter; | 122 | typedef IParticleEmitter IParticlePointEmitter; |
123 | 123 | ||
124 | } // end namespace scene | 124 | } // end namespace scene |
125 | } // end namespace irr | 125 | } // end namespace irr |
126 | 126 | ||
127 | 127 | ||
128 | #endif | 128 | #endif |
129 | 129 | ||