Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwaylandbrcmglcontext.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWAYLANDBRCMGLCONTEXT_H
5#define QWAYLANDBRCMGLCONTEXT_H
6
7#include <QtWaylandClient/private/qwaylanddisplay_p.h>
8
9#include <qpa/qplatformopenglcontext.h>
10
11#include <EGL/egl.h>
12
14
15namespace QtWaylandClient {
16
17class QWaylandWindow;
18
20public:
23
24 void swapBuffers(QPlatformSurface *surface) override;
25
26 bool makeCurrent(QPlatformSurface *surface) override;
27 void doneCurrent() override;
28
29 QFunctionPointer getProcAddress(const char *procName) override;
30
31 QSurfaceFormat format() const override { return m_format; }
32
33 EGLConfig eglConfig() const;
34 EGLContext eglContext() const { return m_context; }
35
36private:
37 EGLDisplay m_eglDisplay = EGL_NO_DISPLAY;
38
39 EGLContext m_context;
40 EGLConfig m_config;
41 QSurfaceFormat m_format;
42};
43
44}
45
47
48#endif // QWAYLANDBRCMGLCONTEXT_H
The QPlatformOpenGLContext class provides an abstraction for native GL contexts.
The QPlatformSurface class provides an abstraction for a surface.
The QSurfaceFormat class represents the format of a QSurface. \inmodule QtGui.
QSurfaceFormat format() const override
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)
Combined button and popup list for selecting options.
typedef EGLDisplay(EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum platform
GLint GLsizei GLsizei GLenum format
const void * getProcAddress