Changeset 3543 in orxonox.OLD for orxonox/trunk/src/glmenu
- Timestamp:
- Mar 14, 2005, 10:14:41 AM (20 years ago)
- Location:
- orxonox/trunk/src/glmenu
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/glmenu/glmenu_imagescreen.cc
r3536 r3543 19 19 #include "glmenu_imagescreen.h" 20 20 21 #include "stdincl.h" 21 22 #include "material.h" 22 23 … … 27 28 GLMenuImageScreen* GLMenuImageScreen::getInstance() 28 29 { 29 if( singletonRef == NULL)30 if(!singletonRef) 30 31 singletonRef = new GLMenuImageScreen (); 31 32 return singletonRef; … … 45 46 /** 46 47 \brief standard deconstructor 48 */ 49 GLMenuImageScreen::~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 47 56 48 57 \todo this deconstructor is not jet implemented - do it 49 58 */ 50 GLMenuImageScreen::~GLMenuImageScreen() 59 void GLMenuImageScreen::destroy(void) 51 60 { 52 61 if (backMat) 53 62 delete backMat; 54 } 55 63 64 static_cast<BaseObject*>(this)->destroy(); 65 } 56 66 57 67 /** -
orxonox/trunk/src/glmenu/glmenu_imagescreen.h
r3476 r3543 8 8 #define _GLMENU_IMAGESCREEN_H 9 9 10 #include " stdincl.h"11 class Texture; 10 #include "base_object.h" 11 12 12 class Material; 13 13 … … 19 19 public: 20 20 ~GLMenuImageScreen (); 21 void destroy(void); 21 22 22 23 static GLMenuImageScreen* getInstance();
Note: See TracChangeset
for help on using the changeset viewer.