5#ifndef QANDROIDPLATFORMOPENGLWINDOW_H
6#define QANDROIDPLATFORMOPENGLWINDOW_H
10#include <QWaitCondition>
11#include <QtCore/qjnienvironment.h>
12#include <QtCore/qjniobject.h>
21 explicit QAndroidPlatformOpenGLWindow(QWindow *window, EGLDisplay display);
22 ~QAndroidPlatformOpenGLWindow();
24 void setGeometry(
const QRect &rect) override;
25 EGLSurface eglSurface(EGLConfig config);
26 bool ensureEglSurfaceCreated(EGLConfig config);
27 QSurfaceFormat format()
const override;
29 void applicationStateChanged(Qt::ApplicationState)
override;
32 void clearSurface()
override;
35 EGLDisplay m_eglDisplay = EGL_NO_DISPLAY;
36 EGLSurface m_eglSurface = EGL_NO_SURFACE;
37 EGLNativeWindowType m_nativeWindow =
nullptr;
39 QSurfaceFormat m_format;
void setAndroidPlatformIntegration(QAndroidPlatformIntegration *androidPlatformIntegration)
QBasicMutex * platformInterfaceMutex()
Q_DECLARE_JNI_CLASS(MotionEvent, "android/view/MotionEvent")