4#include <QtGui/qopenglcontext.h>
5#include <QtGui/private/qguiapplication_p.h>
6#include <qpa/qplatformopenglcontext.h>
7#include <qpa/qplatformintegration.h>
8#include <qpa/qplatformwindow.h>
9#include <qpa/qplatformwindow_p.h>
10#include <qpa/qplatformscreen_p.h>
14using namespace QNativeInterface::Private;
20
21
22
23
24
25
26
27
28
29
30
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
50
51
52
53
56
57
58
59
60
61
66HMODULE QNativeInterface::QWGLContext::openGLModuleHandle()
68 return QGuiApplicationPrivate::platformIntegration()->call<
69 &QWindowsGLIntegration::openGLModuleHandle>();
72QOpenGLContext *QNativeInterface::QWGLContext::fromNative(HGLRC context, HWND window, QOpenGLContext *shareContext)
74 return QGuiApplicationPrivate::platformIntegration()->call<
75 &QWindowsGLIntegration::createOpenGLContext>(context, window, shareContext);
82
83
84
85
86
87
93
94
95
96
97
98
99
100
102
103
104
107
108
109
110
111
112
113
114
117
118
119
120
121
124
125
126
127
128
131
132
133
134
135
136
137
138
139
140
141
142
143
144
147
148
149
150
151
152
153
156
157
158
159
160
163
164
165
166
167
168
169
170
171
172
175
176
177
178
179
180
181
182
183
184
185
188
189
190
191
192
195
196
197
198
199
202
203
204
205
206
209
210
211
212
213
214
215
218
219
220
221
222
223
224
227
228
229
230
231
232
233
236
237
238
239
240
241
244
245
246
249
250
251
254
255
256
259
260
261
264
265
266
270
271
272
273
274
275
280
281
282
283
284
285
286
287
290
291
292
293
294
295
298
299
300
301
302
305
306
307
308
309
310