diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-07-23 07:46:23 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-07-23 11:28:36 (GMT) |
commit | 699d74a9fae0b2d03e5c74bfb9590f6f0809ef4e (patch) | |
tree | b5a5b787558e74497b84dbcd73ff614e7642630f /src/gui/kernel/qplatformglcontext_qpa.h | |
parent | be08fbc13f7370b6cc0c34660b4d1c16e4fdd3f5 (diff) | |
download | Qt-699d74a9fae0b2d03e5c74bfb9590f6f0809ef4e.zip Qt-699d74a9fae0b2d03e5c74bfb9590f6f0809ef4e.tar.gz Qt-699d74a9fae0b2d03e5c74bfb9590f6f0809ef4e.tar.bz2 |
Make it possible to have shared contexts to Lighthouse
This adds a getter to QPlatformGLContext for the "default shared
context". The setter is protected as it is the plugins responsibillity
to create it or not. QPlatformWindowFormat has also gotten a pointer to
a QPlatformGLContext for a non default shared context. Only implemented
shared contexts in testlite for now.
Diffstat (limited to 'src/gui/kernel/qplatformglcontext_qpa.h')
-rw-r--r-- | src/gui/kernel/qplatformglcontext_qpa.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformglcontext_qpa.h b/src/gui/kernel/qplatformglcontext_qpa.h index dcfd54c..9f3bfb3 100644 --- a/src/gui/kernel/qplatformglcontext_qpa.h +++ b/src/gui/kernel/qplatformglcontext_qpa.h @@ -58,6 +58,11 @@ public: virtual void swapBuffers() = 0; virtual void* getProcAddress(const QString& procName) = 0; + static QPlatformGLContext *defaultSharedContext(); + +protected: + static void setDefaultSharedContext(QPlatformGLContext *sharedContext); + }; QT_END_NAMESPACE |