Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9869 in orxonox.OLD for trunk/src/lib/graphics/light.cc


Ignore:
Timestamp:
Oct 3, 2006, 12:19:30 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/light.cc

    r8742 r9869  
    2222#include "glincl.h"
    2323#include "vector.h"
    24 #include "parser/tinyxml/tinyxml.h"
    25 #include "util/loading/load_param.h"
     24#include "util/loading/load_param_xml.h"
    2625#include "util/loading/factory.h"
    2726#include "debug.h"
    2827
    29 CREATE_FACTORY(Light, CL_LIGHT);
     28#include "class_id_DEPRECATED.h"
     29
     30ObjectListDefinitionID(Light, CL_LIGHT);
     31CREATE_FACTORY(Light);
    3032
    3133//! Definition of the Lights and their Names
     
    5153  PRINTF(4)("initializing Light number %d.\n", this->lightNumber);
    5254
     55  this->registerObject(this, Light::_objectList);
     56
    5357  this->lightNumber = LightManager::getInstance()->registerLight(this);
    5458
    55   this->setClassID(CL_LIGHT, "Light");
    5659  char tmpName[10];
    5760  sprintf(tmpName, "Light[%d]", this->lightNumber);
     
    211214** LIGHT-MANAGER **
    212215******************/
     216ObjectListDefinition(LightManager);
    213217/**
    214218 *  standard constructor for a Light
     
    216220LightManager::LightManager ()
    217221{
    218   this->setClassID(CL_LIGHT_MANAGER, "LightManager");
     222  this->registerObject(this, LightManager::_objectList);
    219223
    220224  glEnable (GL_LIGHTING);
Note: See TracChangeset for help on using the changeset viewer.