Last change
on this file since 7576 was
7576,
checked in by hdavid, 18 years ago
|
branches/atmospheric_engine: basic snow
|
File size:
1.3 KB
|
Rev | Line | |
---|
[7573] | 1 | /** |
---|
| 2 | * @file snow_effect.h |
---|
| 3 | */ |
---|
| 4 | |
---|
| 5 | #ifndef _SNOW_EFFECT |
---|
| 6 | #define _SNOW_EFFECT |
---|
| 7 | |
---|
| 8 | #include "vector.h" |
---|
| 9 | #include "particle_system.h" |
---|
| 10 | #include "material.h" |
---|
| 11 | #include "vector2D.h" |
---|
| 12 | |
---|
| 13 | #include "weather_effect.h" |
---|
| 14 | |
---|
| 15 | class SpriteParticles; |
---|
[7576] | 16 | class PlaneEmitter; |
---|
[7573] | 17 | |
---|
| 18 | class SnowEffect : public WeatherEffect |
---|
| 19 | { |
---|
| 20 | public: |
---|
| 21 | SnowEffect(const TiXmlElement* root = NULL); |
---|
| 22 | virtual ~SnowEffect(); |
---|
| 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 | virtual void tick(float dt); |
---|
[7576] | 33 | |
---|
| 34 | void activateSnow(); |
---|
[7573] | 35 | |
---|
| 36 | // inline void setSnowMode(const std::string& mode) { this->snowMode = this->stringToSnowMode(mode); } |
---|
| 37 | // inline void setSnowDensity(float density) { this->snowDensity = density; } |
---|
| 38 | // inline void setSnowRange(float start, float end) { this->snowStart = start; this->snowEnd = end; } |
---|
| 39 | // inline void setSnowColor(float r, float g, float b) { this->colorVector = Vector(r, g, b); } |
---|
| 40 | private: |
---|
| 41 | // GLint snowMode; |
---|
| 42 | // GLfloat snowDensity; |
---|
| 43 | // GLfloat snowStart; |
---|
| 44 | // GLfloat snowEnd; |
---|
| 45 | // Vector colorVector; |
---|
| 46 | static SpriteParticles* snowParticles; |
---|
| 47 | |
---|
[7576] | 48 | PlaneEmitter* emitter; |
---|
[7573] | 49 | }; |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | #endif /* _SNOW_EFFECT */ |
---|
Note: See
TracBrowser
for help on using the repository browser.