summaryrefslogtreecommitdiffstats
path: root/src/gui/egl/qegl_p.h
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-02-16 16:38:25 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-03-02 08:24:23 (GMT)
commitd0a2d10dfac7be20af78988a3351d374acfdd208 (patch)
tree230fd26b88da3e35808fac015abb1ccfca59f6e8 /src/gui/egl/qegl_p.h
parent6378d3d0e851f6af3e518ff53351de3253368026 (diff)
downloadQt-d0a2d10dfac7be20af78988a3351d374acfdd208.zip
Qt-d0a2d10dfac7be20af78988a3351d374acfdd208.tar.gz
Qt-d0a2d10dfac7be20af78988a3351d374acfdd208.tar.bz2
Make QEgl::createSurface cross-platform and add native getters
QEgl::createSurface was virtually identical for every platform apart from the line which returned the native window type. This patch just adds QEgl::nativePixmap and QEgl::nativeWindow which are platform specific (though the default widget->winId() works for everything apart from symbian). Reviewed-By: Aleksandar Sasha Babic
Diffstat (limited to 'src/gui/egl/qegl_p.h')
-rw-r--r--src/gui/egl/qegl_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/egl/qegl_p.h b/src/gui/egl/qegl_p.h
index a50e4e1..8a9d815 100644
--- a/src/gui/egl/qegl_p.h
+++ b/src/gui/egl/qegl_p.h
@@ -128,7 +128,10 @@ namespace QEgl {
Q_GUI_EXPORT bool hasExtension(const char* extensionName);
Q_GUI_EXPORT EGLDisplay display();
+
Q_GUI_EXPORT EGLNativeDisplayType nativeDisplay();
+ Q_GUI_EXPORT EGLNativeWindowType nativeWindow(QWidget*);
+ Q_GUI_EXPORT EGLNativePixmapType nativePixmap(QPixmap*);
};