Changeset 7416 in orxonox.OLD for branches/atmospheric_engine/src/lib
- Timestamp:
- Apr 28, 2006, 11:10:19 AM (19 years ago)
- Location:
- branches/atmospheric_engine/src/lib/graphics/effects
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/atmospheric_engine.cc
r7392 r7416 32 32 AtmosphericEngine::AtmosphericEngine() 33 33 { 34 //this->setClassID(CL_ATMOSPHERIC_ENGINE, "AtmosphericEngine");34 this->setClassID(CL_ATMOSPHERIC_ENGINE, "AtmosphericEngine"); 35 35 // this->bActivated = false; 36 36 } -
branches/atmospheric_engine/src/lib/graphics/effects/fog_effect.cc
r7392 r7416 32 32 FogEffect::FogEffect(const TiXmlElement* root) 33 33 { 34 //this->setClassID(CL_FOG_EFFECT, "FogEffect");34 this->setClassID(CL_FOG_EFFECT, "FogEffect"); 35 35 36 36 this->fogMode = GL_LINEAR; … … 58 58 59 59 LoadParam(root, "fog-mode", this, FogEffect, setFogMode); 60 61 60 LoadParam(root, "fog-density", this, FogEffect, setFogDensity); 62 63 61 LoadParam(root, "fog-color", this, FogEffect, setFogColor); 64 62 65 // LoadParam(root, "test", this, FogEffect, setTest);66 63 67 68 }69 70 void FogEffect::setTest(int test)71 {72 PRINTF(0)("\n\ntest: %i\n\n", test);73 64 } 74 65 … … 82 73 PRINTF(0)( "Enabling Fog Effect, mode: %i, density: %f, start: %f, end: %f, color %f, %f, %f\n", this->fogMode, this->fogDensity, 83 74 this->fogStart, this->fogEnd, this->colorVector.x, this->colorVector.y, this->colorVector.z); 84 85 /*PRINTF(0)( "Enabling Fog Effect, mode: %i, density: %f, start: %f, end: %f\n", this->fogMode, this->fogDensity,86 this->fogStart, this->fogEnd);*/87 75 88 76 glEnable(GL_FOG); … … 107 95 bool FogEffect::deactivate() 108 96 { 97 PRINTF(0)("Deactivating Fog Effect"); 109 98 glDisable(GL_FOG); 110 99 } -
branches/atmospheric_engine/src/lib/graphics/effects/fog_effect.h
r7392 r7416 23 23 virtual bool deactivate(); 24 24 25 26 void setTest(int test);27 28 25 inline void setFogMode(const std::string& mode) { this->fogMode = this->stringToFogMode(mode); } 29 26 inline void setFogDensity(float density) { this->fogDensity = density; } -
branches/atmospheric_engine/src/lib/graphics/effects/sun_effect.cc
r7383 r7416 30 30 SunEffect::SunEffect(const TiXmlElement* root) 31 31 { 32 //this->setClassID(CL_SUN_EFFECT, "SunEffect");32 this->setClassID(CL_SUN_EFFECT, "SunEffect"); 33 33 this->bActivated = false; 34 34 } -
branches/atmospheric_engine/src/lib/graphics/effects/weather_effect.cc
r7382 r7416 28 28 WeatherEffect::WeatherEffect(const TiXmlElement* root) 29 29 { 30 //this->setClassID(CL_WEATHER_EFFECT, "WeatherEffect");30 this->setClassID(CL_WEATHER_EFFECT, "WeatherEffect"); 31 31 this->bActivated = false; 32 32 }
Note: See TracChangeset
for help on using the changeset viewer.