Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Mar 14, 2005, 10:14:41 AM (19 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/camera.cc

    r3537 r3543  
    5151Camera::~Camera ()
    5252{
     53  this->destroy();
     54}
     55
     56/**
     57   \brief deletes all allocated memory
     58*/
     59void Camera::destroy(void)
     60{
     61  this->bound = NULL;
     62  this->world = NULL;
     63
     64  static_cast<WorldEntity*>(this)->destroy();
    5365}
    5466
     
    275287
    276288
    277 /**
    278    \brief destroy, reset the camera so that it doesn't perform anything anymore
    279 
    280 */
    281 void Camera::destroy()
    282 {
    283   this->bound = NULL;
    284   this->world = NULL;
    285 }
Note: See TracChangeset for help on using the changeset viewer.