Changeset 7646 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.h
- Timestamp:
- May 17, 2006, 12:41:35 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.h
r7628 r7646 16 16 #include "weather_effect.h" 17 17 18 #include "sound_buffer.h" 19 #include "sound_source.h" 20 18 21 19 22 class RainEffect : public WeatherEffect … … 30 33 virtual bool deactivate(); 31 34 35 virtual void tick(float dt); 36 32 37 inline void setRainCoord(float x, float y, float z) { this->rainCoord = Vector(x, y, z); } 33 38 inline void setRainSize(float x, float y) { this->rainSize = Vector2D(x, y); } 34 39 inline void setRainRate(float rate) { this->rainRate = rate;} 35 inline void setRainVelocity(float velocity) { this->rainVelocity = velocity; }40 inline void setRainVelocity(float velocity) { this->rainVelocity = -velocity; } 36 41 37 42 private: … … 43 48 GLfloat rainRate; 44 49 GLfloat rainVelocity; 50 51 SoundSource soundSource; 52 SoundBuffer* rainBuffer; 45 53 }; 46 54
Note: See TracChangeset
for help on using the changeset viewer.