Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/gl/glgui_mainwidget.h @ 9869

Last change on this file since 9869 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 805 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    ObjectListDeclaration(GLGuiMainWidget);
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.