Changeset 7652 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/fog_effect.h
- Timestamp:
- May 17, 2006, 6:41:58 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/fog_effect.h
r7416 r7652 1 1 /** 2 3 2 * @file fog_effect.h 3 */ 4 4 5 5 #ifndef _FOG_EFFECT … … 12 12 class FogEffect : public WeatherEffect 13 13 { 14 15 16 14 public: 15 FogEffect(const TiXmlElement* root = NULL); 16 virtual ~FogEffect(); 17 17 18 18 virtual void loadParams(const TiXmlElement* root); 19 19 20 20 virtual bool init(); 21 21 22 23 22 virtual bool activate(); 23 virtual bool deactivate(); 24 24 25 26 27 28 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); } 29 29 30 30 31 32 31 private: 32 GLint stringToFogMode(const std::string& mode); 33 33 34 34 35 36 37 38 39 40 35 private: 36 GLint fogMode; 37 GLfloat fogDensity; 38 GLfloat fogStart; 39 GLfloat fogEnd; 40 Vector colorVector; 41 41 }; 42 42
Note: See TracChangeset
for help on using the changeset viewer.