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/plugins/platforms/eglconvenience/qeglconvenience.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/plugins/platforms/eglconvenience/qeglconvenience.h')
-rw-r--r-- | src/plugins/platforms/eglconvenience/qeglconvenience.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/eglconvenience/qeglconvenience.h b/src/plugins/platforms/eglconvenience/qeglconvenience.h index bd5a6d3..12731e1 100644 --- a/src/plugins/platforms/eglconvenience/qeglconvenience.h +++ b/src/plugins/platforms/eglconvenience/qeglconvenience.h @@ -46,9 +46,13 @@ #include <QtGui/QPlatformWindowFormat> #include <QtCore/QVector> +QT_BEGIN_NAMESPACE + QVector<EGLint> q_createConfigAttributesFromFormat(const QPlatformWindowFormat &format); bool q_reduceConfigAttributes(QVector<EGLint> *configAttributes); EGLConfig q_configFromQPlatformWindowFormat(EGLDisplay display, const QPlatformWindowFormat &format); +QPlatformWindowFormat qt_qPlatformWindowFormatFromConfig(EGLDisplay display, const EGLConfig config); +QT_END_NAMESPACE #endif //QEGLCONVENIENCE_H |