Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
11
QT_BEGIN_NAMESPACE
12
13
class
QAndroidPlatformOpenGLContext :
public
QEGLPlatformContext
14
{
15
public
:
16
using
QEGLPlatformContext::QEGLPlatformContext;
17
QAndroidPlatformOpenGLContext(
const
QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display);
18
~QAndroidPlatformOpenGLContext();
19
void
swapBuffers(QPlatformSurface *surface) override;
20
bool
makeCurrent(QPlatformSurface *surface) override;
21
22
private
:
23
EGLSurface eglSurfaceForPlatformSurface(QPlatformSurface *surface) override;
24
EGLSurface ensureFallbackPbuffer();
25
26
// Lets makeCurrent() succeed before the window's Surface arrives, for
27
// example on a worker thread right after QWindow::create().
28
EGLSurface m_fallbackPbuffer = EGL_NO_SURFACE;
29
};
30
31
QT_END_NAMESPACE
32
33
#
endif
// QANDROIDPLATFORMOPENGLCONTEXT_H
QAndroidPlatformOpenGLWindow
Definition
qandroidplatformopenglwindow.h:19
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
plugins
platforms
android
qandroidplatformopenglcontext.h
Generated on
for Qt by
1.18.0