summaryrefslogtreecommitdiff
path: root/src/gui/GLWidget.h
blob: b2cd02d1fd3106d2caff4a435a4fc1621d92a5b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#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;

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