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