goat3d
diff goatview/src/goatview.h @ 72:36e39632db75
- fixed exporter animation bounds calculation
- fixed missing scene name in exported meshes
- rewritting goatview as a full GUI app with Qt
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 06 May 2014 03:31:35 +0300 |
parents | |
children | 9862541fdcf5 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/goatview/src/goatview.h Tue May 06 03:31:35 2014 +0300 1.3 @@ -0,0 +1,36 @@ 1.4 +#ifndef GOATVIEW_H_ 1.5 +#define GOATVIEW_H_ 1.6 + 1.7 +#include <QtWidgets/QtWidgets> 1.8 +#include <QtOpenGL/QGLWidget> 1.9 + 1.10 +class GoatView : public QMainWindow { 1.11 + Q_OBJECT 1.12 +private: 1.13 + bool make_menu(); 1.14 + bool make_dock(); 1.15 + bool make_center(); 1.16 + 1.17 +private slots: 1.18 + void open_scene(); 1.19 + void open_anim(); 1.20 + 1.21 +public: 1.22 + GoatView(); 1.23 + ~GoatView(); 1.24 +}; 1.25 + 1.26 +class GoatViewport : public QGLWidget { 1.27 + Q_OBJECT 1.28 +public: 1.29 + GoatViewport(); 1.30 + ~GoatViewport(); 1.31 + 1.32 + QSize sizeHint() const; 1.33 + 1.34 + void initializeGL(); 1.35 + void resizeGL(int xsz, int ysz); 1.36 + void paintGL(); 1.37 +}; 1.38 + 1.39 +#endif // GOATVIEW_H_ 1.40 \ No newline at end of file