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
qohoseglplatformcontext.h
Go to the documentation of this file.
1// Copyright (C) 2025 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 QOHOSEGLPLATFORMCONTEXT_H
5#define QOHOSEGLPLATFORMCONTEXT_H
6
7#include <QtGui/private/qeglplatformcontext_p.h>
8
9QT_BEGIN_NAMESPACE
10
11class QOhosEGLPlatformContext final : public QEGLPlatformContext
12{
13public:
14 using QEGLPlatformContext::QEGLPlatformContext;
15 struct CreateInfo
16 {
17 QSurfaceFormat format = QSurfaceFormat::defaultFormat();
18 EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
19 QPlatformOpenGLContext *optionalShareContext{nullptr};
20 EGLConfig *optionalConfig = nullptr;
21 Flags optionalFlags = Flags{};
22 };
23
24 QOhosEGLPlatformContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display);
25
26
27 void swapBuffers(QPlatformSurface *surface) override;
28
29private:
30 EGLSurface eglSurfaceForPlatformSurface(QPlatformSurface *surface) final;
31};
32
33QT_END_NAMESPACE
34
35#endif
Combined button and popup list for selecting options.