summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformglcontext_qpa.h
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-08-05 09:58:55 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2010-08-05 09:58:55 (GMT)
commit2144aece152bc34faff5b25632e808e96d523f48 (patch)
tree7a3762788646792cd131f13ce4115111d16790fe /src/gui/kernel/qplatformglcontext_qpa.h
parentbabf1ff43584b454ac24728fbf93bf291b9f36d1 (diff)
parent1be2e830da7aa09f92d8cdca906f8a588cd10381 (diff)
downloadQt-2144aece152bc34faff5b25632e808e96d523f48.zip
Qt-2144aece152bc34faff5b25632e808e96d523f48.tar.gz
Qt-2144aece152bc34faff5b25632e808e96d523f48.tar.bz2
Merge remote branch 'lighthouse/4.7' into lighthouse-master
Diffstat (limited to 'src/gui/kernel/qplatformglcontext_qpa.h')
-rw-r--r--src/gui/kernel/qplatformglcontext_qpa.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/kernel/qplatformglcontext_qpa.h b/src/gui/kernel/qplatformglcontext_qpa.h
index dcfd54c..d235848 100644
--- a/src/gui/kernel/qplatformglcontext_qpa.h
+++ b/src/gui/kernel/qplatformglcontext_qpa.h
@@ -51,13 +51,21 @@ QT_BEGIN_NAMESPACE
class Q_OPENGL_EXPORT QPlatformGLContext
{
public:
- virtual ~QPlatformGLContext() { }
+ virtual ~QPlatformGLContext();
virtual void makeCurrent() = 0;
virtual void doneCurrent() = 0;
virtual void swapBuffers() = 0;
virtual void* getProcAddress(const QString& procName) = 0;
+ virtual QPlatformWindowFormat platformWindowFormat() const = 0;
+
+ static QPlatformGLContext *defaultSharedContext();
+
+protected:
+
+ static void setDefaultSharedContext(QPlatformGLContext *sharedContext);
+
};
QT_END_NAMESPACE