File indexing completed on 2025-09-17 09:09:39
0001
0002
0003
0004 #ifndef QEGLFSCONTEXT_H
0005 #define QEGLFSCONTEXT_H
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #include "qeglfsglobal_p.h"
0019 #include "qeglfscursor_p.h"
0020 #include <QtGui/private/qeglplatformcontext_p.h>
0021 #include <QtCore/QVariant>
0022
0023 QT_BEGIN_NAMESPACE
0024
0025 class Q_EGLFS_EXPORT QEglFSContext : public QEGLPlatformContext
0026 {
0027 public:
0028 using QEGLPlatformContext::QEGLPlatformContext;
0029 QEglFSContext() = default;
0030 QEglFSContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display,
0031 EGLConfig *config);
0032 EGLSurface eglSurfaceForPlatformSurface(QPlatformSurface *surface) override;
0033 EGLSurface createTemporaryOffscreenSurface() override;
0034 void destroyTemporaryOffscreenSurface(EGLSurface surface) override;
0035 void runGLChecks() override;
0036 void swapBuffers(QPlatformSurface *surface) override;
0037
0038 QEglFSCursorData cursorData;
0039
0040 private:
0041 EGLNativeWindowType m_tempWindow = 0;
0042 };
0043
0044 QT_END_NAMESPACE
0045
0046 #endif