Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4737 in orxonox.OLD for orxonox/trunk/src/lib


Ignore:
Timestamp:
Jun 30, 2005, 1:13:57 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: lights now register themselves at the LightManager, as it is with all other engines too

Location:
orxonox/trunk/src/lib/graphics
Files:
2 edited

Legend:

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

    r4736 r4737  
    7979
    8080/**
    81  * \brief initializes a Light
    82  */
    83 void Light::init()
    84 {
    85 }
    86 
    87 /**
    8881 * \param root The XML-element to load the Light from
    8982 */
     
    241234  glDisable(GL_LIGHTING);
    242235
    243   // this will be done either by PNode-tree as each light is one of them
    244   //  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];
    246239  delete lights;
    247240  LightManager::singletonRef = NULL;
     
    315308    if (this->lights[i] == light)
    316309    {
    317       this->lights[i] == NULL;
     310      this->lights[i] = NULL;
     311      return;
    318312    }
    319313  }
  • orxonox/trunk/src/lib/graphics/light.h

    r4736 r4737  
    2929  virtual ~Light(void);
    3030
    31   void init();
    3231  void loadParams(const TiXmlElement* root);
    3332
Note: See TracChangeset for help on using the changeset viewer.