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
// Qt-Security score:significant reason:default
4
5
#
pragma
once
6
7
#
include
<
QtWaylandClient
/
private
/
qwaylandclientbufferintegration_p
.
h
>
8
9
#
include
"qwaylandeglinclude_p.h"
10
11
QT_BEGIN_NAMESPACE
12
13
class
QWindow;
14
15
namespace
QtWaylandClient
{
16
17
class
QWaylandWindow;
18
19
class
Q_WAYLANDCLIENT_EXPORT
QWaylandEglClientBufferIntegration
:
public
QWaylandClientBufferIntegration
20
{
21
public
:
22
QWaylandEglClientBufferIntegration
();
23
~
QWaylandEglClientBufferIntegration
()
override
;
24
25
void
initialize
(
QWaylandDisplay
*
display
)
override
;
26
bool
isValid
()
const
override
;
27
bool
supportsThreadedOpenGL
()
const
override
;
28
bool
supportsWindowDecoration
()
const
override
;
29
30
QWaylandWindow
*
createEglWindow
(
QWindow
*
window
)
override
;
31
QPlatformOpenGLContext
*
createPlatformOpenGLContext
(
const
QSurfaceFormat
&
glFormat
,
QPlatformOpenGLContext
*
share
)
const
override
;
32
bool
canCreatePlatformOffscreenSurface
()
const
override
;
33
QPlatformOffscreenSurface
*
createPlatformOffscreenSurface
(
QOffscreenSurface
*
surface
)
const
override
;
34
QOpenGLContext
*
createOpenGLContext
(
EGLContext
context
,
EGLDisplay
contextDisplay
,
QOpenGLContext
*
shareContext
)
const
override
;
35
36
void
*
nativeResource
(
NativeResource
resource
)
override
;
37
void
*
nativeResourceForContext
(
NativeResource
resource
,
QPlatformOpenGLContext
*
context
)
override
;
38
39
EGLDisplay
eglDisplay
()
const
;
40
41
private
:
42
QWaylandDisplay
*
m_display
=
nullptr
;
43
44
EGLDisplay
m_eglDisplay
=
EGL_NO_DISPLAY
;
45
bool
m_supportsThreading
=
false
;
46
};
47
48
QT_END_NAMESPACE
49
50
}
QtWaylandClient::QWaylandEglClientBufferIntegration
Definition
qwaylandeglclientbufferintegration_p.h:20
QtWaylandClient::QWaylandEglClientBufferPlugin
Definition
main.cpp:13
QtWaylandClient
Definition
qwaylandclientextension.h:16
qtbase
src
plugins
platforms
wayland
plugins
hardwareintegration
wayland-egl
qwaylandeglclientbufferintegration_p.h
Generated on
for Qt by
1.16.1