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
5#ifndef QANDROIDPLATFORMOPENGLCONTEXT_H
6#define QANDROIDPLATFORMOPENGLCONTEXT_H
7
8#include <QtGui/private/qeglplatformcontext_p.h>
9
10QT_BEGIN_NAMESPACE
11
12class QAndroidPlatformOpenGLContext : public QEGLPlatformContext
13{
14public:
15 using QEGLPlatformContext::QEGLPlatformContext;
16 QAndroidPlatformOpenGLContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display);
17 void swapBuffers(QPlatformSurface *surface) override;
18 bool makeCurrent(QPlatformSurface *surface) override;
19
20private:
21 EGLSurface eglSurfaceForPlatformSurface(QPlatformSurface *surface) override;
22};
23
24QT_END_NAMESPACE
25
26#endif // QANDROIDPLATFORMOPENGLCONTEXT_H