gameglwidget.h 690 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef GAMEGLWIDGET_H
  2. #define GAMEGLWIDGET_H
  3. #include <QGLWidget>
  4. #include "GameApp.h"
  5. #ifdef USE_GOOM_MONITOR
  6. #include <goommonitorsession.h>
  7. #include <goommonitorplugin.hrh>
  8. #endif
  9. class GameGLWidget : public QGLWidget
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit GameGLWidget(GF::GameApp *game, QWidget *parent = 0);
  14. virtual ~GameGLWidget();
  15. void uninitializeGL();
  16. virtual void initializeGL();
  17. virtual void resizeGL(int w, int h);
  18. virtual void paintGL();
  19. signals:
  20. public slots:
  21. protected:
  22. GF::GameApp *game;
  23. #ifdef USE_GOOM_MONITOR
  24. RGOomMonitorSession iGoom;
  25. #endif
  26. bool gamePrepared;
  27. };
  28. #endif // GAMEGLWIDGET_H