diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-02-16 16:38:25 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-03-02 08:24:23 (GMT) |
commit | d0a2d10dfac7be20af78988a3351d374acfdd208 (patch) | |
tree | 230fd26b88da3e35808fac015abb1ccfca59f6e8 /src/gui/egl/qegl_p.h | |
parent | 6378d3d0e851f6af3e518ff53351de3253368026 (diff) | |
download | Qt-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.h | 3 |
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*); }; |