summaryrefslogblamecommitdiff
path: root/src/gui/GLWidget.h
blob: 73124f5b6c40b0e2070e055c1531d681bc7bd7f0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                       



                    
          
 









                                                    
#ifndef GLWIDGET_H
#define GLWIDGET_H

#include <QGLWidget>
class GLWidget : public QGLWidget
{
	Q_OBJECT

public:
	GLWidget (QWidget* parent = 0);
	~GLWidget ();

	QSize minimumSizeHint () const;
	QSize sizeHint () const;

	double eyeX;
	double eyeY;
	double eyeZ;

protected:

	void initializeGL ();
	void paintGL ();
	void resizeGL (int width, int height);
	void mousePressEvent (QMouseEvent* event);
	void mouseReleaseEvent (QMouseEvent* event);
	void keyPressEvent (QKeyEvent* event);
	void keyReleaseEvent (QKeyEvent* event);
};

#endif