Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/gl_gui/glgui_handler.h @ 5418

Last change on this file since 5418 was 5406, checked in by bensch, 19 years ago

orxonox/trunk: update the Element2D-tree in the right order

File size: 821 bytes
Line 
1/*!
2 * @file proto_singleton.h
3 * @brief Definition of the GLGuiHandler singleton Class
4*/
5
6#ifndef _GLGUI_HANDLER_H
7#define _GLGUI_HANDLER_H
8
9#include "event_listener.h"
10
11// FORWARD DECLARATION
12
13//! A singleton class for the GLGui-Handler
14class GLGuiHandler : public EventListener {
15
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; };
20
21  void activate();
22  void deactivate();
23
24
25  virtual void process(const Event &event);
26  void draw();
27  void tick(float dt);
28
29 private:
30  GLGuiHandler(void);
31  static GLGuiHandler* singletonRef;
32
33
34  bool                 isActive;
35};
36
37#endif /* _GLGUI_HANDLER_H */
Note: See TracBrowser for help on using the repository browser.