1 | // Copyright (C) 2016 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #pragma once |
5 | |
6 | #include "qxcbwindow.h" |
7 | |
8 | #include "qxcbeglinclude.h" |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | class QXcbEglIntegration; |
13 | |
14 | class QXcbEglWindow : public QXcbWindow |
15 | { |
16 | public: |
17 | QXcbEglWindow(QWindow *window, QXcbEglIntegration *glIntegration); |
18 | ~QXcbEglWindow(); |
19 | |
20 | EGLSurface eglSurface() const { return m_surface; } |
21 | |
22 | QXcbEglIntegration *glIntegration() const { return m_glIntegration; } |
23 | |
24 | protected: |
25 | void create() override; |
26 | void resolveFormat(const QSurfaceFormat &format) override; |
27 | const xcb_visualtype_t *createVisual() override; |
28 | |
29 | private: |
30 | QXcbEglIntegration *m_glIntegration; |
31 | EGLConfig m_config; |
32 | EGLSurface m_surface; |
33 | }; |
34 | |
35 | QT_END_NAMESPACE |
36 |