Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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// Qt-Security score:significant reason:default
4
5#ifndef QWAYLANDBRCMGLCONTEXT_H
6#define QWAYLANDBRCMGLCONTEXT_H
7
8#include <QtWaylandClient/private/qwaylanddisplay_p.h>
9
10#include <qpa/qplatformopenglcontext.h>
11
12#include <EGL/egl.h>
13
15
16namespace QtWaylandClient {
17
18class QWaylandWindow;
19
21public:
23 QWaylandBrcmGLContext(EGLDisplay eglDisplay, const QSurfaceFormat &format, QPlatformOpenGLContext *share);
25
26 void swapBuffers(QPlatformSurface *surface) override;
27
28 bool makeCurrent(QPlatformSurface *surface) override;
29 void doneCurrent() override;
30
31 QFunctionPointer getProcAddress(const char *procName) override;
32
33 QSurfaceFormat format() const override { return m_format; }
34
35 EGLConfig eglConfig() const;
36 EGLContext eglContext() const { return m_context; }
37
38private:
39 EGLDisplay m_eglDisplay = EGL_NO_DISPLAY;
40
41 EGLContext m_context;
42 EGLConfig m_config;
43 QSurfaceFormat m_format;
44};
45
46}
47
48QT_END_NAMESPACE
49
50#endif // QWAYLANDBRCMGLCONTEXT_H
void * nativeResourceForContext(NativeResource resource, QPlatformOpenGLContext *context) override
QOpenGLContext * createOpenGLContext(EGLContext context, EGLDisplay contextDisplay, QOpenGLContext *shareContext) const override
void * nativeResource(NativeResource resource) override
QPlatformOpenGLContext * createPlatformOpenGLContext(const QSurfaceFormat &glFormat, QPlatformOpenGLContext *share) const override
void initialize(QWaylandDisplay *waylandDisplay) override
void setGeometry(const QRect &rect) override
This function is called by Qt whenever a window is moved or resized using the QWindow API.
QSurfaceFormat format() const override
Returns the actual surface format of the window.
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)
QFunctionPointer getProcAddress(const char *procName) override
Reimplement in subclass to allow dynamic querying of OpenGL symbols.
Combined button and popup list for selecting options.