Last change
on this file since 6870 was
5405,
checked in by bensch, 19 years ago
|
orxonox/trunk: renamed definition to the right term declaration…
|
File size:
742 bytes
|
Rev | Line | |
---|
[4838] | 1 | /*! |
---|
[5384] | 2 | * @file glgui_mainwidget.h |
---|
| 3 | * @brief Definition of the glGui singleton Class |
---|
| 4 | */ |
---|
[3655] | 5 | |
---|
[5384] | 6 | #ifndef _GLGUI_MAINWIDGET_H |
---|
| 7 | #define _GLGUI_MAINWIDGET_H |
---|
[3655] | 8 | |
---|
[5384] | 9 | #include "glgui_widget.h" |
---|
[3655] | 10 | |
---|
[5405] | 11 | // FORWARD DECLARATION |
---|
[3655] | 12 | |
---|
| 13 | //! A default singleton class. |
---|
[5384] | 14 | class GLGuiMainWidget : public GLGuiWidget { |
---|
[3655] | 15 | |
---|
| 16 | public: |
---|
[5384] | 17 | virtual ~GLGuiMainWidget(void); |
---|
[4838] | 18 | /** @returns a Pointer to the only object of this Class */ |
---|
[5384] | 19 | inline static GLGuiMainWidget* getInstance(void) { if (!GLGuiMainWidget::singletonRef) GLGuiMainWidget::singletonRef = new GLGuiMainWidget(); return GLGuiMainWidget::singletonRef; }; |
---|
[3655] | 20 | |
---|
[5384] | 21 | virtual void update() {}; |
---|
| 22 | virtual void draw() const {}; |
---|
| 23 | |
---|
[3655] | 24 | private: |
---|
[5384] | 25 | GLGuiMainWidget(void); |
---|
| 26 | static GLGuiMainWidget* singletonRef; |
---|
[3655] | 27 | }; |
---|
| 28 | |
---|
[5384] | 29 | #endif /* _GLGUI_MAINWIDGET_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.