Changeset 7779 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_handler.h
- Timestamp:
- May 23, 2006, 10:04:17 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_handler.h
r5406 r7779 9 9 #include "event_listener.h" 10 10 11 // FORWARD DECLARATION 11 namespace OrxGui 12 { 13 // FORWARD DECLARATION 12 14 13 //! A singleton class for the GLGui-Handler 14 class GLGuiHandler : public EventListener { 15 //! A singleton class for the GLGui-Handler 16 class GLGuiHandler : public EventListener 17 { 15 18 16 public:17 virtual ~GLGuiHandler(void);18 /** @returns a Pointer to the only object of this Class */19 inline static GLGuiHandler* getInstance(void) { if (!GLGuiHandler::singletonRef) GLGuiHandler::singletonRef = new GLGuiHandler(); return GLGuiHandler::singletonRef; };19 public: 20 virtual ~GLGuiHandler(void); 21 /** @returns a Pointer to the only object of this Class */ 22 inline static GLGuiHandler* getInstance(void) { if (!GLGuiHandler::singletonRef) GLGuiHandler::singletonRef = new GLGuiHandler(); return GLGuiHandler::singletonRef; }; 20 23 21 void activate();22 void deactivate();24 void activate(); 25 void deactivate(); 23 26 24 27 25 virtual void process(const Event &event);26 void draw();27 void tick(float dt);28 virtual void process(const Event &event); 29 void draw(); 30 void tick(float dt); 28 31 29 private:30 GLGuiHandler(void);31 static GLGuiHandler* singletonRef;32 private: 33 GLGuiHandler(void); 34 static GLGuiHandler* singletonRef; 32 35 33 36 34 bool isActive; 35 }; 37 bool isActive; 38 }; 39 } 36 40 37 41 #endif /* _GLGUI_HANDLER_H */
Note: See TracChangeset
for help on using the changeset viewer.