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#ifndef QXCBEGLWINDOW_H
5#define QXCBEGLWINDOW_H
6
7#include "qxcbwindow.h"
8
9#include "qxcbeglinclude.h"
10
11QT_BEGIN_NAMESPACE
12
13class QXcbEglIntegration;
14
15class QXcbEglWindow : public QXcbWindow
16{
17public:
18 QXcbEglWindow(QWindow *window, QXcbEglIntegration *glIntegration);
19 ~QXcbEglWindow();
20
21 EGLSurface eglSurface() const { return m_surface; }
22
23 QXcbEglIntegration *glIntegration() const { return m_glIntegration; }
24
25protected:
26 void create() override;
27 void resolveFormat(const QSurfaceFormat &format) override;
28 const xcb_visualtype_t *createVisual() override;
29
30private:
31 QXcbEglIntegration *m_glIntegration;
32 EGLConfig m_config;
33 EGLSurface m_surface;
34};
35
36QT_END_NAMESPACE
37#endif //QXCBEGLWINDOW_H
38

source code of qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglwindow.h