Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwaylandeglclientbufferintegration_p.h
Go to the documentation of this file.
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//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists purely as an
9// implementation detail. This header file may change from version to
10// version without notice, or even be removed.
11//
12// We mean it.
13//
14
15#ifndef QWAYLANDEGLINTEGRATION_H
16#define QWAYLANDEGLINTEGRATION_H
17
18#include <QtWaylandClient/private/qwaylandclientbufferintegration_p.h>
19
21
23
24class QWindow;
25
26namespace QtWaylandClient {
27
28class QWaylandWindow;
29
31{
32public:
35
36 void initialize(QWaylandDisplay *display) override;
37 bool isValid() const override;
38 bool supportsThreadedOpenGL() const override;
39 bool supportsWindowDecoration() const override;
40
41 QWaylandWindow *createEglWindow(QWindow *window) override;
42 QPlatformOpenGLContext *createPlatformOpenGLContext(const QSurfaceFormat &glFormat, QPlatformOpenGLContext *share) const override;
43
44 void *nativeResource(NativeResource resource) override;
45 void *nativeResourceForContext(NativeResource resource, QPlatformOpenGLContext *context) override;
46
47 EGLDisplay eglDisplay() const;
48
49private:
50 QWaylandDisplay *m_display = nullptr;
51
52 EGLDisplay m_eglDisplay = EGL_NO_DISPLAY;
53 bool m_supportsThreading = false;
54};
55
57
58}
59
60#endif // QWAYLANDEGLINTEGRATION_H
The QPlatformOpenGLContext class provides an abstraction for native GL contexts.
The QSurfaceFormat class represents the format of a QSurface. \inmodule QtGui.
\inmodule QtGui
Definition qwindow.h:63
struct wl_display * display
Definition linuxdmabuf.h:41
Combined button and popup list for selecting options.
static void * context
static bool initialize()
Definition qctf.cpp:94
typedef EGLDisplay(EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum platform
aWidget window() -> setWindowTitle("New Window Title")
[2]