Changeset 7416 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/fog_effect.cc
- Timestamp:
- Apr 28, 2006, 11:10:19 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.