Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3543 in orxonox.OLD for orxonox/trunk/src/light.cc


Ignore:
Timestamp:
Mar 14, 2005, 10:14:41 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: some more classes now destroy themselves via virtual-destructors and call to predecessing destroy-function
also made
#include "stdincl.h" out of unnecessary h-files, so we got faster compile time.

File:
1 edited

Legend:

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

    r3453 r3543  
    5252Light::~Light ()
    5353{
     54  this->destroy();
     55}
     56
     57
     58/**
     59   \brief frees all alocated memory
     60
     61   and in this case also deletes the lightSources and GL_LIGHTING
     62*/
     63void Light::destroy(void)
     64{
    5465  glDisable(GL_LIGHTING);
    5566 
     
    5869  delete lights;
    5970  Light::singletonRef = NULL;
    60 }
     71
     72  static_cast<WorldEntity*>(this)->destroy();
     73}
     74
    6175
    6276/**
Note: See TracChangeset for help on using the changeset viewer.