// Implementation of OpenGL widget using Qt
//
-// by James L. Hammons
+// by James Hammons
// (C) 2010 Underground Software
#ifndef __GLWIDGET_H__
GLWidget(QWidget * parent = 0);
~GLWidget();
+ void HandleMouseHiding(void);
+ void CheckAndRestoreMouseCursor(void);
// QSize minimumSizeHint() const;
// QSize sizeHint() const;
// void clicked();
protected:
- void initializeGL();
- void paintGL();
+ void initializeGL(void);
+ void paintGL(void);
void resizeGL(int width, int height);
+ void mouseMoveEvent(QMouseEvent *);
+// void mousePressEvent(QMouseEvent * event);
+// void mouseReleaseEvent(QMouseEvent * event);
+
+ private:
+ void CreateTextures(void);
-// private:
public:
GLuint texture;
int textureWidth, textureHeight;
bool synchronize;
unsigned filter;
+ int offset;
+ bool fullscreen;
+ int outputWidth;
+ int32_t hideMouseTimeout;
};
#endif // __GLWIDGET_H__