Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qandroidplatformopenglwindow.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 QANDROIDPLATFORMOPENGLWINDOW_H
6#define QANDROIDPLATFORMOPENGLWINDOW_H
7
9
10#include <QWaitCondition>
11#include <QtCore/qjnienvironment.h>
12#include <QtCore/qjniobject.h>
13
14#include <EGL/egl.h>
15
17
19{
20public:
23
24 void setGeometry(const QRect &rect) override;
25 EGLSurface eglSurface(EGLConfig config);
26 QSurfaceFormat format() const override;
27
28 bool checkNativeSurface(EGLConfig config);
29
31
32protected:
33 void createEgl(EGLConfig config);
34 void clearEgl();
35
36private:
37 EGLDisplay m_eglDisplay = EGL_NO_DISPLAY;
38 EGLSurface m_eglSurface = EGL_NO_SURFACE;
39 EGLNativeWindowType m_nativeWindow = nullptr;
40
41 QSurfaceFormat m_format;
42 QRect m_oldGeometry;
43};
44
46#endif // QANDROIDPLATFORMOPENGLWINDOW_H
void applicationStateChanged(Qt::ApplicationState) override
EGLSurface eglSurface(EGLConfig config)
void setGeometry(const QRect &rect) override
This function is called by Qt whenever a window is moved or resized using the QWindow API.
QAndroidPlatformOpenGLWindow(QWindow *window, EGLDisplay display)
QSurfaceFormat format() const override
Returns the actual surface format of the window.
QWindow * window() const
Returns the window which belongs to the QPlatformWindow.
\inmodule QtCore\reentrant
Definition qrect.h:30
The QSurfaceFormat class represents the format of a QSurface. \inmodule QtGui.
\inmodule QtGui
Definition qwindow.h:63
rect
[4]
struct wl_display * display
Definition linuxdmabuf.h:41
Combined button and popup list for selecting options.
ApplicationState
Definition qnamespace.h:262
EGLConfig config
typedef EGLSurface(EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC)(EGLDisplay dpy
typedef EGLDisplay(EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum platform