5#include <QtGui/qopenglcontext.h>
6#include <QtGui/private/qguiapplication_p.h>
7#include <qpa/qplatformopenglcontext.h>
8#include <qpa/qplatformintegration.h>
9#include <qpa/qplatformwindow.h>
10#include <qpa/qplatformwindow_p.h>
11#include <qpa/qplatformscreen_p.h>
15using namespace QNativeInterface::Private;
21
22
23
24
25
26
27
28
29
30
31
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
51
52
53
54
57
58
59
60
61
62
67HMODULE QNativeInterface::QWGLContext::openGLModuleHandle()
69 return QGuiApplicationPrivate::platformIntegration()->call<
70 &QWindowsGLIntegration::openGLModuleHandle>();
73QOpenGLContext *QNativeInterface::QWGLContext::fromNative(HGLRC context, HWND window, QOpenGLContext *shareContext)
75 return QGuiApplicationPrivate::platformIntegration()->call<
76 &QWindowsGLIntegration::createOpenGLContext>(context, window, shareContext);
83
84
85
86
87
88
94
95
96
97
98
99
100
101
103
104
105
108
109
110
111
112
113
114
115
118
119
120
121
122
125
126
127
128
129
132
133
134
135
136
137
138
139
140
141
142
143
144
145
148
149
150
151
152
153
154
157
158
159
160
161
164
165
166
167
168
169
170
171
172
173
176
177
178
179
180
181
182
183
184
185
186
189
190
191
192
193
196
197
198
199
200
203
204
205
206
207
210
211
212
213
214
215
216
219
220
221
222
223
224
225
228
229
230
231
232
233
234
237
238
239
240
241
242
245
246
247
250
251
252
255
256
257
260
261
262
265
266
267
271
272
273
274
275
276
281
282
283
284
285
286
287
288
291
292
293
294
295
296
299
300
301
302
303
306
307
308
309
310
311