Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6512 in orxonox.OLD for trunk/src/lib/graphics/light.h


Ignore:
Timestamp:
Jan 17, 2006, 10:01:07 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: loadParams is now virtual.
ALL THE CLASSES HAVE TO CALL

SuperClass::loadParams(root);

isntead of:
static_cast<SuperClass*>(this)→loadParams(root);

which was quite stupid anyways

File:
1 edited

Legend:

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

    r5405 r6512  
    2929  virtual ~Light();
    3030
    31   void loadParams(const TiXmlElement* root);
     31  virtual void loadParams(const TiXmlElement* root);
    3232
    3333  void setDiffuseColor(GLfloat r, GLfloat g, GLfloat b);
     
    9595  inline static LightManager* getInstance() { if (!singletonRef) singletonRef = new LightManager();  return singletonRef; };
    9696
    97   void loadParams(const TiXmlElement* root);
     97  virtual void loadParams(const TiXmlElement* root);
    9898  void loadLights(const TiXmlElement* root);
    9999
Note: See TracChangeset for help on using the changeset viewer.