Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/gl_gui/glgui_mainwidget.h @ 5384

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

orxonox/trunk: introducing the GLGuiMainWidget-class, that is the topmost of all widgets

File size: 741 bytes
RevLine 
[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
[3955]11// FORWARD DEFINITION
[3655]12
13//! A default singleton class.
[5384]14class 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.