Changeset 5366 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_handler.h
- Timestamp:
- Oct 12, 2005, 1:23:08 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_handler.h
r5316 r5366 4 4 */ 5 5 6 #ifndef _ PROTO_SINGLETON_H7 #define _ PROTO_SINGLETON_H6 #ifndef _GLGUI_HANDLER_H 7 #define _GLGUI_HANDLER_H 8 8 9 9 #include "base_object.h" … … 12 12 13 13 //! A default singleton class. 14 class ProtoSingleton: public BaseObject {14 class GLGuiHandler : public BaseObject { 15 15 16 16 public: 17 virtual ~ ProtoSingleton(void);17 virtual ~GLGuiHandler(void); 18 18 /** @returns a Pointer to the only object of this Class */ 19 inline static ProtoSingleton* getInstance(void) { if (!singletonRef) singletonRef = new ProtoSingleton(); return singletonRef; };19 inline static GLGuiHandler* getInstance(void) { if (!singletonRef) singletonRef = new GLGuiHandler(); return singletonRef; }; 20 20 21 21 private: 22 ProtoSingleton(void);23 static ProtoSingleton* singletonRef;22 GLGuiHandler(void); 23 static GLGuiHandler* singletonRef; 24 24 }; 25 25 26 #endif /* _ PROTO_SINGLETON_H */26 #endif /* _GLGUI_HANDLER_H */
Note: See TracChangeset
for help on using the changeset viewer.