Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 17, 2006, 6:41:58 PM (19 years ago)
Author:
amaechler
Message:

branches/atmosphere_engine: cosmetics2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/atmospheric_engine/src/lib/graphics/effects/fog_effect.h

    r7416 r7652  
    11/**
    2  * @file fog_effect.h
    3  */
     2* @file fog_effect.h
     3*/
    44
    55#ifndef _FOG_EFFECT
     
    1212class FogEffect : public WeatherEffect
    1313{
    14   public:
    15     FogEffect(const TiXmlElement* root = NULL);
    16     virtual ~FogEffect();
     14        public:
     15                FogEffect(const TiXmlElement* root = NULL);
     16                virtual ~FogEffect();
    1717
    18     virtual void loadParams(const TiXmlElement* root);
     18                virtual void loadParams(const TiXmlElement* root);
    1919
    20     virtual bool init();
     20                virtual bool init();
    2121
    22     virtual bool activate();
    23     virtual bool deactivate();
     22                virtual bool activate();
     23                virtual bool deactivate();
    2424
    25     inline void setFogMode(const std::string& mode) { this->fogMode = this->stringToFogMode(mode); }
    26     inline void setFogDensity(float density) { this->fogDensity = density; }
    27     inline void setFogRange(float start, float end) { this->fogStart = start; this->fogEnd = end; }
    28     inline void setFogColor(float r, float g, float b) { this->colorVector = Vector(r, g, b); }
     25                inline void setFogMode(const std::string& mode) { this->fogMode = this->stringToFogMode(mode); }
     26                inline void setFogDensity(float density) { this->fogDensity = density; }
     27                inline void setFogRange(float start, float end) { this->fogStart = start; this->fogEnd = end; }
     28                inline void setFogColor(float r, float g, float b) { this->colorVector = Vector(r, g, b); }
    2929
    3030
    31   private:
    32     GLint stringToFogMode(const std::string& mode);
     31        private:
     32                GLint stringToFogMode(const std::string& mode);
    3333
    3434
    35   private:
    36     GLint                   fogMode;
    37     GLfloat                 fogDensity;
    38     GLfloat                 fogStart;
    39     GLfloat                 fogEnd;
    40     Vector                  colorVector;
     35        private:
     36                GLint                   fogMode;
     37                GLfloat                 fogDensity;
     38                GLfloat                 fogStart;
     39                GLfloat                 fogEnd;
     40                Vector                  colorVector;
    4141};
    4242
Note: See TracChangeset for help on using the changeset viewer.