Changeset 9685 in orxonox.OLD for branches/new_class_id/src/lib/graphics/light.cc
- Timestamp:
- Aug 22, 2006, 1:16:23 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/graphics/light.cc
r8742 r9685 27 27 #include "debug.h" 28 28 29 #include "class_id.h" 30 29 31 CREATE_FACTORY(Light, CL_LIGHT); 32 NewObjectListDefinitionID(Light, CL_LIGHT); 30 33 31 34 //! Definition of the Lights and their Names … … 51 54 PRINTF(4)("initializing Light number %d.\n", this->lightNumber); 52 55 56 this->registerObject(this, Light::_objectList); 57 53 58 this->lightNumber = LightManager::getInstance()->registerLight(this); 54 59 55 this->setClassID(CL_LIGHT, "Light");56 60 char tmpName[10]; 57 61 sprintf(tmpName, "Light[%d]", this->lightNumber); … … 211 215 ** LIGHT-MANAGER ** 212 216 ******************/ 217 NewObjectListDefinition(LightManager); 213 218 /** 214 219 * standard constructor for a Light … … 216 221 LightManager::LightManager () 217 222 { 218 this-> setClassID(CL_LIGHT_MANAGER, "LightManager");223 this->registerObject(this, LightManager::_objectList); 219 224 220 225 glEnable (GL_LIGHTING);
Note: See TracChangeset
for help on using the changeset viewer.