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