Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
20
#
include
"qwaylandeglinclude_p.h"
21
22
QT_BEGIN_NAMESPACE
23
24
class
QWindow;
25
26
namespace
QtWaylandClient
{
27
28
class
QWaylandWindow;
29
30
class
Q_WAYLANDCLIENT_EXPORT
QWaylandEglClientBufferIntegration
:
public
QWaylandClientBufferIntegration
31
{
32
public
:
33
QWaylandEglClientBufferIntegration
();
34
~
QWaylandEglClientBufferIntegration
()
override
;
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
QPlatformOffscreenSurface
*
createPlatformOffscreenSurface
(
QOffscreenSurface
*
surface
)
const
override
;
44
QOpenGLContext
*
createOpenGLContext
(
EGLContext
context
,
EGLDisplay
contextDisplay
,
QOpenGLContext
*
shareContext
)
const
override
;
45
46
void
*
nativeResource
(
NativeResource
resource
)
override
;
47
void
*
nativeResourceForContext
(
NativeResource
resource
,
QPlatformOpenGLContext
*
context
)
override
;
48
49
EGLDisplay
eglDisplay
()
const
;
50
51
private
:
52
QWaylandDisplay
*
m_display
=
nullptr
;
53
54
EGLDisplay
m_eglDisplay
=
EGL_NO_DISPLAY
;
55
bool
m_supportsThreading
=
false
;
56
};
57
58
QT_END_NAMESPACE
59
60
}
61
62
#
endif
// QWAYLANDEGLINTEGRATION_H
QtWaylandClient::QWaylandEglClientBufferIntegration
Definition
qwaylandeglclientbufferintegration_p.h:31
QtWaylandClient::QWaylandEglClientBufferPlugin
Definition
main.cpp:12
QtWaylandClient
Definition
qwaylandclientextension.h:15
qtbase
src
plugins
platforms
wayland
plugins
hardwareintegration
wayland-egl
qwaylandeglclientbufferintegration_p.h
Generated on
for Qt by
1.14.0