summaryrefslogtreecommitdiffstats
path: root/src/gui/egl/qegl_p.h
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-02-19 14:54:09 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-03-02 08:24:24 (GMT)
commit4c5549269144eae79bdcefc7119b2adf3044e000 (patch)
treef0496ad86d154060eb50fc2041b1a731dd941349 /src/gui/egl/qegl_p.h
parent551b41e20118b66edb37704a0cfbfe5d3a960067 (diff)
downloadQt-4c5549269144eae79bdcefc7119b2adf3044e000.zip
Qt-4c5549269144eae79bdcefc7119b2adf3044e000.tar.gz
Qt-4c5549269144eae79bdcefc7119b2adf3044e000.tar.bz2
Add getCompatibleVisualId to QEgl on X11
This method takes an EGLConfig and hands back an X11 VisualID which can be used to create native windows/pixmaps which will have an EGL surface created for them using the given EGL config. Reviewed-By: TrustMe
Diffstat (limited to 'src/gui/egl/qegl_p.h')
-rw-r--r--src/gui/egl/qegl_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/egl/qegl_p.h b/src/gui/egl/qegl_p.h
index 1a5e4c0..7f753d0 100644
--- a/src/gui/egl/qegl_p.h
+++ b/src/gui/egl/qegl_p.h
@@ -147,6 +147,10 @@ namespace QEgl {
Q_GUI_EXPORT EGLNativeDisplayType nativeDisplay();
Q_GUI_EXPORT EGLNativeWindowType nativeWindow(QWidget*);
Q_GUI_EXPORT EGLNativePixmapType nativePixmap(QPixmap*);
+
+#ifdef Q_WS_X11
+ Q_GUI_EXPORT VisualID getCompatibleVisualId(EGLConfig config);
+#endif
};