Last change
on this file since 5886 was
5405,
checked in by bensch, 19 years ago
|
orxonox/trunk: renamed definition to the right term declaration…
|
File size:
742 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 | |
---|
11 | // FORWARD DECLARATION |
---|
12 | |
---|
13 | //! A default singleton class. |
---|
14 | class GLGuiMainWidget : public GLGuiWidget { |
---|
15 | |
---|
16 | public: |
---|
17 | virtual ~GLGuiMainWidget(void); |
---|
18 | /** @returns a Pointer to the only object of this Class */ |
---|
19 | inline static GLGuiMainWidget* getInstance(void) { if (!GLGuiMainWidget::singletonRef) GLGuiMainWidget::singletonRef = new GLGuiMainWidget(); return GLGuiMainWidget::singletonRef; }; |
---|
20 | |
---|
21 | virtual void update() {}; |
---|
22 | virtual void draw() const {}; |
---|
23 | |
---|
24 | private: |
---|
25 | GLGuiMainWidget(void); |
---|
26 | static GLGuiMainWidget* singletonRef; |
---|
27 | }; |
---|
28 | |
---|
29 | #endif /* _GLGUI_MAINWIDGET_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.