Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3543 in orxonox.OLD for orxonox/trunk/src/glmenu


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.

Location:
orxonox/trunk/src/glmenu
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/glmenu/glmenu_imagescreen.cc

    r3536 r3543  
    1919#include "glmenu_imagescreen.h"
    2020
     21#include "stdincl.h"
    2122#include "material.h"
    2223
     
    2728GLMenuImageScreen* GLMenuImageScreen::getInstance()
    2829{
    29   if( singletonRef == NULL)
     30  if(!singletonRef)
    3031    singletonRef = new GLMenuImageScreen ();
    3132  return singletonRef;
     
    4546/**
    4647   \brief standard deconstructor
     48*/
     49GLMenuImageScreen::~GLMenuImageScreen()
     50{
     51  this->destroy();
     52}
     53
     54/**
     55   \brief deletes all alocated Memory and also deletes everything from the Class this one is erived from
    4756
    4857   \todo this deconstructor is not jet implemented - do it
    4958*/
    50 GLMenuImageScreen::~GLMenuImageScreen()
     59void GLMenuImageScreen::destroy(void)
    5160{
    5261  if (backMat)
    5362    delete backMat;
    54 }
    55 
     63
     64  static_cast<BaseObject*>(this)->destroy();
     65}
    5666
    5767/**
  • orxonox/trunk/src/glmenu/glmenu_imagescreen.h

    r3476 r3543  
    88#define _GLMENU_IMAGESCREEN_H
    99
    10 #include "stdincl.h"
    11 class Texture;
     10#include "base_object.h"
     11
    1212class Material;
    1313
     
    1919 public:
    2020  ~GLMenuImageScreen ();
     21  void destroy(void);
    2122
    2223  static GLMenuImageScreen* getInstance();
Note: See TracChangeset for help on using the changeset viewer.