diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-08-03 06:46:44 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-08-03 10:00:12 (GMT) |
commit | c0eb289559705e15fe13013c72a218e647ad6d90 (patch) | |
tree | 1f734f40e39ebf0a40c8a44ee245fd5e306d2364 /src/gui/kernel/qplatformglcontext_qpa.h | |
parent | 6e0edcce4c215f01416a5ee8467b7abe4665e592 (diff) | |
download | Qt-c0eb289559705e15fe13013c72a218e647ad6d90.zip Qt-c0eb289559705e15fe13013c72a218e647ad6d90.tar.gz Qt-c0eb289559705e15fe13013c72a218e647ad6d90.tar.bz2 |
Make it possible to view what format a QPlatformGlContext has
QPlatformGlContext has now a pure virtual format getter.
The way its intended to work is that the tlw has a QPlatformWindowFormat
which is the requested format. Once you get the QPlatformGlContext of
the window, you can request the QPlatformWindowFormat of the context to
see what you really got.
Diffstat (limited to 'src/gui/kernel/qplatformglcontext_qpa.h')
-rw-r--r-- | src/gui/kernel/qplatformglcontext_qpa.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/kernel/qplatformglcontext_qpa.h b/src/gui/kernel/qplatformglcontext_qpa.h index 9f3bfb3..d235848 100644 --- a/src/gui/kernel/qplatformglcontext_qpa.h +++ b/src/gui/kernel/qplatformglcontext_qpa.h @@ -51,16 +51,19 @@ 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); }; |