Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 17, 2006, 12:41:35 PM (18 years ago)
Author:
amaechler
Message:

branches/atmospheric_engine: added loop function in sound_source

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.h

    r7628 r7646  
    1616#include "weather_effect.h"
    1717
     18#include "sound_buffer.h"
     19#include "sound_source.h"
     20
    1821
    1922class RainEffect : public WeatherEffect
     
    3033    virtual bool deactivate();
    3134
     35    virtual void tick(float dt);
     36
    3237    inline void setRainCoord(float x, float y, float z) { this->rainCoord = Vector(x, y, z); }
    3338    inline void setRainSize(float x, float y) { this->rainSize = Vector2D(x, y); }
    3439    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; }
    3641
    3742  private:
     
    4348    GLfloat                           rainRate;
    4449    GLfloat                           rainVelocity;
     50
     51    SoundSource                       soundSource;
     52    SoundBuffer*                      rainBuffer;
    4553};
    4654
Note: See TracChangeset for help on using the changeset viewer.