Changeset 7503 in orxonox.OLD for branches/atmospheric_engine/src/lib
- Timestamp:
- May 3, 2006, 1:46:38 PM (19 years ago)
- Location:
- branches/atmospheric_engine/src/lib/graphics/effects
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/atmospheric_engine.cc
r7416 r7503 48 48 { 49 49 AtmosphericEngine::singletonRef = NULL; 50 51 this->weatherEffects = ClassList::getList( CL_WEATHER_EFFECT); 52 53 if (this->weatherEffects != NULL) 54 { 55 list<BaseObject*>::const_iterator it; 56 for (it = this->weatherEffects->begin(); it != this->weatherEffects->end(); it++) 57 dynamic_cast<WeatherEffect*>(*it)->deactivate(); 58 } 59 50 60 } 51 61 -
branches/atmospheric_engine/src/lib/graphics/effects/atmospheric_engine.h
r7392 r7503 37 37 38 38 static AtmosphericEngine* singletonRef; //!< Pointer to the only instance of this Class 39 const std::list<BaseObject*>* weatherEffects; //!< list of weather effects 39 40 40 41 //protected: -
branches/atmospheric_engine/src/lib/graphics/effects/fog_effect.cc
r7416 r7503 33 33 { 34 34 this->setClassID(CL_FOG_EFFECT, "FogEffect"); 35 35 36 36 this->fogMode = GL_LINEAR; 37 37 this->fogDensity = 0.001f; … … 95 95 bool FogEffect::deactivate() 96 96 { 97 PRINTF(0)("Deactivating Fog Effect ");97 PRINTF(0)("Deactivating Fog Effect\n"); 98 98 glDisable(GL_FOG); 99 99 }
Note: See TracChangeset
for help on using the changeset viewer.