Qt
6.x
The Qt SDK
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Symbols
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
Loading...
Searching...
No Matches
qopenglcontext_platform.h
Go to the documentation of this file.
1
// Copyright (C) 2020 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 QOPENGLCONTEXT_PLATFORM_H
5
#define QOPENGLCONTEXT_PLATFORM_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is part of the native interface APIs. Usage of
12
// this API may make your code source and binary incompatible
13
// with future versions of Qt.
14
//
15
16
#ifndef QT_NO_OPENGL
17
18
#include <QtGui/qtguiglobal.h>
19
#include <QtGui/qopenglcontext.h>
20
#include <QtGui/qwindowdefs.h>
21
22
#include <QtCore/qnativeinterface.h>
23
24
#if defined(Q_OS_MACOS)
25
Q_FORWARD_DECLARE_OBJC_CLASS
(NSOpenGLContext);
26
#endif
27
28
#if QT_CONFIG(xcb_glx_plugin)
29
struct
__GLXcontextRec;
typedef
struct
__GLXcontextRec *GLXContext;
30
#endif
31
#if QT_CONFIG(egl)
32
typedef
void
*EGLContext;
33
typedef
void
*
EGLDisplay
;
34
typedef
void
*EGLConfig;
35
#endif
36
37
#if !defined(Q_OS_MACOS) && defined(Q_QDOC)
38
typedef
void
*NSOpenGLContext;
39
#endif
40
41
QT_BEGIN_NAMESPACE
42
43
namespace
QNativeInterface
{
44
45
#if defined(Q_OS_MACOS) || defined(Q_QDOC)
46
struct
Q_GUI_EXPORT
QCocoaGLContext
47
{
48
QT_DECLARE_NATIVE_INTERFACE
(
QCocoaGLContext
, 1,
QOpenGLContext
)
49
static
QOpenGLContext
*
fromNative
(
QT_IGNORE_DEPRECATIONS
(NSOpenGLContext) *
context
,
QOpenGLContext
*shareContext =
nullptr
);
50
virtual
QT_IGNORE_DEPRECATIONS
(NSOpenGLContext) *nativeContext()
const
= 0;
51
};
52
#endif
53
54
#if defined(Q_OS_WIN) || defined(Q_QDOC)
55
struct
Q_GUI_EXPORT
QWGLContext
56
{
57
QT_DECLARE_NATIVE_INTERFACE
(
QWGLContext
, 1,
QOpenGLContext
)
58
static
HMODULE
openGLModuleHandle();
59
static
QOpenGLContext
*
fromNative
(HGLRC
context
, HWND
window
,
QOpenGLContext
*shareContext =
nullptr
);
60
virtual
HGLRC nativeContext()
const
= 0;
61
};
62
#endif
63
64
#if QT_CONFIG(xcb_glx_plugin) || defined(Q_QDOC)
65
struct
Q_GUI_EXPORT
QGLXContext
66
{
67
QT_DECLARE_NATIVE_INTERFACE
(
QGLXContext
, 1,
QOpenGLContext
)
68
static
QOpenGLContext
*
fromNative
(GLXContext configBasedContext,
QOpenGLContext
*shareContext =
nullptr
);
69
static
QOpenGLContext
*
fromNative
(GLXContext visualBasedContext,
void
*visualInfo,
QOpenGLContext
*shareContext =
nullptr
);
70
virtual
GLXContext nativeContext()
const
= 0;
71
};
72
#endif
73
74
#if QT_CONFIG(egl) || defined(Q_QDOC)
75
struct
Q_GUI_EXPORT QEGLContext
76
{
77
QT_DECLARE_NATIVE_INTERFACE
(QEGLContext, 1,
QOpenGLContext
)
78
static
QOpenGLContext
*
fromNative
(EGLContext
context
,
EGLDisplay
display
,
QOpenGLContext
*shareContext =
nullptr
);
79
virtual
EGLContext nativeContext()
const
= 0;
80
virtual
EGLConfig
config
()
const
= 0;
81
virtual
EGLDisplay
display
()
const
= 0;
82
83
virtual
void
invalidateContext() = 0;
84
};
85
#endif
86
87
}
// QNativeInterface
88
89
QT_END_NAMESPACE
90
91
#endif
// QT_NO_OPENGL
92
93
#endif
// QOPENGLCONTEXT_PLATFORM_H
QCocoaGLContext
Definition
qcocoaglcontext.h:23
QGLXContext
Definition
qglxintegration.h:22
QWGLContext
\inheaderfile QOpenGLContext
QOpenGLContext
\inmodule QtGui
Definition
qopenglcontext.h:67
display
struct wl_display * display
Definition
linuxdmabuf.h:41
QHighDpi::fromNative
T fromNative(const T &value, qreal scaleFactor, QPoint origin=QPoint(0, 0))
Definition
qhighdpiscaling_p.h:271
QNativeInterface
Definition
qnativeinterface.h:50
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
context
static void * context
Definition
qandroidaudiosource.cpp:42
QT_IGNORE_DEPRECATIONS
#define QT_IGNORE_DEPRECATIONS(statement)
Definition
qcompilerdetection.h:1169
Q_FORWARD_DECLARE_OBJC_CLASS
#define Q_FORWARD_DECLARE_OBJC_CLASS(classname)
Definition
qdarwinhelpers.h:20
config
EGLConfig config
Definition
qeglstreamconvenience_p.h:79
EGLDisplay
typedef EGLDisplay(EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum platform
QT_DECLARE_NATIVE_INTERFACE
#define QT_DECLARE_NATIVE_INTERFACE(...)
Definition
qnativeinterface.h:47
HMODULE
HINSTANCE HMODULE
Definition
qwindowdefs_win.h:40
window
aWidget window() -> setWindowTitle("New Window Title")
[2]
qtbase
src
gui
kernel
qopenglcontext_platform.h
Generated by
1.9.7