Changeset 7379 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/fog_effect.h
- Timestamp:
- Apr 26, 2006, 3:52:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/fog_effect.h
r7221 r7379 1 1 /** 2 2 * @file fog_effect.h 3 * atmospheric fog4 3 */ 5 4 … … 7 6 #define _FOG_EFFECT 8 7 9 #include "vector.h" 10 #include "graphics_effect.h" 8 #include "weather_effects.h" 11 9 12 class TiXmlElement; 13 14 //! A class that handles FogEffects. The FogEffectManager operates on this. 15 class FogEffect : public GraphicsEffect 10 class FogEffect : public WeatherEffects 16 11 { 17 12 public: … … 26 21 virtual bool deactivate(); 27 22 28 inline void setFogMode(const std::string& mode) { this->fogMode = this->stringToFogMode(mode); } 23 24 void setTest(int test); 25 26 /*inline void setFogMode(const std::string& mode) { this->fogMode = this->stringToFogMode(mode); } 29 27 inline void setFogDensity(float density) { this->fogDensity = density; } 30 28 inline void setFogRange(float start, float end) { this->fogStart = start; this->fogEnd = end; } 31 29 inline void setFogColor(float r, float g, float b) { this->colorVector = Vector(r, g, b); } 30 */ 31 32 private: 33 //GLint stringToFogMode(const std::string& mode); 32 34 33 35 34 36 private: 35 GLint stringToFogMode(const std::string& mode); 36 37 38 private: 39 GLint fogMode; 37 /* GLint fogMode; 40 38 GLfloat fogDensity; 41 39 GLfloat fogStart; 42 40 GLfloat fogEnd; 43 Vector colorVector; 41 Vector colorVector;*/ 44 42 }; 45 43 46 44 47 #endif /* _FOG_EFFECT */45 #endif /* _FOG_EFFECT */
Note: See TracChangeset
for help on using the changeset viewer.