Changeset 9869 in orxonox.OLD for trunk/src/lib/graphics/light.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/light.cc
r8742 r9869 22 22 #include "glincl.h" 23 23 #include "vector.h" 24 #include "parser/tinyxml/tinyxml.h" 25 #include "util/loading/load_param.h" 24 #include "util/loading/load_param_xml.h" 26 25 #include "util/loading/factory.h" 27 26 #include "debug.h" 28 27 29 CREATE_FACTORY(Light, CL_LIGHT); 28 #include "class_id_DEPRECATED.h" 29 30 ObjectListDefinitionID(Light, CL_LIGHT); 31 CREATE_FACTORY(Light); 30 32 31 33 //! Definition of the Lights and their Names … … 51 53 PRINTF(4)("initializing Light number %d.\n", this->lightNumber); 52 54 55 this->registerObject(this, Light::_objectList); 56 53 57 this->lightNumber = LightManager::getInstance()->registerLight(this); 54 58 55 this->setClassID(CL_LIGHT, "Light");56 59 char tmpName[10]; 57 60 sprintf(tmpName, "Light[%d]", this->lightNumber); … … 211 214 ** LIGHT-MANAGER ** 212 215 ******************/ 216 ObjectListDefinition(LightManager); 213 217 /** 214 218 * standard constructor for a Light … … 216 220 LightManager::LightManager () 217 221 { 218 this-> setClassID(CL_LIGHT_MANAGER, "LightManager");222 this->registerObject(this, LightManager::_objectList); 219 223 220 224 glEnable (GL_LIGHTING);
Note: See TracChangeset
for help on using the changeset viewer.