Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 31, 2006, 1:16:43 PM (18 years ago)
Author:
hdavid
Message:

branches/atmospheric_engine: activating/deactivating fogEffect in the oxw-file works,default: deactivate

File:
1 edited

Legend:

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

    r7810 r8023  
    2222                virtual bool activate();
    2323                virtual bool deactivate();
     24   
     25    void activateFog() { this->activate(); }
     26    void deactivateFog() { this->deactivate(); }
    2427
    2528                inline void setFogMode(const std::string& mode) { this->fogMode = this->stringToFogMode(mode); }
     
    2730                inline void setFogRange(float start, float end) { this->fogStart = start; this->fogEnd = end; }
    2831                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; }
    2933
    3034        private:
     
    3741                GLfloat                 fogEnd;
    3842                Vector                  colorVector;
     43    bool                     fogActivate;
    3944};
    4045
Note: See TracChangeset for help on using the changeset viewer.