| Line | |
|---|
| 1 | /** |
|---|
| 2 | * @file rain_effect.h |
|---|
| 3 | */ |
|---|
| 4 | |
|---|
| 5 | #ifndef _RAIN_EFFECT |
|---|
| 6 | #define _RAIN_EFFECT |
|---|
| 7 | |
|---|
| 8 | #include "vector.h" |
|---|
| 9 | #include "particle_system.h" |
|---|
| 10 | //#include "material.h" |
|---|
| 11 | |
|---|
| 12 | class SparkParticles; |
|---|
| 13 | class ParticleEmitter; |
|---|
| 14 | |
|---|
| 15 | #include "weather_effect.h" |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | class RainEffect : public WeatherEffect |
|---|
| 19 | { |
|---|
| 20 | public: |
|---|
| 21 | RainEffect(const TiXmlElement* root = NULL); |
|---|
| 22 | virtual ~RainEffect(); |
|---|
| 23 | |
|---|
| 24 | virtual void loadParams(const TiXmlElement* root); |
|---|
| 25 | |
|---|
| 26 | virtual bool init(); |
|---|
| 27 | |
|---|
| 28 | virtual bool activate(); |
|---|
| 29 | virtual bool deactivate(); |
|---|
| 30 | |
|---|
| 31 | virtual void draw() const; |
|---|
| 32 | |
|---|
| 33 | // inline void setRainMode(const std::string& mode) { this->rainMode = this->stringToRainMode(mode); } |
|---|
| 34 | // inline void setRainDensity(float density) { this->rainDensity = density; } |
|---|
| 35 | // inline void setRainRange(float start, float end) { this->rainStart = start; this->rainEnd = end; } |
|---|
| 36 | // inline void setRainColor(float r, float g, float b) { this->colorVector = Vector(r, g, b); } |
|---|
| 37 | |
|---|
| 38 | private: |
|---|
| 39 | static SparkParticles* rainParticles; |
|---|
| 40 | ParticleEmitter* emitter; |
|---|
| 41 | |
|---|
| 42 | // GLfloat rainDensity; |
|---|
| 43 | // GLfloat rainStart; |
|---|
| 44 | // GLfloat rainEnd; |
|---|
| 45 | // Vector colorVector; |
|---|
| 46 | }; |
|---|
| 47 | |
|---|
| 48 | |
|---|
| 49 | #endif /* _RAIN_EFFECT */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.