summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-04-08 10:29:07 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-04-08 10:29:07 (GMT)
commit7b3f1a992e25739a8a28cf0470ba58fd31a46e7b (patch)
tree39985008d6fb1efededc7926e273733c2750aaca /src/opengl
parent0e342cd341f8d71b41de89340cbbf455694becc9 (diff)
downloadQt-7b3f1a992e25739a8a28cf0470ba58fd31a46e7b.zip
Qt-7b3f1a992e25739a8a28cf0470ba58fd31a46e7b.tar.gz
Qt-7b3f1a992e25739a8a28cf0470ba58fd31a46e7b.tar.bz2
Rename qglplatformintegration_lite.h & add QGLWidget surface
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/opengl.pro2
-rw-r--r--src/opengl/qgl_lite.cpp10
-rw-r--r--src/opengl/qgl_p.h2
-rw-r--r--src/opengl/qglplatformintegration_lite.h (renamed from src/opengl/qplatformglcontext_lite.h)11
4 files changed, 22 insertions, 3 deletions
diff --git a/src/opengl/opengl.pro b/src/opengl/opengl.pro
index cebb677..42608e3 100644
--- a/src/opengl/opengl.pro
+++ b/src/opengl/opengl.pro
@@ -78,7 +78,7 @@ SOURCES += qgl.cpp \
embedded_lite {
SOURCES += qgl_lite.cpp
- HEADERS += qplatformglcontext_lite.h
+ HEADERS += qglplatformintegration_lite.h
# If we have EGL, use the EGL implementation of QGLPixelBuffer, otherwise we just provide
# a stubbed out one. PBuffers aren't too interesting anyway.
diff --git a/src/opengl/qgl_lite.cpp b/src/opengl/qgl_lite.cpp
index db1077d..a46593e 100644
--- a/src/opengl/qgl_lite.cpp
+++ b/src/opengl/qgl_lite.cpp
@@ -47,7 +47,7 @@
#include "qgl.h"
#include "qgl_p.h"
-#include "qplatformglcontext_lite.h"
+#include "qglplatformintegration_lite.h"
QT_BEGIN_NAMESPACE
@@ -60,6 +60,14 @@ QPlatformGLContext::~QPlatformGLContext()
{
}
+QPlatformGLWidgetSurface::QPlatformGLWidgetSurface(QGLWidget*)
+{
+}
+
+QPlatformGLWidgetSurface::~QPlatformGLWidgetSurface()
+{
+}
+
bool QGLFormat::hasOpenGL()
{
diff --git a/src/opengl/qgl_p.h b/src/opengl/qgl_p.h
index f53b3e2..6405a54 100644
--- a/src/opengl/qgl_p.h
+++ b/src/opengl/qgl_p.h
@@ -69,7 +69,7 @@
#endif
#if defined(Q_WS_LITE)
-#include <qplatformglcontext_lite.h>
+#include <qglplatformintegration_lite.h>
#endif
QT_BEGIN_NAMESPACE
diff --git a/src/opengl/qplatformglcontext_lite.h b/src/opengl/qglplatformintegration_lite.h
index 10c05f6..d5bae45 100644
--- a/src/opengl/qplatformglcontext_lite.h
+++ b/src/opengl/qglplatformintegration_lite.h
@@ -63,6 +63,17 @@ public:
};
+// QGLPlatformWidgetSurface does _not_ inherit from QWindowSurface
+// - The backing store may be totally unaware of it's existance.
+class QPlatformGLWidgetSurface
+{
+public:
+ QPlatformGLWidgetSurface(QGLWidget*);
+ virtual ~QPlatformGLWidgetSurface();
+
+ virtual void setGeometry(const QRect&) = 0;
+};
+
QT_END_NAMESPACE