summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl.h
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-04-27 13:59:50 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-04-29 14:49:25 (GMT)
commit385d2d14bc7994c3abb1de11dacf9a81eea01d4a (patch)
tree5acc5f4bc1bf2eb84dc46392f5be91707a2e07dc /src/opengl/qgl.h
parentd8a7d478681eaa6d92b70e3836eddc0fd52e79ab (diff)
downloadQt-385d2d14bc7994c3abb1de11dacf9a81eea01d4a.zip
Qt-385d2d14bc7994c3abb1de11dacf9a81eea01d4a.tar.gz
Qt-385d2d14bc7994c3abb1de11dacf9a81eea01d4a.tar.bz2
Add QPlatformGLWidgetSurface to GL integrtation
This class is a way to for the GL platform integration to track the movement and resizing of a QGLWidget with respect to the top-level. Most platform implementations will seperate the surface from the context anyway, so this is a natural abstraction.
Diffstat (limited to 'src/opengl/qgl.h')
-rw-r--r--src/opengl/qgl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/opengl/qgl.h b/src/opengl/qgl.h
index b1e2ede..e389e3f 100644
--- a/src/opengl/qgl.h
+++ b/src/opengl/qgl.h
@@ -128,6 +128,10 @@ class QGLOverlayWidget;
class QGLWidgetPrivate;
class QGLContextPrivate;
+#ifdef Q_WS_LITE
+class QPlatformGLWidgetSurface;
+#endif
+
// Namespace class:
namespace QGL
{
@@ -531,6 +535,11 @@ public:
void drawTexture(const QPointF &point, QMacCompatGLuint textureId, QMacCompatGLenum textureTarget = GL_TEXTURE_2D);
#endif
+#ifdef Q_WS_LITE
+ // Used by the platform context to get at the surface which it created for the glwidget:
+ QPlatformGLWidgetSurface* platformSurface();
+#endif
+
public Q_SLOTS:
virtual void updateGL();
virtual void updateOverlayGL();