| 1 |
// Copyright (C) 2016 The Qt Company Ltd. |
| 2 |
// SPDX-License-Identifier: 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 |
|
| 11 |
QT_BEGIN_NAMESPACE |
| 12 |
|
| 13 |
class QXcbEglIntegration; |
| 14 |
|
| 15 |
class QXcbEglWindow : public QXcbWindow |
| 16 |
{ |
| 17 |
public: |
| 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 |
|
| 25 |
protected: |
| 26 |
void create() override; |
| 27 |
void resolveFormat(const QSurfaceFormat &format) override; |
| 28 |
const xcb_visualtype_t *createVisual() override; |
| 29 |
|
| 30 |
private: |
| 31 |
QXcbEglIntegration *m_glIntegration; |
| 32 |
EGLConfig m_config; |
| 33 |
EGLSurface m_surface; |
| 34 |
}; |
| 35 |
|
| 36 |
QT_END_NAMESPACE |
| 37 |
#endif //QXCBEGLWINDOW_H |