diff options
Diffstat (limited to 'src/opengl_widget.hh')
-rw-r--r-- | src/opengl_widget.hh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/opengl_widget.hh b/src/opengl_widget.hh index 48cb276..9259784 100644 --- a/src/opengl_widget.hh +++ b/src/opengl_widget.hh @@ -16,6 +16,16 @@ class OpenGLWidget : public QOpenGLWidget, public QOpenGLFunctions_4_4_Core { GLuint pos_attr, proj_attr, view_attr, model_attr; + QMatrix4x4 rot, rot_start; + GLfloat cam_dist = 1; + QPoint mouse_pos; + +protected: + virtual void mousePressEvent(QMouseEvent *e); + virtual void mouseReleaseEvent(QMouseEvent *e); + virtual void mouseMoveEvent(QMouseEvent *e); + virtual void wheelEvent(QWheelEvent *e); + public: static OpenGLWidget *instance; |