129 return EGL_NO_SURFACE;
132 return EGL_NO_SURFACE;
135 int devType = device->
devType();
147 qWarning(
"QEglContext::createSurface(): Cannot create the native EGL drawable");
148 return EGL_NO_SURFACE;
159 surf = eglCreateWindowSurface
160 (context->
display(), context->
config(), windowDrawable, props);
162 surf = eglCreatePixmapSurface
163 (context->
display(), context->
config(), pixmapDrawable, props);
165 if (surf == EGL_NO_SURFACE)
166 qWarning(
"QEglContext::createSurface(): Unable to create EGL surface, error = 0x%x", eglGetError());
virtual bool createNativeImage(QImage *image, EGLNativePixmapType *native)
Creates a native OpenGLES drawable for directly rendering into image and returns it in native...
NativePixmapType EGLNativePixmapType
const EGLint * properties() const
static QGLScreen * glScreenForDevice(QPaintDevice *device)
NativeWindowType EGLNativeWindowType
virtual int devType() const
virtual bool createNativeWindow(QWidget *widget, EGLNativeWindowType *native)
Creates a native OpenGLES drawable for the surface of widget and returns it in native.
Q_CORE_EXPORT void qWarning(const char *,...)
virtual bool createNativePixmap(QPixmap *pixmap, EGLNativePixmapType *native)
Creates a native OpenGLES drawable for directly rendering into pixmap and returns it in native...
QGLScreenSurfaceFunctions * surfaceFunctions() const
Returns the surface functions object for this QGLScreen.
The QGLScreenSurfaceFunctions class encapsulates the functions for creating native windows and pixmap...
This class encapsulates an OpenGL screen driver.