Changeset 7505 in orxonox.OLD for branches/atmospheric_engine/src/lib
- Timestamp:
- May 3, 2006, 1:53:42 PM (19 years ago)
- Location:
- branches/atmospheric_engine/src/lib/graphics/effects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/volfog_effect.h
r7504 r7505 37 37 GLfloat volfogDensity; 38 38 GLfloat volfogStart; 39 GLfloat fogEnd;39 GLfloat volfogEnd; 40 40 Vector colorVector; 41 41 }; -
branches/atmospheric_engine/src/lib/graphics/effects/volfog_effect.h~
r7504 r7505 1 1 /** 2 * @file fog_effect.h2 * @file volfog_effect.h 3 3 */ 4 4 5 #ifndef _ FOG_EFFECT6 #define _ FOG_EFFECT5 #ifndef _VOLFOG_EFFECT 6 #define _VOLFOG_EFFECT 7 7 8 8 #include "vector.h" … … 10 10 #include "weather_effect.h" 11 11 12 class FogEffect : public WeatherEffect12 class VolFogEffect : public WeatherEffect 13 13 { 14 14 public: 15 FogEffect(const TiXmlElement* root = NULL);16 virtual ~ FogEffect();15 VolFogEffect(const TiXmlElement* root = NULL); 16 virtual ~VolFogEffect(); 17 17 18 18 virtual void loadParams(const TiXmlElement* root); … … 23 23 virtual bool deactivate(); 24 24 25 inline void set FogMode(const std::string& mode) { this->fogMode = this->stringToFogMode(mode); }26 inline void set FogDensity(float density) { this->fogDensity = density; }27 inline void set FogRange(float start, float end) { this->fogStart = start; this->fogEnd = end; }28 inline void set FogColor(float r, float g, float b) { this->colorVector = Vector(r, g, b); }25 inline void setVolFogMode(const std::string& mode) { this->volfogMode = this->stringToVolFogMode(mode); } 26 inline void setVolFogDensity(float density) { this->volfogDensity = density; } 27 inline void setVolFogRange(float start, float end) { this->volfogStart = start; this->volfogEnd = end; } 28 inline void setVolFogColor(float r, float g, float b) { this->colorVector = Vector(r, g, b); } 29 29 30 30 31 31 private: 32 GLint stringTo FogMode(const std::string& mode);32 GLint stringToVolFogMode(const std::string& mode); 33 33 34 34 35 35 private: 36 GLint fogMode;37 GLfloat fogDensity;38 GLfloat fogStart;36 GLint volfogMode; 37 GLfloat volfogDensity; 38 GLfloat volfogStart; 39 39 GLfloat fogEnd; 40 40 Vector colorVector; … … 42 42 43 43 44 #endif /* _ FOG_EFFECT */44 #endif /* _VOLFOG_EFFECT */
Note: See TracChangeset
for help on using the changeset viewer.