Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 16, 2006, 10:34:43 AM (19 years ago)
Author:
amaechler
Message:


File:
1 edited

Legend:

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

    r8495 r8521  
    6363
    6464private:
    65     GLint stringToFogMode(const std::string& mode);
     65    inline GLint stringToFogMode(const std::string& mode) {
     66        if(mode == "GL_LINEAR")
     67            return GL_LINEAR;
     68        else if(mode == "GL_EXP")
     69            return GL_EXP;
     70        else if(mode == "GL_EXP2" )
     71            return GL_EXP2;
     72        else
     73            return -1;
     74    }
    6675
    6776    bool          fogActivate;
Note: See TracChangeset for help on using the changeset viewer.