Changeset 846 for trunk/src/gui/egl/qeglproperties_p.h
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/egl/qeglproperties_p.h
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 57 57 #include <QtGui/qimage.h> 58 58 59 QT_BEGIN_INCLUDE_NAMESPACE 60 61 #ifndef QT_NO_EGL 62 #if defined(QT_OPENGL_ES_2) 63 # include <GLES2/gl2.h> 64 #endif 65 66 #if defined(QT_GLES_EGL) 67 # include <GLES/egl.h> 68 #else 69 # include <EGL/egl.h> 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 89 90 91 #if defined(Q_WS_X11) 92 // If <EGL/egl.h> included <X11/Xlib.h>, then the global namespace 93 // may have been polluted with X #define's. The following makes sure 94 // the X11 headers were included properly and then cleans things up. 95 #include <X11/Xlib.h> 96 #include <X11/Xutil.h> 97 #undef Bool 98 #undef Status 99 #undef None 100 #undef KeyPress 101 #undef KeyRelease 102 #undef FocusIn 103 #undef FocusOut 104 #undef Type 105 #undef FontChange 106 #undef CursorShape 107 #endif 108 109 QT_END_INCLUDE_NAMESPACE 59 #include <QtGui/private/qegl_p.h> 110 60 111 61 QT_BEGIN_NAMESPACE 112 113 namespace QEgl {114 enum API115 {116 OpenGL,117 OpenVG118 };119 120 enum PixelFormatMatch121 {122 ExactPixelFormat,123 BestPixelFormat124 };125 }126 62 127 63 class QX11Info; … … 147 83 void setVisualFormat(const QX11Info *xinfo); 148 84 #endif 85 void setDeviceType(int devType); 86 void setPaintDeviceFormat(QPaintDevice *dev); 149 87 void setRenderableType(QEgl::API api); 150 151 void setPaintDeviceFormat(QPaintDevice *dev);152 88 153 89 bool reduceConfiguration(); 154 90 155 91 QString toString() const; 156 157 static void dumpAllConfigs();158 92 159 93 private:
Note:
See TracChangeset
for help on using the changeset viewer.