6#include <QtWaylandClient/private/qwaylanddisplay_p.h>
7#include <QtWaylandClient/private/qwaylandwindow_p.h>
10#include <QtGui/private/qeglconvenience_p.h>
12#include <qpa/qplatformopenglcontext.h>
13#include <QtGui/QSurfaceFormat>
25 , m_eglDisplay(eglDisplay)
31 eglBindAPI(EGL_OPENGL_ES_API);
33 QList<EGLint> eglContextAttrs;
34 eglContextAttrs.append(EGL_CONTEXT_CLIENT_VERSION);
35 eglContextAttrs.append(format.majorVersion() == 1 ? 1 : 2);
36 eglContextAttrs.append(EGL_NONE);
38 m_context = eglCreateContext(m_eglDisplay, m_config, shareEGLContext, eglContextAttrs.constData());
43 eglDestroyContext(m_eglDisplay, m_context);
53 eglMakeCurrent(m_eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
63 QFunctionPointer proc = (QFunctionPointer) eglGetProcAddress(procName);
65 proc = (QFunctionPointer) dlsym(RTLD_DEFAULT, procName);
bool makeCurrent(EGLContext context)
EGLConfig eglConfig() const
void swapBuffers(QPlatformSurface *surface) override
Reimplement in subclass to native swap buffers calls.
bool makeCurrent(QPlatformSurface *surface) override
QWaylandBrcmGLContext(EGLDisplay eglDisplay, const QSurfaceFormat &format, QPlatformOpenGLContext *share)
void doneCurrent() override
EGLContext eglContext() const
QFunctionPointer getProcAddress(const char *procName) override
Reimplement in subclass to allow dynamic querying of OpenGL symbols.
QSurfaceFormat brcmFixFormat(const QSurfaceFormat &f)