Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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
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;
16class PlaneEmitter;
17
18class 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);
33   
34    void activateSnow();
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   
48    PlaneEmitter*          emitter;
49};
50
51
52#endif  /* _SNOW_EFFECT */
Note: See TracBrowser for help on using the repository browser.