Changeset 4519 in orxonox.OLD for orxonox/trunk/src/lib/graphics
- Timestamp:
- Jun 6, 2005, 2:36:04 PM (20 years ago)
- Location:
- orxonox/trunk/src/lib/graphics
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/graphics_engine.cc
r4458 r4519 47 47 */ 48 48 GraphicsEngine* GraphicsEngine::singletonRef = NULL; 49 50 /**51 \returns A pointer to this GraphicsEngine52 */53 GraphicsEngine* GraphicsEngine::getInstance()54 {55 if (!GraphicsEngine::singletonRef)56 GraphicsEngine::singletonRef = new GraphicsEngine();57 return GraphicsEngine::singletonRef;58 }59 60 49 61 50 /** -
orxonox/trunk/src/lib/graphics/graphics_engine.h
r4458 r4519 25 25 { 26 26 public: 27 static GraphicsEngine* getInstance();28 27 virtual ~GraphicsEngine(); 28 /** \returns a Pointer to the only object of this Class */ 29 inline static GraphicsEngine* getInstance(void) { if (!singletonRef) singletonRef = new GraphicsEngine(); return singletonRef; }; 29 30 30 31 int initVideo(); -
orxonox/trunk/src/lib/graphics/light.cc
r4471 r4519 251 251 */ 252 252 LightManager* LightManager::singletonRef = NULL; 253 254 255 /**256 \returns The Instance of the Lights257 */258 LightManager* LightManager::getInstance(void)259 {260 if (!singletonRef)261 LightManager::singletonRef = new LightManager();262 return singletonRef;263 }264 265 253 266 254 /** -
orxonox/trunk/src/lib/graphics/light.h
r4469 r4519 106 106 public: 107 107 virtual ~LightManager(void); 108 static LightManager* getInstance(); 108 /** \returns a Pointer to the only object of this Class */ 109 inline static LightManager* getInstance(void) { if (!singletonRef) singletonRef = new LightManager(); return singletonRef; }; 109 110 110 111 // set Attributes -
orxonox/trunk/src/lib/graphics/text_engine.cc
r4518 r4519 814 814 815 815 /** 816 \returns a Pointer to this Class817 */818 TextEngine* TextEngine::getInstance(void)819 {820 if (!TextEngine::singletonRef)821 TextEngine::singletonRef = new TextEngine();822 return TextEngine::singletonRef;823 }824 825 /**826 816 \brief standard deconstructor 827 817 -
orxonox/trunk/src/lib/graphics/text_engine.h
r4458 r4519 205 205 { 206 206 public: 207 static TextEngine* getInstance(void);208 207 virtual ~TextEngine(void); 208 /** \returns a Pointer to the only object of this Class */ 209 inline static TextEngine* getInstance(void) { if (!singletonRef) singletonRef = new TextEngine(); return singletonRef; }; 209 210 210 211 Text* createText(const char* fontFile,
Note: See TracChangeset
for help on using the changeset viewer.