Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Mar 14, 2005, 10:54:00 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: now the delete-process is as inteded by c++
virtual ~ClassName extends deletion and deletes also the MasterClass

File:
1 edited

Legend:

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

    r3543 r3544  
    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 */
    63 void Light::destroy(void)
    64 {
    6554  glDisable(GL_LIGHTING);
    6655 
     
    6958  delete lights;
    7059  Light::singletonRef = NULL;
    71 
    72   static_cast<WorldEntity*>(this)->destroy();
    73 }
    74 
     60}
    7561
    7662/**
Note: See TracChangeset for help on using the changeset viewer.