goat3d
view goatview/src/goatview.h @ 81:7458b8568463
forgot to add opengl.h/c
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 08 May 2014 23:05:29 +0300 |
parents | 9785847d52d4 |
children | 70b7c41a4f17 |
line source
1 #ifndef GOATVIEW_H_
2 #define GOATVIEW_H_
4 #include <QtCore/QtCore>
5 #include <QtWidgets/QtWidgets>
6 #include <QtOpenGL/QGLWidget>
7 #include "goat3d.h"
9 extern goat3d *scene;
10 extern QSettings *settings;
12 bool load_scene(const char *fname);
14 class GoatView : public QMainWindow {
15 Q_OBJECT
16 private:
17 void closeEvent(QCloseEvent *ev);
18 bool make_menu();
19 bool make_dock();
20 bool make_center();
22 private slots:
23 void open_scene();
24 void open_anim();
26 public:
27 GoatView();
28 ~GoatView();
29 };
31 class GoatViewport : public QGLWidget {
32 Q_OBJECT
33 public:
34 GoatViewport();
35 ~GoatViewport();
37 QSize sizeHint() const;
39 void initializeGL();
40 void resizeGL(int xsz, int ysz);
41 void paintGL();
43 void mousePressEvent(QMouseEvent *ev);
44 void mouseMoveEvent(QMouseEvent *ev);
45 };
47 #endif // GOATVIEW_H_