Changeset 7652 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.h
- Timestamp:
- May 17, 2006, 6:41:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.h
r7646 r7652 1 1 /** 2 3 2 * @file rain_effect.h 3 */ 4 4 5 5 #ifndef _RAIN_EFFECT … … 22 22 class RainEffect : public WeatherEffect 23 23 { 24 25 26 24 public: 25 RainEffect(const TiXmlElement* root = NULL); 26 virtual ~RainEffect(); 27 27 28 28 virtual void loadParams(const TiXmlElement* root); 29 29 30 30 virtual bool init(); 31 31 32 33 32 virtual bool activate(); 33 virtual bool deactivate(); 34 34 35 35 virtual void tick(float dt); 36 36 37 inline void setRainCoord(float x, float y, float z) { this->rainCoord = Vector(x, y, z); } 38 inline void setRainSize(float x, float y) { this->rainSize = Vector2D(x, y); } 39 inline void setRainRate(float rate) { this->rainRate = rate;} 40 inline void setRainVelocity(float velocity) { this->rainVelocity = -velocity; } 37 inline void setRainCoord(float x, float y, float z) { this->rainCoord = Vector(x, y, z); } 38 inline void setRainSize(float x, float y) { this->rainSize = Vector2D(x, y); } 39 inline void setRainRate(float rate) { this->rainRate = rate;} 40 inline void setRainVelocity(float velocity) { this->rainVelocity = -velocity; } 41 inline void setRainLife(float life) { this->rainLife = life; } 42 inline void setMoveRain() { PRINTF(0)( "setting move true\n"); this->rainMove = true; } 41 43 42 private:43 static SparkParticles* rainParticles;44 ParticleEmitter* emitter;45 44 46 Vector rainCoord; 47 Vector2D rainSize; 48 GLfloat rainRate; 49 GLfloat rainVelocity; 45 private: 46 static SparkParticles* rainParticles; 47 ParticleEmitter* emitter; 50 48 51 SoundSource soundSource; 52 SoundBuffer* rainBuffer; 49 Vector rainCoord; 50 Vector2D rainSize; 51 GLfloat rainRate; 52 GLfloat rainVelocity; 53 GLfloat rainLife; 54 bool rainMove; 55 56 SoundSource soundSource; 57 SoundBuffer* rainBuffer; 53 58 }; 54 59
Note: See TracChangeset
for help on using the changeset viewer.