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
qwaylandclientbufferintegration_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
#
ifndef
QWAYLANDCLIENTBUFFERINTEGRATION_H
5
#
define
QWAYLANDCLIENTBUFFERINTEGRATION_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
19
#
include
<
QtWaylandClient
/
qtwaylandclientglobal
.
h
>
20
#
if
QT_CONFIG
(
opengl
)
21
#
include
<
QtGui
/
private
/
qeglplatformcontext_p
.
h
>
22
#
endif
23
24
QT_BEGIN_NAMESPACE
25
26
class
QWindow;
27
#
if
QT_CONFIG
(
opengl
)
28
class
QOpenGLContext;
29
class
QPlatformOpenGLContext;
30
#
endif
31
class
QPlatformOffscreenSurface;
32
class
QSurfaceFormat;
33
class
QOffscreenSurface;
34
35
namespace
QtWaylandClient
{
36
37
class
QWaylandWindow;
38
class
QWaylandDisplay;
39
40
class
Q_WAYLANDCLIENT_EXPORT
QWaylandClientBufferIntegration
41
{
42
public
:
43
QWaylandClientBufferIntegration
();
44
virtual
~
QWaylandClientBufferIntegration
();
45
46
virtual
void
initialize
(
QWaylandDisplay
*
display
) = 0;
47
48
virtual
bool
isValid
()
const
{
return
true
; }
49
50
virtual
bool
supportsThreadedOpenGL
()
const
{
return
false
; }
51
virtual
bool
supportsWindowDecoration
()
const
{
return
false
; }
52
53
virtual
QWaylandWindow
*
createEglWindow
(
QWindow
*
window
) = 0;
54
virtual
QPlatformOpenGLContext
*
createPlatformOpenGLContext
(
const
QSurfaceFormat
&
glFormat
,
QPlatformOpenGLContext
*
share
)
const
= 0;
55
#
if
QT_CONFIG
(
opengl
)
56
virtual
QOpenGLContext
*
createOpenGLContext
(
EGLContext
context
,
EGLDisplay
contextDisplay
,
QOpenGLContext
*
shareContext
)
const
= 0;
57
virtual
QPlatformOffscreenSurface
*
createPlatformOffscreenSurface
(
QOffscreenSurface
*
surface
)
const
{
Q_UNUSED
(
surface
);
return
nullptr
; }
58
#
endif
59
60
enum
NativeResource
{
61
EglDisplay
,
62
EglConfig
,
63
EglContext
64
};
65
virtual
void
*
nativeResource
(
NativeResource
/*resource*/
) {
return
nullptr
; }
66
virtual
void
*
nativeResourceForContext
(
NativeResource
/*resource*/
,
QPlatformOpenGLContext
*
/*context*/
) {
return
nullptr
; }
67
};
68
69
}
70
71
QT_END_NAMESPACE
72
73
#
endif
// QWAYLANDCLIENTBUFFERINTEGRATION_H
QtWaylandClient::QWaylandClientBufferIntegration
Definition
qwaylandclientbufferintegration_p.h:41
QPlatformGraphicsBufferHelper
\inmodule QtGui
QtWaylandClient
Definition
qwaylandclientextension.h:15
qtbase
src
plugins
platforms
wayland
hardwareintegration
qwaylandclientbufferintegration_p.h
Generated on
for Qt by
1.14.0