You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

renderwidget.h 517B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef RENDERWIDGET_H
  2. #define RENDERWIDGET_H
  3. #include <QGLWidget>
  4. #include "ugameengine.h"
  5. #include "openglrenderdevice.h"
  6. class RenderWidget : public QGLWidget
  7. {
  8. Q_OBJECT
  9. public:
  10. explicit RenderWidget(QWidget *parent = 0);
  11. protected:
  12. void initializeGL();
  13. void paintGL();
  14. void resizeGL(int width, int height);
  15. signals:
  16. public slots:
  17. void animate();
  18. void drawAxes();
  19. private:
  20. OpenGLRenderDevice* _device;
  21. int angle;
  22. UGameEngine* _engine;
  23. };
  24. #endif // RENDERWIDGET_H