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
qandroidplatformopenglcontext.h
Go to the documentation of this file.
1// Copyright (C) 2014 BogDan Vatra <bogdan@kde.org>
2// Copyright (C) 2016 The Qt Company Ltd.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4// Qt-Security score:significant reason:default
5
6#ifndef QANDROIDPLATFORMOPENGLCONTEXT_H
7#define QANDROIDPLATFORMOPENGLCONTEXT_H
8
9#include <QtGui/private/qeglplatformcontext_p.h>
10
11QT_BEGIN_NAMESPACE
12
13class QAndroidPlatformOpenGLContext : public QEGLPlatformContext
14{
15public:
16 using QEGLPlatformContext::QEGLPlatformContext;
17 QAndroidPlatformOpenGLContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display);
18 void swapBuffers(QPlatformSurface *surface) override;
19 bool makeCurrent(QPlatformSurface *surface) override;
20
21private:
22 EGLSurface eglSurfaceForPlatformSurface(QPlatformSurface *surface) override;
23};
24
25QT_END_NAMESPACE
26
27#endif // QANDROIDPLATFORMOPENGLCONTEXT_H
Combined button and popup list for selecting options.