File indexing completed on 2025-09-17 09:09:39
0001
0002
0003
0004 #ifndef QEGLFSOFFSCREENWINDOW_H
0005 #define QEGLFSOFFSCREENWINDOW_H
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #include "qeglfsglobal_p.h"
0019 #include <qpa/qplatformoffscreensurface.h>
0020
0021 QT_BEGIN_NAMESPACE
0022
0023 class Q_EGLFS_EXPORT QEglFSOffscreenWindow : public QPlatformOffscreenSurface
0024 {
0025 public:
0026 QEglFSOffscreenWindow(EGLDisplay display, const QSurfaceFormat &format, QOffscreenSurface *offscreenSurface);
0027 ~QEglFSOffscreenWindow();
0028
0029 QSurfaceFormat format() const override { return m_format; }
0030 bool isValid() const override { return m_surface != EGL_NO_SURFACE; }
0031
0032 private:
0033 QSurfaceFormat m_format;
0034 EGLDisplay m_display;
0035 EGLSurface m_surface;
0036 EGLNativeWindowType m_window;
0037 };
0038
0039 QT_END_NAMESPACE
0040
0041 #endif