1 // Implementation of OpenGL widget using Qt
4 // (C) 2010 Underground Software
12 class GLWidget
: public QGLWidget
17 GLWidget(QWidget
* parent
= 0);
20 void HandleMouseHiding(void);
21 void CheckAndRestoreMouseCursor(void);
22 // QSize minimumSizeHint() const;
23 // QSize sizeHint() const;
29 void initializeGL(void);
31 void resizeGL(int width
, int height
);
32 void mouseMoveEvent(QMouseEvent
*);
33 // void mousePressEvent(QMouseEvent * event);
34 // void mouseReleaseEvent(QMouseEvent * event);
37 void CreateTextures(void);
41 int textureWidth
, textureHeight
;
44 unsigned rasterWidth
, rasterHeight
;
51 int32_t hideMouseTimeout
;
54 #endif // __GLWIDGET_H__