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);
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);
const_pointer constData() const noexcept
void append(parameter_type t)
The QPlatformOpenGLContext class provides an abstraction for native GL contexts.
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.
Combined button and popup list for selecting options.
QSurfaceFormat brcmFixFormat(const QSurfaceFormat &f)
EGLConfig q_configFromGLFormat(EGLDisplay display, const QSurfaceFormat &format, bool highestPixelFormat, int surfaceType)
QSurfaceFormat q_glFormatFromConfig(EGLDisplay display, const EGLConfig config, const QSurfaceFormat &referenceFormat)
typedef EGLDisplay(EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum platform
GLint GLsizei GLsizei GLenum format