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 483B

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