82 eglGetConfigAttrib(
QEgl::display(), rgbConfig, EGL_CONFIG_ID, &rgbConfigId);
83 eglGetConfigAttrib(
QEgl::display(), argbConfig, EGL_CONFIG_ID, &argbConfigId);
93 if (rgbConfig == argbConfig)
102 qWarning(
"QX11GLPixmapData - RGB & ARGB contexts aren't shared");
114 rgbPixmapData->
resize(8, 8);
118 rgbPixmapData->
gl_surface = (
void*)sharePixmapSurface;
131 if (argbConfig != rgbConfig) {
133 argbPixmapData->
resize(8, 8);
135 QPixmap argbPixmap(argbPixmapData);
156 qDebug(
"Using QX11GLPixmapData with EGL config %d for ARGB and config %d for RGB", argbConfigId, rgbConfigId);
void qt_glformat_from_eglconfig(QGLFormat &format, const EGLConfig config)
bool createContext(QEglContext *shareContext=0, const QEglProperties *properties=0)
static QGLTextureCache * instance()
QGLContext * sharedQGLContext
static QGLFormat glFormat()
void resize(int width, int height)
Q_GUI_EXPORT QString errorString(EGLint code=eglGetError())
Q_CORE_EXPORT void qDebug(const char *,...)
Q_GUI_EXPORT EGLDisplay display()
The QGLContext class encapsulates an OpenGL rendering context.
Q_CORE_EXPORT void qWarning(const char *,...)
QEglContext * argbContext
Q_GUI_EXPORT EGLConfig defaultConfig(int devType, API api, ConfigOptions options)
void fill(const QColor &color)
Q_GUI_EXPORT EGLSurface createSurface(QPaintDevice *device, EGLConfig cfg, const QEglProperties *surfaceAttribs=0)
bool makeCurrent(EGLSurface surface)
void setConfig(EGLConfig config)
The QPixmap class is an off-screen image representation that can be used as a paint device...