Changeset 4737 in orxonox.OLD for orxonox/trunk/src/lib
- Timestamp:
- Jun 30, 2005, 1:13:57 AM (19 years ago)
- Location:
- orxonox/trunk/src/lib/graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/light.cc
r4736 r4737 79 79 80 80 /** 81 * \brief initializes a Light82 */83 void Light::init()84 {85 }86 87 /**88 81 * \param root The XML-element to load the Light from 89 82 */ … … 241 234 glDisable(GL_LIGHTING); 242 235 243 // this will be done either by PNode-tree as each light is one of them244 // for (int i = 0; i < NUMBEROFLIGHTS; i++)245 // this->deleteLight(i);236 for (int i = 0; i < NUMBEROFLIGHTS; i++) 237 if (this->lights[i]) 238 delete lights[i]; 246 239 delete lights; 247 240 LightManager::singletonRef = NULL; … … 315 308 if (this->lights[i] == light) 316 309 { 317 this->lights[i] == NULL; 310 this->lights[i] = NULL; 311 return; 318 312 } 319 313 } -
orxonox/trunk/src/lib/graphics/light.h
r4736 r4737 29 29 virtual ~Light(void); 30 30 31 void init();32 31 void loadParams(const TiXmlElement* root); 33 32
Note: See TracChangeset
for help on using the changeset viewer.