Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 8, 2006, 2:55:02 PM (19 years ago)
Author:
amaechler
Message:

branches/atmospheric_engine: fog activate, cleanups

File:
1 edited

Legend:

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

    r8023 r8247  
    2222                virtual bool activate();
    2323                virtual bool deactivate();
    24    
    25     void activateFog() { this->activate(); }
    26     void deactivateFog() { this->deactivate(); }
     24
     25                void activateFog() { this->activate(); }
     26                void deactivateFog() { this->deactivate(); }
    2727
    2828                inline void setFogMode(const std::string& mode) { this->fogMode = this->stringToFogMode(mode); }
     
    3030                inline void setFogRange(float start, float end) { this->fogStart = start; this->fogEnd = end; }
    3131                inline void setFogColor(float r, float g, float b) { this->colorVector = Vector(r, g, b); }
    32     inline void setFogOption(const std::string& option) { if (option == "activate") this->fogActivate = true; }
     32                inline void setFogOption(const std::string& option) { if (option == "activate") this->fogActivate = true; }
    3333
    3434        private:
    3535                GLint stringToFogMode(const std::string& mode);
    3636
    37         private:
    38                 GLint                   fogMode;
    39                 GLfloat                 fogDensity;
    40                 GLfloat                 fogStart;
    41                 GLfloat                 fogEnd;
    42                 Vector                  colorVector;
    43     bool                     fogActivate;
     37                bool                            fogActivate;
     38
     39                GLint                           fogMode;
     40                GLfloat                         fogDensity;
     41                GLfloat                         fogStart;
     42                GLfloat                         fogEnd;
     43                Vector                          colorVector;
    4444};
    4545
Note: See TracChangeset for help on using the changeset viewer.