Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/graphics/effects/fog_effect.h @ 6903

Last change on this file since 6903 was 6772, checked in by bensch, 19 years ago

orxonox/trunk: merged the branche network back
merged with command
svn merge https://svn.orxonox.net/orxonox/branches/network . -r6755:HEAD

absolutely no conficts

File size: 987 bytes
RevLine 
[6741]1/**
2 * @file fog_effect.h
3 *  atmospheric fog
4 */
5
6#ifndef _FOG_EFFECT
7#define _FOG_EFFECT
8
9#include "graphics_effect.h"
10
11class TiXmlElement;
12
13//! A class that handles FogEffects. The FogEffectManager operates on this.
14class FogEffect : public GraphicsEffect
15{
16  public:
17    FogEffect(const TiXmlElement* root = NULL);
18    virtual ~FogEffect();
19
20    virtual void loadParams(const TiXmlElement* root);
21
22    virtual bool init();
23
24    virtual bool activate();
25    virtual bool deactivate();
[6772]26
27    void setFogMode(const char* mode) { this->fogMode = this->charToFogMode(mode); }
28    void setFogDensity(float density) { this->fogDensity = density; }
29    void setFogRange(float start, float end) { this->fogStart = start; this->fogEnd = end; }
30
31
32  private:
33    GLint charToFogMode(const char* mode);
34
35
36  private:
37    GLint                   fogMode;
38    GLfloat                 fogDensity;
39    GLfloat                 fogStart;
40    GLfloat                 fogEnd;
[6741]41};
42
43
44#endif /* _FOG_EFFECT */
Note: See TracBrowser for help on using the repository browser.