diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-02-16 08:38:23 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-03-02 08:24:23 (GMT) |
commit | 56d32b57814cb35409bc9b0076ec753de488ae7f (patch) | |
tree | 34c96cff78ea5cbfb128a72c2b9a86bf2e63a86b /src/gui/egl/qeglproperties_p.h | |
parent | b2b9dc03fc01a8387e74591642fa15b272845e2b (diff) | |
download | Qt-56d32b57814cb35409bc9b0076ec753de488ae7f.zip Qt-56d32b57814cb35409bc9b0076ec753de488ae7f.tar.gz Qt-56d32b57814cb35409bc9b0076ec753de488ae7f.tar.bz2 |
Move qegl_p.h -> qeglcontext_p.h and add a new qegl_p.h
This puts the QEgl namespace in a single file which can be used by
both qeglcontext and qeglproperties. Files which need QEglContext
should now include qeglcontext_p.h.
Reviewed-By: Aleksandar Sasha Babic
Diffstat (limited to 'src/gui/egl/qeglproperties_p.h')
-rw-r--r-- | src/gui/egl/qeglproperties_p.h | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/src/gui/egl/qeglproperties_p.h b/src/gui/egl/qeglproperties_p.h index feed1d2..496847b 100644 --- a/src/gui/egl/qeglproperties_p.h +++ b/src/gui/egl/qeglproperties_p.h @@ -56,50 +56,10 @@ #include <QtCore/qvarlengtharray.h> #include <QtGui/qimage.h> -QT_BEGIN_INCLUDE_NAMESPACE - -#if defined(QT_GLES_EGL) -#include <GLES/egl.h> -#else -#include <EGL/egl.h> -#endif - -#if defined(Q_WS_X11) -// If <EGL/egl.h> included <X11/Xlib.h>, then the global namespace -// may have been polluted with X #define's. The following makes sure -// the X11 headers were included properly and then cleans things up. -#include <X11/Xlib.h> -#include <X11/Xutil.h> -#undef Bool -#undef Status -#undef None -#undef KeyPress -#undef KeyRelease -#undef FocusIn -#undef FocusOut -#undef Type -#undef FontChange -#undef CursorShape -#endif - -QT_END_INCLUDE_NAMESPACE +#include <QtGui/private/qegl_p.h> QT_BEGIN_NAMESPACE -namespace QEgl { - enum API - { - OpenGL, - OpenVG - }; - - enum PixelFormatMatch - { - ExactPixelFormat, - BestPixelFormat - }; -}; - class QX11Info; class QPaintDevice; |