Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/atmospheric_engine/src/lib/graphics/effects/snow_effect.h @ 7573

Last change on this file since 7573 was 7573, checked in by hdavid, 19 years ago
File size: 1.3 KB
Line 
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
15class SpriteParticles;
16
17class SnowEffect : public WeatherEffect
18{
19  public:
20    SnowEffect(const TiXmlElement* root = NULL);
21    virtual ~SnowEffect();
22
23    virtual void loadParams(const TiXmlElement* root);
24
25    virtual bool init();
26
27    virtual bool activate();
28    virtual bool deactivate();
29
30    virtual void draw() const;
31    virtual void tick(float dt);
32
33//     inline void setSnowMode(const std::string& mode) { this->snowMode = this->stringToSnowMode(mode); }
34//     inline void setSnowDensity(float density) { this->snowDensity = density; }
35//     inline void setSnowRange(float start, float end) { this->snowStart = start; this->snowEnd = end; }
36//     inline void setSnowColor(float r, float g, float b) { this->colorVector = Vector(r, g, b); }
37  private:
38//     GLint                    snowMode;
39//     GLfloat                 snowDensity;
40//     GLfloat                 snowStart;
41//     GLfloat                 snowEnd;
42//     Vector                  colorVector;
43    static SpriteParticles* snowParticles;
44   
45    ParticleEmitter*          emitter;
46};
47
48
49#endif  /* _SNOW_EFFECT */
Note: See TracBrowser for help on using the repository browser.