50 , mWaylandDisplay(display)
52 qDebug() <<
"Using Readback-EGL";
53 char *display_name = getenv(
"DISPLAY");
54 mDisplay = XOpenDisplay(display_name);
73 eglBindAPI(EGL_OPENGL_ES_API);
76 EGLBoolean initialized = eglInitialize(
mEglDisplay,&major,&minor);
78 qDebug() <<
"EGL initialized successfully" << major <<
"," << minor;
80 qDebug() <<
"EGL could not initialized. All EGL and GL operations will fail";
QPointer< QWidget > widget
Window rootWindow() const
QWaylandReadbackEglIntegration(QWaylandDisplay *display)
QWaylandDisplay * mWaylandDisplay
Q_CORE_EXPORT void qDebug(const char *,...)
Q_GUI_EXPORT EGLDisplay display()
Display * xDisplay() const
static QWaylandGLIntegration * createGLIntegration(QWaylandDisplay *waylandDisplay)
QWaylandWindow * createEglWindow(QWidget *widget)
~QWaylandReadbackEglIntegration()
QWaylandDisplay * waylandDisplay() const