Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/terrain.old/src/lib/gui/gl/glgui_mainwidget.h @ 10657

Last change on this file since 10657 was 8145, checked in by bensch, 19 years ago

trunk: merged the gui back
merged with command:
svn merge -r8114:HEAD https://svn.orxonox.net/orxonox/branches/gui .
→ no conflicts

File size: 762 bytes
Line 
1/*!
2 * @file glgui_mainwidget.h
3 * @brief Definition of the glGui singleton Class
4 */
5
6#ifndef _GLGUI_MAINWIDGET_H
7#define _GLGUI_MAINWIDGET_H
8
9#include "glgui_widget.h"
10
11namespace OrxGui
12{
13
14  //! A default singleton class.
15  class GLGuiMainWidget : public GLGuiWidget
16  {
17
18  public:
19    virtual ~GLGuiMainWidget(void);
20    /** @returns a Pointer to the only object of this Class */
21    inline static GLGuiMainWidget* getInstance(void) { if (!GLGuiMainWidget::singletonRef) GLGuiMainWidget::singletonRef = new GLGuiMainWidget();  return GLGuiMainWidget::singletonRef; };
22
23  virtual void update() {};
24    virtual void draw() const {};
25
26  private:
27    GLGuiMainWidget(void);
28    static GLGuiMainWidget*       singletonRef;
29  };
30}
31
32#endif /* _GLGUI_MAINWIDGET_H */
Note: See TracBrowser for help on using the repository browser.