src/gui/egl/qeglproperties_p.h
changeset 23 89e065397ea6
parent 19 fcece45ef507
child 30 5dc02b23752f
equal deleted inserted replaced
22:79de32ba3296 23:89e065397ea6
    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
   101     enum PixelFormatMatch
   120     enum PixelFormatMatch
   102     {
   121     {
   103         ExactPixelFormat,
   122         ExactPixelFormat,
   104         BestPixelFormat
   123         BestPixelFormat
   105     };
   124     };
   106 };
   125 }
   107 
   126 
   108 class QX11Info;
   127 class QX11Info;
   109 class QPaintDevice;
   128 class QPaintDevice;
   110 
   129 
   111 class Q_GUI_EXPORT QEglProperties
   130 class Q_GUI_EXPORT QEglProperties