56 #include <QtCore/qvarlengtharray.h> |
56 #include <QtCore/qvarlengtharray.h> |
57 #include <QtGui/qimage.h> |
57 #include <QtGui/qimage.h> |
58 |
58 |
59 QT_BEGIN_INCLUDE_NAMESPACE |
59 QT_BEGIN_INCLUDE_NAMESPACE |
60 |
60 |
|
61 #ifndef QT_NO_EGL |
61 #if defined(QT_OPENGL_ES_2) |
62 #if defined(QT_OPENGL_ES_2) |
62 # include <GLES2/gl2.h> |
63 # include <GLES2/gl2.h> |
63 #endif |
64 #endif |
64 |
65 |
65 #if defined(QT_GLES_EGL) |
66 #if defined(QT_GLES_EGL) |
66 # include <GLES/egl.h> |
67 # include <GLES/egl.h> |
67 #else |
68 #else |
68 # include <EGL/egl.h> |
69 # include <EGL/egl.h> |
69 #endif |
70 #endif |
|
71 #else |
|
72 |
|
73 //types from egltypes.h for compiling stub without EGL headers |
|
74 typedef int EGLBoolean; |
|
75 typedef int EGLint; |
|
76 typedef int EGLenum; |
|
77 typedef int NativeDisplayType; |
|
78 typedef void* NativeWindowType; |
|
79 typedef void* NativePixmapType; |
|
80 typedef int EGLDisplay; |
|
81 typedef int EGLConfig; |
|
82 typedef int EGLSurface; |
|
83 typedef int EGLContext; |
|
84 typedef int EGLClientBuffer; |
|
85 #define EGL_NONE 0x3038 /* Attrib list terminator */ |
|
86 |
|
87 #endif |
|
88 |
70 |
89 |
71 |
90 |
72 #if defined(Q_WS_X11) |
91 #if defined(Q_WS_X11) |
73 // If <EGL/egl.h> included <X11/Xlib.h>, then the global namespace |
92 // If <EGL/egl.h> included <X11/Xlib.h>, then the global namespace |
74 // may have been polluted with X #define's. The following makes sure |
93 // may have been polluted with X #define's. The following makes sure |