Line | Source Code | Coverage |
---|
1 | | - |
2 | | - |
3 | struct QOpenGLFunctionsPrivateEx : public QOpenGLExtensionsPrivate, public QOpenGLSharedResource | - |
4 | { | - |
5 | QOpenGLFunctionsPrivateEx(QOpenGLContext *context) | - |
6 | : QOpenGLExtensionsPrivate(context) | - |
7 | , QOpenGLSharedResource(context->shareGroup()) | - |
8 | , m_features(-1) | - |
9 | , m_extensions(-1) | - |
10 | {} | 0 |
11 | | - |
12 | void invalidateResource() | - |
13 | { | - |
14 | m_features = -1; | - |
15 | m_extensions = -1; | - |
16 | } | 0 |
17 | | - |
18 | void freeResource(QOpenGLContext *) | - |
19 | { | - |
20 | | - |
21 | } | - |
22 | | - |
23 | int m_features; | - |
24 | int m_extensions; | - |
25 | }; | - |
26 | | - |
27 | static QOpenGLMultiGroupSharedResource *qt_gl_functions_resource() { static QGlobalStatic<QOpenGLMultiGroupSharedResource > thisGlobalStatic = { { (0) }, false }; if (!thisGlobalStatic.pointer.load() && !thisGlobalStatic.destroyed) { QOpenGLMultiGroupSharedResource *x = new QOpenGLMultiGroupSharedResource; if (!thisGlobalStatic.pointer.testAndSetOrdered(0, x)) delete x; else static QGlobalStaticDeleter<QOpenGLMultiGroupSharedResource > cleanup(thisGlobalStatic); } return thisGlobalStatic.pointer.load(); } never executed: delete x; never executed: return thisGlobalStatic.pointer.load(); never evaluated: !thisGlobalStatic.pointer.testAndSetOrdered(0, x) never evaluated: !thisGlobalStatic.pointer.load() never evaluated: !thisGlobalStatic.destroyed | 0 |
28 | | - |
29 | static QOpenGLFunctionsPrivateEx *qt_gl_functions(QOpenGLContext *context = 0) | - |
30 | { | - |
31 | if (!context) never evaluated: !context | 0 |
32 | context = QOpenGLContext::currentContext(); never executed: context = QOpenGLContext::currentContext(); | 0 |
33 | qt_noop(); | - |
34 | QOpenGLFunctionsPrivateEx *funcs = | - |
35 | qt_gl_functions_resource()->value<QOpenGLFunctionsPrivateEx>(context); | - |
36 | return funcs; never executed: return funcs; | 0 |
37 | } | - |
38 | QOpenGLFunctions::QOpenGLFunctions() | - |
39 | : d_ptr(0) | - |
40 | { | - |
41 | } | 0 |
42 | QOpenGLFunctions::QOpenGLFunctions(QOpenGLContext *context) | - |
43 | : d_ptr(0) | - |
44 | { | - |
45 | if (context && QOpenGLContextGroup::currentContextGroup() == context->shareGroup()) never evaluated: QOpenGLContextGroup::currentContextGroup() == context->shareGroup() | 0 |
46 | d_ptr = qt_gl_functions(context); never executed: d_ptr = qt_gl_functions(context); | 0 |
47 | else | - |
48 | QMessageLogger("opengl/qopenglfunctions.cpp", 230, __PRETTY_FUNCTION__).warning() << "QOpenGLFunctions created with non-current context"; never executed: QMessageLogger("opengl/qopenglfunctions.cpp", 230, __PRETTY_FUNCTION__).warning() << "QOpenGLFunctions created with non-current context"; | 0 |
49 | } | - |
50 | | - |
51 | QOpenGLExtensions::QOpenGLExtensions() | - |
52 | : QOpenGLFunctions() | - |
53 | { | - |
54 | } | 0 |
55 | | - |
56 | QOpenGLExtensions::QOpenGLExtensions(QOpenGLContext *context) | - |
57 | : QOpenGLFunctions(context) | - |
58 | { | - |
59 | } | 0 |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | static int qt_gl_resolve_features() | - |
68 | { | - |
69 | int features = 0; | - |
70 | | - |
71 | QOpenGLExtensionMatcher extensions; | - |
72 | | - |
73 | | - |
74 | if (extensions.match("GL_ARB_multitexture")) never evaluated: extensions.match("GL_ARB_multitexture") | 0 |
75 | features |= QOpenGLFunctions::Multitexture; never executed: features |= QOpenGLFunctions::Multitexture; | 0 |
76 | if (extensions.match("GL_ARB_shader_objects")) never evaluated: extensions.match("GL_ARB_shader_objects") | 0 |
77 | features |= QOpenGLFunctions::Shaders; never executed: features |= QOpenGLFunctions::Shaders; | 0 |
78 | if (extensions.match("GL_EXT_framebuffer_object") || never evaluated: extensions.match("GL_EXT_framebuffer_object") | 0 |
79 | extensions.match("GL_ARB_framebuffer_object")) never evaluated: extensions.match("GL_ARB_framebuffer_object") | 0 |
80 | features |= QOpenGLFunctions::Framebuffers; never executed: features |= QOpenGLFunctions::Framebuffers; | 0 |
81 | if (extensions.match("GL_EXT_blend_color")) never evaluated: extensions.match("GL_EXT_blend_color") | 0 |
82 | features |= QOpenGLFunctions::BlendColor; never executed: features |= QOpenGLFunctions::BlendColor; | 0 |
83 | if (extensions.match("GL_EXT_blend_equation_separate")) never evaluated: extensions.match("GL_EXT_blend_equation_separate") | 0 |
84 | features |= QOpenGLFunctions::BlendEquationSeparate; never executed: features |= QOpenGLFunctions::BlendEquationSeparate; | 0 |
85 | if (extensions.match("GL_EXT_blend_func_separate")) never evaluated: extensions.match("GL_EXT_blend_func_separate") | 0 |
86 | features |= QOpenGLFunctions::BlendFuncSeparate; never executed: features |= QOpenGLFunctions::BlendFuncSeparate; | 0 |
87 | if (extensions.match("GL_EXT_blend_subtract")) never evaluated: extensions.match("GL_EXT_blend_subtract") | 0 |
88 | features |= QOpenGLFunctions::BlendSubtract; never executed: features |= QOpenGLFunctions::BlendSubtract; | 0 |
89 | if (extensions.match("GL_ARB_texture_compression")) never evaluated: extensions.match("GL_ARB_texture_compression") | 0 |
90 | features |= QOpenGLFunctions::CompressedTextures; never executed: features |= QOpenGLFunctions::CompressedTextures; | 0 |
91 | if (extensions.match("GL_ARB_multisample")) never evaluated: extensions.match("GL_ARB_multisample") | 0 |
92 | features |= QOpenGLFunctions::Multisample; never executed: features |= QOpenGLFunctions::Multisample; | 0 |
93 | if (extensions.match("GL_ARB_texture_non_power_of_two")) never evaluated: extensions.match("GL_ARB_texture_non_power_of_two") | 0 |
94 | features |= QOpenGLFunctions::NPOTTextures; never executed: features |= QOpenGLFunctions::NPOTTextures; | 0 |
95 | | - |
96 | | - |
97 | features |= QOpenGLFunctions::BlendColor | | - |
98 | QOpenGLFunctions::BlendEquation | | - |
99 | QOpenGLFunctions::Multitexture | | - |
100 | QOpenGLFunctions::CompressedTextures | | - |
101 | QOpenGLFunctions::Multisample | | - |
102 | QOpenGLFunctions::BlendFuncSeparate | | - |
103 | QOpenGLFunctions::Buffers | | - |
104 | QOpenGLFunctions::Shaders | | - |
105 | QOpenGLFunctions::StencilSeparate | | - |
106 | QOpenGLFunctions::BlendEquationSeparate | | - |
107 | QOpenGLFunctions::NPOTTextures; | - |
108 | return features; never executed: return features; | 0 |
109 | | - |
110 | } | - |
111 | | - |
112 | static int qt_gl_resolve_extensions() | - |
113 | { | - |
114 | int extensions = 0; | - |
115 | QOpenGLExtensionMatcher extensionMatcher; | - |
116 | extensions |= QOpenGLExtensions::ElementIndexUint | QOpenGLExtensions::MapBuffer; | - |
117 | | - |
118 | | - |
119 | if (extensionMatcher.match("GL_ARB_framebuffer_object")) { never evaluated: extensionMatcher.match("GL_ARB_framebuffer_object") | 0 |
120 | extensions |= QOpenGLExtensions::FramebufferMultisample | | - |
121 | QOpenGLExtensions::FramebufferBlit | | - |
122 | QOpenGLExtensions::PackedDepthStencil; | - |
123 | } else { | 0 |
124 | if (extensionMatcher.match("GL_EXT_framebuffer_multisample")) never evaluated: extensionMatcher.match("GL_EXT_framebuffer_multisample") | 0 |
125 | extensions |= QOpenGLExtensions::FramebufferMultisample; never executed: extensions |= QOpenGLExtensions::FramebufferMultisample; | 0 |
126 | if (extensionMatcher.match("GL_EXT_framebuffer_blit")) never evaluated: extensionMatcher.match("GL_EXT_framebuffer_blit") | 0 |
127 | extensions |= QOpenGLExtensions::FramebufferBlit; never executed: extensions |= QOpenGLExtensions::FramebufferBlit; | 0 |
128 | if (extensionMatcher.match("GL_EXT_packed_depth_stencil")) never evaluated: extensionMatcher.match("GL_EXT_packed_depth_stencil") | 0 |
129 | extensions |= QOpenGLExtensions::PackedDepthStencil; never executed: extensions |= QOpenGLExtensions::PackedDepthStencil; | 0 |
130 | } | 0 |
131 | | - |
132 | return extensions; never executed: return extensions; | 0 |
133 | } | - |
134 | QOpenGLFunctions::OpenGLFeatures QOpenGLFunctions::openGLFeatures() const | - |
135 | { | - |
136 | QOpenGLFunctionsPrivateEx *d = static_cast<QOpenGLFunctionsPrivateEx *>(d_ptr); | - |
137 | if (!d) | 0 |
138 | return 0; never executed: return 0; | 0 |
139 | if (d->m_features == -1) never evaluated: d->m_features == -1 | 0 |
140 | d->m_features = qt_gl_resolve_features(); never executed: d->m_features = qt_gl_resolve_features(); | 0 |
141 | return QOpenGLFunctions::OpenGLFeatures(d->m_features); never executed: return QOpenGLFunctions::OpenGLFeatures(d->m_features); | 0 |
142 | } | - |
143 | bool QOpenGLFunctions::hasOpenGLFeature(QOpenGLFunctions::OpenGLFeature feature) const | - |
144 | { | - |
145 | QOpenGLFunctionsPrivateEx *d = static_cast<QOpenGLFunctionsPrivateEx *>(d_ptr); | - |
146 | if (!d) | 0 |
147 | return false; never executed: return false; | 0 |
148 | if (d->m_features == -1) never evaluated: d->m_features == -1 | 0 |
149 | d->m_features = qt_gl_resolve_features(); never executed: d->m_features = qt_gl_resolve_features(); | 0 |
150 | return (d->m_features & int(feature)) != 0; never executed: return (d->m_features & int(feature)) != 0; | 0 |
151 | } | - |
152 | QOpenGLExtensions::OpenGLExtensions QOpenGLExtensions::openGLExtensions() | - |
153 | { | - |
154 | QOpenGLFunctionsPrivateEx *d = static_cast<QOpenGLFunctionsPrivateEx *>(d_ptr); | - |
155 | if (!d) | 0 |
156 | return 0; never executed: return 0; | 0 |
157 | if (d->m_extensions == -1) never evaluated: d->m_extensions == -1 | 0 |
158 | d->m_extensions = qt_gl_resolve_extensions(); never executed: d->m_extensions = qt_gl_resolve_extensions(); | 0 |
159 | return QOpenGLExtensions::OpenGLExtensions(d->m_extensions); never executed: return QOpenGLExtensions::OpenGLExtensions(d->m_extensions); | 0 |
160 | } | - |
161 | bool QOpenGLExtensions::hasOpenGLExtension(QOpenGLExtensions::OpenGLExtension extension) const | - |
162 | { | - |
163 | QOpenGLFunctionsPrivateEx *d = static_cast<QOpenGLFunctionsPrivateEx *>(d_ptr); | - |
164 | if (!d) | 0 |
165 | return false; never executed: return false; | 0 |
166 | if (d->m_extensions == -1) never evaluated: d->m_extensions == -1 | 0 |
167 | d->m_extensions = qt_gl_resolve_extensions(); never executed: d->m_extensions = qt_gl_resolve_extensions(); | 0 |
168 | return (d->m_extensions & int(extension)) != 0; never executed: return (d->m_extensions & int(extension)) != 0; | 0 |
169 | } | - |
170 | void QOpenGLFunctions::initializeOpenGLFunctions() | - |
171 | { | - |
172 | d_ptr = qt_gl_functions(); | - |
173 | } | 0 |
174 | namespace { | - |
175 | | - |
176 | enum ResolvePolicy | - |
177 | { | - |
178 | ResolveOES = 0x1, | - |
179 | ResolveEXT = 0x2 | - |
180 | }; | - |
181 | | - |
182 | template <typename Base, typename FuncType, int Policy, typename ReturnType> | - |
183 | class Resolver | - |
184 | { | - |
185 | public: | - |
186 | Resolver(FuncType Base::*func, FuncType fallback, const char *name, const char *alternateName = 0) | - |
187 | : funcPointerName(func) | - |
188 | , fallbackFuncPointer(fallback) | - |
189 | , funcName(name) | - |
190 | , alternateFuncName(alternateName) | - |
191 | { | - |
192 | } | 0 |
193 | | - |
194 | ReturnType operator()(); | - |
195 | | - |
196 | template <typename P1> | - |
197 | ReturnType operator()(P1 p1); | - |
198 | | - |
199 | template <typename P1, typename P2> | - |
200 | ReturnType operator()(P1 p1, P2 p2); | - |
201 | | - |
202 | template <typename P1, typename P2, typename P3> | - |
203 | ReturnType operator()(P1 p1, P2 p2, P3 p3); | - |
204 | | - |
205 | template <typename P1, typename P2, typename P3, typename P4> | - |
206 | ReturnType operator()(P1 p1, P2 p2, P3 p3, P4 p4); | - |
207 | | - |
208 | template <typename P1, typename P2, typename P3, typename P4, typename P5> | - |
209 | ReturnType operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5); | - |
210 | | - |
211 | template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6> | - |
212 | ReturnType operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6); | - |
213 | | - |
214 | template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7> | - |
215 | ReturnType operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6, P7 p7); | - |
216 | | - |
217 | template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8> | - |
218 | ReturnType operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6, P7 p7, P8 p8); | - |
219 | | - |
220 | template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9> | - |
221 | ReturnType operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6, P7 p7, P8 p8, P9 p9); | - |
222 | | - |
223 | template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10> | - |
224 | ReturnType operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6, P7 p7, P8 p8, P9 p9, P10 p10); | - |
225 | | - |
226 | private: | - |
227 | FuncType Base::*funcPointerName; | - |
228 | FuncType fallbackFuncPointer; | - |
229 | QByteArray funcName; | - |
230 | QByteArray alternateFuncName; | - |
231 | }; | - |
232 | | - |
233 | template <typename Base, typename FuncType, int Policy> | - |
234 | class Resolver<Base, FuncType, Policy, void> | - |
235 | { | - |
236 | public: | - |
237 | Resolver(FuncType Base::*func, FuncType fallback, const char *name, const char *alternateName = 0) | - |
238 | : funcPointerName(func) | - |
239 | , fallbackFuncPointer(fallback) | - |
240 | , funcName(name) | - |
241 | , alternateFuncName(alternateName) | - |
242 | { | - |
243 | } | 0 |
244 | | - |
245 | void operator()(); | - |
246 | | - |
247 | template <typename P1> | - |
248 | void operator()(P1 p1); | - |
249 | | - |
250 | template <typename P1, typename P2> | - |
251 | void operator()(P1 p1, P2 p2); | - |
252 | | - |
253 | template <typename P1, typename P2, typename P3> | - |
254 | void operator()(P1 p1, P2 p2, P3 p3); | - |
255 | | - |
256 | template <typename P1, typename P2, typename P3, typename P4> | - |
257 | void operator()(P1 p1, P2 p2, P3 p3, P4 p4); | - |
258 | | - |
259 | template <typename P1, typename P2, typename P3, typename P4, typename P5> | - |
260 | void operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5); | - |
261 | | - |
262 | template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6> | - |
263 | void operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6); | - |
264 | | - |
265 | template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7> | - |
266 | void operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6, P7 p7); | - |
267 | | - |
268 | template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8> | - |
269 | void operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6, P7 p7, P8 p8); | - |
270 | | - |
271 | template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9> | - |
272 | void operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6, P7 p7, P8 p8, P9 p9); | - |
273 | | - |
274 | template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10> | - |
275 | void operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6, P7 p7, P8 p8, P9 p9, P10 p10); | - |
276 | | - |
277 | private: | - |
278 | FuncType Base::*funcPointerName; | - |
279 | FuncType fallbackFuncPointer; | - |
280 | QByteArray funcName; | - |
281 | QByteArray alternateFuncName; | - |
282 | }; | - |
283 | template <typename Base, typename FuncType, int Policy, typename ReturnType> | - |
284 | ReturnType Resolver<Base, FuncType, Policy, ReturnType>::operator()() | - |
285 | { | - |
286 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return ReturnType(); } } never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never evaluated: fallbackFuncPointer never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never executed: return ReturnType(); | 0 |
287 | | - |
288 | return (funcs->*funcPointerName)(); never executed: return (funcs->*funcPointerName)(); | 0 |
289 | } | - |
290 | | - |
291 | template <typename Base, typename FuncType, int Policy, typename ReturnType> template <typename P1> | - |
292 | ReturnType Resolver<Base, FuncType, Policy, ReturnType>::operator()(P1 p1) | - |
293 | { | - |
294 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return ReturnType(); } } never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never executed: return ReturnType(); | 0 |
295 | | - |
296 | return (funcs->*funcPointerName)(p1); never executed: return (funcs->*funcPointerName)(p1); | 0 |
297 | } | - |
298 | | - |
299 | template <typename Base, typename FuncType, int Policy, typename ReturnType> template <typename P1, typename P2> | - |
300 | ReturnType Resolver<Base, FuncType, Policy, ReturnType>::operator()(P1 p1, P2 p2) | - |
301 | { | - |
302 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return ReturnType(); } } never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never executed: return ReturnType(); | 0 |
303 | | - |
304 | return (funcs->*funcPointerName)(p1, p2); never executed: return (funcs->*funcPointerName)(p1, p2); | 0 |
305 | } | - |
306 | | - |
307 | template <typename Base, typename FuncType, int Policy, typename ReturnType> template <typename P1, typename P2, typename P3> | - |
308 | ReturnType Resolver<Base, FuncType, Policy, ReturnType>::operator()(P1 p1, P2 p2, P3 p3) | - |
309 | { | - |
310 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return ReturnType(); } } never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never executed: return ReturnType(); | 0 |
311 | | - |
312 | return (funcs->*funcPointerName)(p1, p2, p3); never executed: return (funcs->*funcPointerName)(p1, p2, p3); | 0 |
313 | } | - |
314 | | - |
315 | template <typename Base, typename FuncType, int Policy, typename ReturnType> template <typename P1, typename P2, typename P3, typename P4> | - |
316 | ReturnType Resolver<Base, FuncType, Policy, ReturnType>::operator()(P1 p1, P2 p2, P3 p3, P4 p4) | - |
317 | { | - |
318 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return ReturnType(); } } never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never executed: return ReturnType(); | 0 |
319 | | - |
320 | return (funcs->*funcPointerName)(p1, p2, p3, p4); never executed: return (funcs->*funcPointerName)(p1, p2, p3, p4); | 0 |
321 | } | - |
322 | | - |
323 | template <typename Base, typename FuncType, int Policy, typename ReturnType> template <typename P1, typename P2, typename P3, typename P4, typename P5> | - |
324 | ReturnType Resolver<Base, FuncType, Policy, ReturnType>::operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) | - |
325 | { | - |
326 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return ReturnType(); } } never executed: return ReturnType(); never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); | 0 |
327 | | - |
328 | return (funcs->*funcPointerName)(p1, p2, p3, p4, p5); never executed: return (funcs->*funcPointerName)(p1, p2, p3, p4, p5); | 0 |
329 | } | - |
330 | | - |
331 | template <typename Base, typename FuncType, int Policy, typename ReturnType> template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6> | - |
332 | ReturnType Resolver<Base, FuncType, Policy, ReturnType>::operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) | - |
333 | { | - |
334 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return ReturnType(); } } never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never executed: return ReturnType(); never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) | 0 |
335 | | - |
336 | return (funcs->*funcPointerName)(p1, p2, p3, p4, p5, p6); never executed: return (funcs->*funcPointerName)(p1, p2, p3, p4, p5, p6); | 0 |
337 | } | - |
338 | | - |
339 | template <typename Base, typename FuncType, int Policy, typename ReturnType> template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7> | - |
340 | ReturnType Resolver<Base, FuncType, Policy, ReturnType>::operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6, P7 p7) | - |
341 | { | - |
342 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return ReturnType(); } } never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never executed: return ReturnType(); never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) | 0 |
343 | | - |
344 | return (funcs->*funcPointerName)(p1, p2, p3, p4, p5, p6, p7); never executed: return (funcs->*funcPointerName)(p1, p2, p3, p4, p5, p6, p7); | 0 |
345 | } | - |
346 | | - |
347 | template <typename Base, typename FuncType, int Policy, typename ReturnType> template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8> | - |
348 | ReturnType Resolver<Base, FuncType, Policy, ReturnType>::operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6, P7 p7, P8 p8) | - |
349 | { | - |
350 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return ReturnType(); } } never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never executed: return ReturnType(); never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) | 0 |
351 | | - |
352 | return (funcs->*funcPointerName)(p1, p2, p3, p4, p5, p6, p7, p8); never executed: return (funcs->*funcPointerName)(p1, p2, p3, p4, p5, p6, p7, p8); | 0 |
353 | } | - |
354 | | - |
355 | template <typename Base, typename FuncType, int Policy, typename ReturnType> template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9> | - |
356 | ReturnType Resolver<Base, FuncType, Policy, ReturnType>::operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6, P7 p7, P8 p8, P9 p9) | - |
357 | { | - |
358 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return ReturnType(); } } never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never executed: return ReturnType(); never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) | 0 |
359 | | - |
360 | return (funcs->*funcPointerName)(p1, p2, p3, p4, p5, p6, p7, p8, p9); never executed: return (funcs->*funcPointerName)(p1, p2, p3, p4, p5, p6, p7, p8, p9); | 0 |
361 | } | - |
362 | | - |
363 | template <typename Base, typename FuncType, int Policy, typename ReturnType> template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10> | - |
364 | ReturnType Resolver<Base, FuncType, Policy, ReturnType>::operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6, P7 p7, P8 p8, P9 p9, P10 p10) | - |
365 | { | - |
366 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return ReturnType(); } } never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never executed: return ReturnType(); never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) | 0 |
367 | | - |
368 | return (funcs->*funcPointerName)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10); never executed: return (funcs->*funcPointerName)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10); | 0 |
369 | } | - |
370 | | - |
371 | template <typename Base, typename FuncType, int Policy> | - |
372 | void Resolver<Base, FuncType, Policy, void>::operator()() | - |
373 | { | - |
374 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return; } } never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) | 0 |
375 | | - |
376 | (funcs->*funcPointerName)(); | - |
377 | } | 0 |
378 | | - |
379 | template <typename Base, typename FuncType, int Policy> template <typename P1> | - |
380 | void Resolver<Base, FuncType, Policy, void>::operator()(P1 p1) | - |
381 | { | - |
382 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return; } } never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) | 0 |
383 | | - |
384 | (funcs->*funcPointerName)(p1); | - |
385 | } | 0 |
386 | | - |
387 | template <typename Base, typename FuncType, int Policy> template <typename P1, typename P2> | - |
388 | void Resolver<Base, FuncType, Policy, void>::operator()(P1 p1, P2 p2) | - |
389 | { | - |
390 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return; } } never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) | 0 |
391 | | - |
392 | (funcs->*funcPointerName)(p1, p2); | - |
393 | } | 0 |
394 | | - |
395 | template <typename Base, typename FuncType, int Policy> template <typename P1, typename P2, typename P3> | - |
396 | void Resolver<Base, FuncType, Policy, void>::operator()(P1 p1, P2 p2, P3 p3) | - |
397 | { | - |
398 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return; } } never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) | 0 |
399 | | - |
400 | (funcs->*funcPointerName)(p1, p2, p3); | - |
401 | } | 0 |
402 | | - |
403 | template <typename Base, typename FuncType, int Policy> template <typename P1, typename P2, typename P3, typename P4> | - |
404 | void Resolver<Base, FuncType, Policy, void>::operator()(P1 p1, P2 p2, P3 p3, P4 p4) | - |
405 | { | - |
406 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return; } } never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) | 0 |
407 | | - |
408 | (funcs->*funcPointerName)(p1, p2, p3, p4); | - |
409 | } | 0 |
410 | | - |
411 | template <typename Base, typename FuncType, int Policy> template <typename P1, typename P2, typename P3, typename P4, typename P5> | - |
412 | void Resolver<Base, FuncType, Policy, void>::operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) | - |
413 | { | - |
414 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return; } } never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) | 0 |
415 | | - |
416 | (funcs->*funcPointerName)(p1, p2, p3, p4, p5); | - |
417 | } | 0 |
418 | | - |
419 | template <typename Base, typename FuncType, int Policy> template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6> | - |
420 | void Resolver<Base, FuncType, Policy, void>::operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) | - |
421 | { | - |
422 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return; } } never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) | 0 |
423 | | - |
424 | (funcs->*funcPointerName)(p1, p2, p3, p4, p5, p6); | - |
425 | } | 0 |
426 | | - |
427 | template <typename Base, typename FuncType, int Policy> template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7> | - |
428 | void Resolver<Base, FuncType, Policy, void>::operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6, P7 p7) | - |
429 | { | - |
430 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return; } } never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) | 0 |
431 | | - |
432 | (funcs->*funcPointerName)(p1, p2, p3, p4, p5, p6, p7); | - |
433 | } | 0 |
434 | | - |
435 | template <typename Base, typename FuncType, int Policy> template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8> | - |
436 | void Resolver<Base, FuncType, Policy, void>::operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6, P7 p7, P8 p8) | - |
437 | { | - |
438 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return; } } never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) | 0 |
439 | | - |
440 | (funcs->*funcPointerName)(p1, p2, p3, p4, p5, p6, p7, p8); | - |
441 | } | 0 |
442 | | - |
443 | template <typename Base, typename FuncType, int Policy> template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9> | - |
444 | void Resolver<Base, FuncType, Policy, void>::operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6, P7 p7, P8 p8, P9 p9) | - |
445 | { | - |
446 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return; } } never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) | 0 |
447 | | - |
448 | (funcs->*funcPointerName)(p1, p2, p3, p4, p5, p6, p7, p8, p9); | - |
449 | } | 0 |
450 | | - |
451 | template <typename Base, typename FuncType, int Policy> template <typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10> | - |
452 | void Resolver<Base, FuncType, Policy, void>::operator()(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6, P7 p7, P8 p8, P9 p9, P10 p10) | - |
453 | { | - |
454 | QOpenGLContext *context = QOpenGLContext::currentContext(); Base *funcs = qt_gl_functions(context); FuncType old = funcs->*funcPointerName; funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); if (!alternateFuncName.isEmpty() && !(funcs->*funcPointerName)) { funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName); if ((Policy & ResolveOES) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); if (!(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); if ((Policy & ResolveEXT) && !(funcs->*funcPointerName)) funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); } if (!(funcs->*funcPointerName)) { if (fallbackFuncPointer) { funcs->*funcPointerName = fallbackFuncPointer; } else { funcs->*funcPointerName = old; return; } } never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(funcName + "EXT"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "OES"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "ARB"); never executed: funcs->*funcPointerName = (FuncType)context->getProcAddress(alternateFuncName + "EXT"); never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: !(funcs->*funcPointerName) never evaluated: fallbackFuncPointer never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) never evaluated: !alternateFuncName.isEmpty() never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveOES) never evaluated: !(funcs->*funcPointerName) never evaluated: (Policy & ResolveEXT) never evaluated: !(funcs->*funcPointerName) | 0 |
455 | | - |
456 | (funcs->*funcPointerName)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10); | - |
457 | } | 0 |
458 | | - |
459 | template <typename ReturnType, int Policy, typename Base, typename FuncType> | - |
460 | Resolver<Base, FuncType, Policy, ReturnType> functionResolverWithFallback(FuncType Base::*func, FuncType fallback, const char *name, const char *alternate = 0) | - |
461 | { | - |
462 | return Resolver<Base, FuncType, Policy, ReturnType>(func, fallback, name, alternate); never executed: return Resolver<Base, FuncType, Policy, ReturnType>(func, fallback, name, alternate); | 0 |
463 | } | - |
464 | | - |
465 | template <typename ReturnType, int Policy, typename Base, typename FuncType> | - |
466 | Resolver<Base, FuncType, Policy, ReturnType> functionResolver(FuncType Base::*func, const char *name, const char *alternate = 0) | - |
467 | { | - |
468 | return Resolver<Base, FuncType, Policy, ReturnType>(func, 0, name, alternate); never executed: return Resolver<Base, FuncType, Policy, ReturnType>(func, 0, name, alternate); | 0 |
469 | } | - |
470 | | - |
471 | } | - |
472 | static void qopenglfResolveActiveTexture(GLenum texture) | - |
473 | { | - |
474 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::ActiveTexture, "gl" "ActiveTexture")(texture); | - |
475 | } | 0 |
476 | | - |
477 | static void qopenglfResolveAttachShader(GLuint program, GLuint shader) | - |
478 | { | - |
479 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::AttachShader, "gl" "AttachShader", "gl" "AttachObject")(program, shader); | - |
480 | } | 0 |
481 | | - |
482 | static void qopenglfResolveBindAttribLocation(GLuint program, GLuint index, const char* name) | - |
483 | { | - |
484 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::BindAttribLocation, "gl" "BindAttribLocation")(program, index, name); | - |
485 | } | 0 |
486 | | - |
487 | static void qopenglfResolveBindBuffer(GLenum target, GLuint buffer) | - |
488 | { | - |
489 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::BindBuffer, "gl" "BindBuffer")(target, buffer); | - |
490 | } | 0 |
491 | | - |
492 | static void qopenglfResolveBindFramebuffer(GLenum target, GLuint framebuffer) | - |
493 | { | - |
494 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::BindFramebuffer, "gl" "BindFramebuffer")(target, framebuffer); | - |
495 | } | 0 |
496 | | - |
497 | static void qopenglfResolveBindRenderbuffer(GLenum target, GLuint renderbuffer) | - |
498 | { | - |
499 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::BindRenderbuffer, "gl" "BindRenderbuffer")(target, renderbuffer); | - |
500 | } | 0 |
501 | | - |
502 | static void qopenglfResolveBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) | - |
503 | { | - |
504 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::BlendColor, "gl" "BlendColor")(red, green, blue, alpha); | - |
505 | } | 0 |
506 | | - |
507 | static void qopenglfResolveBlendEquation(GLenum mode) | - |
508 | { | - |
509 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::BlendEquation, "gl" "BlendEquation")(mode); | - |
510 | } | 0 |
511 | | - |
512 | static void qopenglfResolveBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) | - |
513 | { | - |
514 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::BlendEquationSeparate, "gl" "BlendEquationSeparate")(modeRGB, modeAlpha); | - |
515 | } | 0 |
516 | | - |
517 | static void qopenglfResolveBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) | - |
518 | { | - |
519 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::BlendFuncSeparate, "gl" "BlendFuncSeparate")(srcRGB, dstRGB, srcAlpha, dstAlpha); | - |
520 | } | 0 |
521 | | - |
522 | static void qopenglfResolveBufferData(GLenum target, qopengl_GLsizeiptr size, const void* data, GLenum usage) | - |
523 | { | - |
524 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::BufferData, "gl" "BufferData")(target, size, data, usage); | - |
525 | } | 0 |
526 | | - |
527 | static void qopenglfResolveBufferSubData(GLenum target, qopengl_GLintptr offset, qopengl_GLsizeiptr size, const void* data) | - |
528 | { | - |
529 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::BufferSubData, "gl" "BufferSubData")(target, offset, size, data); | - |
530 | } | 0 |
531 | | - |
532 | static GLenum qopenglfResolveCheckFramebufferStatus(GLenum target) | - |
533 | { | - |
534 | return functionResolver<GLenum, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::CheckFramebufferStatus, "gl" "CheckFramebufferStatus")(target); never executed: return functionResolver<GLenum, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::CheckFramebufferStatus, "gl" "CheckFramebufferStatus")(target); | 0 |
535 | } | - |
536 | | - |
537 | static void qopenglfResolveCompileShader(GLuint shader) | - |
538 | { | - |
539 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::CompileShader, "gl" "CompileShader")(shader); | - |
540 | } | 0 |
541 | | - |
542 | static void qopenglfResolveCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data) | - |
543 | { | - |
544 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::CompressedTexImage2D, "gl" "CompressedTexImage2D")(target, level, internalformat, width, height, border, imageSize, data); | - |
545 | } | 0 |
546 | | - |
547 | static void qopenglfResolveCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data) | - |
548 | { | - |
549 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::CompressedTexSubImage2D, "gl" "CompressedTexSubImage2D")(target, level, xoffset, yoffset, width, height, format, imageSize, data); | - |
550 | } | 0 |
551 | | - |
552 | static GLuint qopenglfResolveCreateProgram() | - |
553 | { | - |
554 | return functionResolver<GLuint, 0>(&QOpenGLExtensionsPrivate::CreateProgram, "gl" "CreateProgram", "gl" "CreateProgramObject")(); never executed: return functionResolver<GLuint, 0>(&QOpenGLExtensionsPrivate::CreateProgram, "gl" "CreateProgram", "gl" "CreateProgramObject")(); | 0 |
555 | } | - |
556 | | - |
557 | static GLuint qopenglfResolveCreateShader(GLenum type) | - |
558 | { | - |
559 | return functionResolver<GLuint, 0>(&QOpenGLExtensionsPrivate::CreateShader, "gl" "CreateShader", "gl" "CreateShaderObject")(type); never executed: return functionResolver<GLuint, 0>(&QOpenGLExtensionsPrivate::CreateShader, "gl" "CreateShader", "gl" "CreateShaderObject")(type); | 0 |
560 | } | - |
561 | | - |
562 | static void qopenglfResolveDeleteBuffers(GLsizei n, const GLuint* buffers) | - |
563 | { | - |
564 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::DeleteBuffers, "gl" "DeleteBuffers")(n, buffers); | - |
565 | } | 0 |
566 | | - |
567 | static void qopenglfResolveDeleteFramebuffers(GLsizei n, const GLuint* framebuffers) | - |
568 | { | - |
569 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::DeleteFramebuffers, "gl" "DeleteFramebuffers")(n, framebuffers); | - |
570 | } | 0 |
571 | | - |
572 | static void qopenglfResolveDeleteProgram(GLuint program) | - |
573 | { | - |
574 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::DeleteProgram, "gl" "DeleteProgram")(program); | - |
575 | } | 0 |
576 | | - |
577 | static void qopenglfResolveDeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers) | - |
578 | { | - |
579 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::DeleteRenderbuffers, "gl" "DeleteRenderbuffers")(n, renderbuffers); | - |
580 | } | 0 |
581 | | - |
582 | static void qopenglfResolveDeleteShader(GLuint shader) | - |
583 | { | - |
584 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::DeleteShader, "gl" "DeleteShader", "gl" "DeleteObject")(shader); | - |
585 | } | 0 |
586 | | - |
587 | static void qopenglfResolveDetachShader(GLuint program, GLuint shader) | - |
588 | { | - |
589 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::DetachShader, "gl" "DetachShader", "gl" "DetachObject")(program, shader); | - |
590 | } | 0 |
591 | | - |
592 | static void qopenglfResolveDisableVertexAttribArray(GLuint index) | - |
593 | { | - |
594 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::DisableVertexAttribArray, "gl" "DisableVertexAttribArray")(index); | - |
595 | } | 0 |
596 | | - |
597 | static void qopenglfResolveEnableVertexAttribArray(GLuint index) | - |
598 | { | - |
599 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::EnableVertexAttribArray, "gl" "EnableVertexAttribArray")(index); | - |
600 | } | 0 |
601 | | - |
602 | static void qopenglfResolveFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) | - |
603 | { | - |
604 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::FramebufferRenderbuffer, "gl" "FramebufferRenderbuffer")(target, attachment, renderbuffertarget, renderbuffer); | - |
605 | } | 0 |
606 | | - |
607 | static void qopenglfResolveFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) | - |
608 | { | - |
609 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::FramebufferTexture2D, "gl" "FramebufferTexture2D")(target, attachment, textarget, texture, level); | - |
610 | } | 0 |
611 | | - |
612 | static void qopenglfResolveGenBuffers(GLsizei n, GLuint* buffers) | - |
613 | { | - |
614 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::GenBuffers, "gl" "GenBuffers")(n, buffers); | - |
615 | } | 0 |
616 | | - |
617 | static void qopenglfResolveGenerateMipmap(GLenum target) | - |
618 | { | - |
619 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::GenerateMipmap, "gl" "GenerateMipmap")(target); | - |
620 | } | 0 |
621 | | - |
622 | static void qopenglfResolveGenFramebuffers(GLsizei n, GLuint* framebuffers) | - |
623 | { | - |
624 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::GenFramebuffers, "gl" "GenFramebuffers")(n, framebuffers); | - |
625 | } | 0 |
626 | | - |
627 | static void qopenglfResolveGenRenderbuffers(GLsizei n, GLuint* renderbuffers) | - |
628 | { | - |
629 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::GenRenderbuffers, "gl" "GenRenderbuffers")(n, renderbuffers); | - |
630 | } | 0 |
631 | | - |
632 | static void qopenglfResolveGetActiveAttrib(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, char* name) | - |
633 | { | - |
634 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::GetActiveAttrib, "gl" "GetActiveAttrib")(program, index, bufsize, length, size, type, name); | - |
635 | } | 0 |
636 | | - |
637 | static void qopenglfResolveGetActiveUniform(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, char* name) | - |
638 | { | - |
639 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::GetActiveUniform, "gl" "GetActiveUniform")(program, index, bufsize, length, size, type, name); | - |
640 | } | 0 |
641 | | - |
642 | static void qopenglfResolveGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) | - |
643 | { | - |
644 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::GetAttachedShaders, "gl" "GetAttachedShaders", "gl" "GetAttachedObjects")(program, maxcount, count, shaders); | - |
645 | } | 0 |
646 | | - |
647 | static GLint qopenglfResolveGetAttribLocation(GLuint program, const char* name) | - |
648 | { | - |
649 | return functionResolver<GLint, 0>(&QOpenGLExtensionsPrivate::GetAttribLocation, "gl" "GetAttribLocation")(program, name); never executed: return functionResolver<GLint, 0>(&QOpenGLExtensionsPrivate::GetAttribLocation, "gl" "GetAttribLocation")(program, name); | 0 |
650 | } | - |
651 | | - |
652 | static void qopenglfResolveGetBufferParameteriv(GLenum target, GLenum pname, GLint* params) | - |
653 | { | - |
654 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::GetBufferParameteriv, "gl" "GetBufferParameteriv")(target, pname, params); | - |
655 | } | 0 |
656 | | - |
657 | static void qopenglfResolveGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint* params) | - |
658 | { | - |
659 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::GetFramebufferAttachmentParameteriv, "gl" "GetFramebufferAttachmentParameteriv")(target, attachment, pname, params); | - |
660 | } | 0 |
661 | | - |
662 | static void qopenglfResolveGetProgramiv(GLuint program, GLenum pname, GLint* params) | - |
663 | { | - |
664 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::GetProgramiv, "gl" "GetProgramiv", "gl" "GetObjectParameteriv")(program, pname, params); | - |
665 | } | 0 |
666 | | - |
667 | static void qopenglfResolveGetProgramInfoLog(GLuint program, GLsizei bufsize, GLsizei* length, char* infolog) | - |
668 | { | - |
669 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::GetProgramInfoLog, "gl" "GetProgramInfoLog", "gl" "GetInfoLog")(program, bufsize, length, infolog); | - |
670 | } | 0 |
671 | | - |
672 | static void qopenglfResolveGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint* params) | - |
673 | { | - |
674 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::GetRenderbufferParameteriv, "gl" "GetRenderbufferParameteriv")(target, pname, params); | - |
675 | } | 0 |
676 | | - |
677 | static void qopenglfResolveGetShaderiv(GLuint shader, GLenum pname, GLint* params) | - |
678 | { | - |
679 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::GetShaderiv, "gl" "GetShaderiv", "gl" "GetObjectParameteriv")(shader, pname, params); | - |
680 | } | 0 |
681 | | - |
682 | static void qopenglfResolveGetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog) | - |
683 | { | - |
684 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::GetShaderInfoLog, "gl" "GetShaderInfoLog", "gl" "GetInfoLog")(shader, bufsize, length, infolog); | - |
685 | } | 0 |
686 | | - |
687 | static void qopenglfSpecialGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision) | - |
688 | { | - |
689 | (void)shadertype;; | - |
690 | (void)precisiontype;; | - |
691 | range[0] = range[1] = precision[0] = 0; | - |
692 | } | 0 |
693 | | - |
694 | static void qopenglfResolveGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision) | - |
695 | { | - |
696 | functionResolverWithFallback<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::GetShaderPrecisionFormat, qopenglfSpecialGetShaderPrecisionFormat, "gl" "GetShaderPrecisionFormat")(shadertype, precisiontype, range, precision); | - |
697 | } | 0 |
698 | | - |
699 | static void qopenglfResolveGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei* length, char* source) | - |
700 | { | - |
701 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::GetShaderSource, "gl" "GetShaderSource")(shader, bufsize, length, source); | - |
702 | } | 0 |
703 | | - |
704 | static void qopenglfResolveGetUniformfv(GLuint program, GLint location, GLfloat* params) | - |
705 | { | - |
706 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::GetUniformfv, "gl" "GetUniformfv")(program, location, params); | - |
707 | } | 0 |
708 | | - |
709 | static void qopenglfResolveGetUniformiv(GLuint program, GLint location, GLint* params) | - |
710 | { | - |
711 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::GetUniformiv, "gl" "GetUniformiv")(program, location, params); | - |
712 | } | 0 |
713 | | - |
714 | static GLint qopenglfResolveGetUniformLocation(GLuint program, const char* name) | - |
715 | { | - |
716 | return functionResolver<GLint, 0>(&QOpenGLExtensionsPrivate::GetUniformLocation, "gl" "GetUniformLocation")(program, name); never executed: return functionResolver<GLint, 0>(&QOpenGLExtensionsPrivate::GetUniformLocation, "gl" "GetUniformLocation")(program, name); | 0 |
717 | } | - |
718 | | - |
719 | static void qopenglfResolveGetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params) | - |
720 | { | - |
721 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::GetVertexAttribfv, "gl" "GetVertexAttribfv")(index, pname, params); | - |
722 | } | 0 |
723 | | - |
724 | static void qopenglfResolveGetVertexAttribiv(GLuint index, GLenum pname, GLint* params) | - |
725 | { | - |
726 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::GetVertexAttribiv, "gl" "GetVertexAttribiv")(index, pname, params); | - |
727 | } | 0 |
728 | | - |
729 | static void qopenglfResolveGetVertexAttribPointerv(GLuint index, GLenum pname, void** pointer) | - |
730 | { | - |
731 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::GetVertexAttribPointerv, "gl" "GetVertexAttribPointerv")(index, pname, pointer); | - |
732 | } | 0 |
733 | | - |
734 | static GLboolean qopenglfResolveIsBuffer(GLuint buffer) | - |
735 | { | - |
736 | return functionResolver<GLboolean, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::IsBuffer, "gl" "IsBuffer")(buffer); never executed: return functionResolver<GLboolean, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::IsBuffer, "gl" "IsBuffer")(buffer); | 0 |
737 | } | - |
738 | | - |
739 | static GLboolean qopenglfResolveIsFramebuffer(GLuint framebuffer) | - |
740 | { | - |
741 | return functionResolver<GLboolean, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::IsFramebuffer, "gl" "IsFramebuffer")(framebuffer); never executed: return functionResolver<GLboolean, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::IsFramebuffer, "gl" "IsFramebuffer")(framebuffer); | 0 |
742 | } | - |
743 | | - |
744 | static GLboolean qopenglfSpecialIsProgram(GLuint program) | - |
745 | { | - |
746 | return program != 0; never executed: return program != 0; | 0 |
747 | } | - |
748 | | - |
749 | static GLboolean qopenglfResolveIsProgram(GLuint program) | - |
750 | { | - |
751 | return functionResolverWithFallback<GLboolean, 0>(&QOpenGLExtensionsPrivate::IsProgram, qopenglfSpecialIsProgram, "gl" "IsProgram")(program); never executed: return functionResolverWithFallback<GLboolean, 0>(&QOpenGLExtensionsPrivate::IsProgram, qopenglfSpecialIsProgram, "gl" "IsProgram")(program); | 0 |
752 | } | - |
753 | | - |
754 | static GLboolean qopenglfResolveIsRenderbuffer(GLuint renderbuffer) | - |
755 | { | - |
756 | return functionResolver<GLboolean, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::IsRenderbuffer, "gl" "IsRenderbuffer")(renderbuffer); never executed: return functionResolver<GLboolean, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::IsRenderbuffer, "gl" "IsRenderbuffer")(renderbuffer); | 0 |
757 | } | - |
758 | | - |
759 | static GLboolean qopenglfSpecialIsShader(GLuint shader) | - |
760 | { | - |
761 | return shader != 0; never executed: return shader != 0; | 0 |
762 | } | - |
763 | | - |
764 | static GLboolean qopenglfResolveIsShader(GLuint shader) | - |
765 | { | - |
766 | return functionResolverWithFallback<GLboolean, 0>(&QOpenGLExtensionsPrivate::IsShader, qopenglfSpecialIsShader, "gl" "IsShader")(shader); never executed: return functionResolverWithFallback<GLboolean, 0>(&QOpenGLExtensionsPrivate::IsShader, qopenglfSpecialIsShader, "gl" "IsShader")(shader); | 0 |
767 | } | - |
768 | | - |
769 | static void qopenglfResolveLinkProgram(GLuint program) | - |
770 | { | - |
771 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::LinkProgram, "gl" "LinkProgram")(program); | - |
772 | } | 0 |
773 | | - |
774 | static void qopenglfSpecialReleaseShaderCompiler() | - |
775 | { | - |
776 | } | - |
777 | | - |
778 | static void qopenglfResolveReleaseShaderCompiler() | - |
779 | { | - |
780 | functionResolverWithFallback<void, 0>(&QOpenGLExtensionsPrivate::ReleaseShaderCompiler, qopenglfSpecialReleaseShaderCompiler, "gl" "ReleaseShaderCompiler")(); | - |
781 | } | 0 |
782 | | - |
783 | static void qopenglfResolveRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) | - |
784 | { | - |
785 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::RenderbufferStorage, "gl" "RenderbufferStorage")(target, internalformat, width, height); | - |
786 | } | 0 |
787 | | - |
788 | static void qopenglfResolveSampleCoverage(GLclampf value, GLboolean invert) | - |
789 | { | - |
790 | functionResolver<void, ResolveOES | ResolveEXT>(&QOpenGLExtensionsPrivate::SampleCoverage, "gl" "SampleCoverage")(value, invert); | - |
791 | } | 0 |
792 | | - |
793 | static void qopenglfResolveShaderBinary(GLint n, const GLuint* shaders, GLenum binaryformat, const void* binary, GLint length) | - |
794 | { | - |
795 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::ShaderBinary, "gl" "ShaderBinary")(n, shaders, binaryformat, binary, length); | - |
796 | } | 0 |
797 | | - |
798 | static void qopenglfResolveShaderSource(GLuint shader, GLsizei count, const char** string, const GLint* length) | - |
799 | { | - |
800 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::ShaderSource, "gl" "ShaderSource")(shader, count, string, length); | - |
801 | } | 0 |
802 | | - |
803 | static void qopenglfResolveStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) | - |
804 | { | - |
805 | functionResolver<void, ResolveEXT>(&QOpenGLExtensionsPrivate::StencilFuncSeparate, "gl" "StencilFuncSeparate")(face, func, ref, mask); | - |
806 | } | 0 |
807 | | - |
808 | static void qopenglfResolveStencilMaskSeparate(GLenum face, GLuint mask) | - |
809 | { | - |
810 | functionResolver<void, ResolveEXT>(&QOpenGLExtensionsPrivate::StencilMaskSeparate, "gl" "StencilMaskSeparate")(face, mask); | - |
811 | } | 0 |
812 | | - |
813 | static void qopenglfResolveStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) | - |
814 | { | - |
815 | functionResolver<void, ResolveEXT>(&QOpenGLExtensionsPrivate::StencilOpSeparate, "gl" "StencilOpSeparate")(face, fail, zfail, zpass); | - |
816 | } | 0 |
817 | | - |
818 | static void qopenglfResolveUniform1f(GLint location, GLfloat x) | - |
819 | { | - |
820 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::Uniform1f, "gl" "Uniform1f")(location, x); | - |
821 | } | 0 |
822 | | - |
823 | static void qopenglfResolveUniform1fv(GLint location, GLsizei count, const GLfloat* v) | - |
824 | { | - |
825 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::Uniform1fv, "gl" "Uniform1fv")(location, count, v); | - |
826 | } | 0 |
827 | | - |
828 | static void qopenglfResolveUniform1i(GLint location, GLint x) | - |
829 | { | - |
830 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::Uniform1i, "gl" "Uniform1i")(location, x); | - |
831 | } | 0 |
832 | | - |
833 | static void qopenglfResolveUniform1iv(GLint location, GLsizei count, const GLint* v) | - |
834 | { | - |
835 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::Uniform1iv, "gl" "Uniform1iv")(location, count, v); | - |
836 | } | 0 |
837 | | - |
838 | static void qopenglfResolveUniform2f(GLint location, GLfloat x, GLfloat y) | - |
839 | { | - |
840 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::Uniform2f, "gl" "Uniform2f")(location, x, y); | - |
841 | } | 0 |
842 | | - |
843 | static void qopenglfResolveUniform2fv(GLint location, GLsizei count, const GLfloat* v) | - |
844 | { | - |
845 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::Uniform2fv, "gl" "Uniform2fv")(location, count, v); | - |
846 | } | 0 |
847 | | - |
848 | static void qopenglfResolveUniform2i(GLint location, GLint x, GLint y) | - |
849 | { | - |
850 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::Uniform2i, "gl" "Uniform2i")(location, x, y); | - |
851 | } | 0 |
852 | | - |
853 | static void qopenglfResolveUniform2iv(GLint location, GLsizei count, const GLint* v) | - |
854 | { | - |
855 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::Uniform2iv, "gl" "Uniform2iv")(location, count, v); | - |
856 | } | 0 |
857 | | - |
858 | static void qopenglfResolveUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) | - |
859 | { | - |
860 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::Uniform3f, "gl" "Uniform3f")(location, x, y, z); | - |
861 | } | 0 |
862 | | - |
863 | static void qopenglfResolveUniform3fv(GLint location, GLsizei count, const GLfloat* v) | - |
864 | { | - |
865 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::Uniform3fv, "gl" "Uniform3fv")(location, count, v); | - |
866 | } | 0 |
867 | | - |
868 | static void qopenglfResolveUniform3i(GLint location, GLint x, GLint y, GLint z) | - |
869 | { | - |
870 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::Uniform3i, "gl" "Uniform3i")(location, x, y, z); | - |
871 | } | 0 |
872 | | - |
873 | static void qopenglfResolveUniform3iv(GLint location, GLsizei count, const GLint* v) | - |
874 | { | - |
875 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::Uniform3iv, "gl" "Uniform3iv")(location, count, v); | - |
876 | } | 0 |
877 | | - |
878 | static void qopenglfResolveUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) | - |
879 | { | - |
880 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::Uniform4f, "gl" "Uniform4f")(location, x, y, z, w); | - |
881 | } | 0 |
882 | | - |
883 | static void qopenglfResolveUniform4fv(GLint location, GLsizei count, const GLfloat* v) | - |
884 | { | - |
885 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::Uniform4fv, "gl" "Uniform4fv")(location, count, v); | - |
886 | } | 0 |
887 | | - |
888 | static void qopenglfResolveUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) | - |
889 | { | - |
890 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::Uniform4i, "gl" "Uniform4i")(location, x, y, z, w); | - |
891 | } | 0 |
892 | | - |
893 | static void qopenglfResolveUniform4iv(GLint location, GLsizei count, const GLint* v) | - |
894 | { | - |
895 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::Uniform4iv, "gl" "Uniform4iv")(location, count, v); | - |
896 | } | 0 |
897 | | - |
898 | static void qopenglfResolveUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) | - |
899 | { | - |
900 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::UniformMatrix2fv, "gl" "UniformMatrix2fv")(location, count, transpose, value); | - |
901 | } | 0 |
902 | | - |
903 | static void qopenglfResolveUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) | - |
904 | { | - |
905 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::UniformMatrix3fv, "gl" "UniformMatrix3fv")(location, count, transpose, value); | - |
906 | } | 0 |
907 | | - |
908 | static void qopenglfResolveUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) | - |
909 | { | - |
910 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::UniformMatrix4fv, "gl" "UniformMatrix4fv")(location, count, transpose, value); | - |
911 | } | 0 |
912 | | - |
913 | static void qopenglfResolveUseProgram(GLuint program) | - |
914 | { | - |
915 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::UseProgram, "gl" "UseProgram")(program); | - |
916 | } | 0 |
917 | | - |
918 | static void qopenglfResolveValidateProgram(GLuint program) | - |
919 | { | - |
920 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::ValidateProgram, "gl" "ValidateProgram")(program); | - |
921 | } | 0 |
922 | | - |
923 | static void qopenglfResolveVertexAttrib1f(GLuint indx, GLfloat x) | - |
924 | { | - |
925 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::VertexAttrib1f, "gl" "VertexAttrib1f")(indx, x); | - |
926 | } | 0 |
927 | | - |
928 | static void qopenglfResolveVertexAttrib1fv(GLuint indx, const GLfloat* values) | - |
929 | { | - |
930 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::VertexAttrib1fv, "gl" "VertexAttrib1fv")(indx, values); | - |
931 | } | 0 |
932 | | - |
933 | static void qopenglfResolveVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) | - |
934 | { | - |
935 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::VertexAttrib2f, "gl" "VertexAttrib2f")(indx, x, y); | - |
936 | } | 0 |
937 | | - |
938 | static void qopenglfResolveVertexAttrib2fv(GLuint indx, const GLfloat* values) | - |
939 | { | - |
940 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::VertexAttrib2fv, "gl" "VertexAttrib2fv")(indx, values); | - |
941 | } | 0 |
942 | | - |
943 | static void qopenglfResolveVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) | - |
944 | { | - |
945 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::VertexAttrib3f, "gl" "VertexAttrib3f")(indx, x, y, z); | - |
946 | } | 0 |
947 | | - |
948 | static void qopenglfResolveVertexAttrib3fv(GLuint indx, const GLfloat* values) | - |
949 | { | - |
950 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::VertexAttrib3fv, "gl" "VertexAttrib3fv")(indx, values); | - |
951 | } | 0 |
952 | | - |
953 | static void qopenglfResolveVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) | - |
954 | { | - |
955 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::VertexAttrib4f, "gl" "VertexAttrib4f")(indx, x, y, z, w); | - |
956 | } | 0 |
957 | | - |
958 | static void qopenglfResolveVertexAttrib4fv(GLuint indx, const GLfloat* values) | - |
959 | { | - |
960 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::VertexAttrib4fv, "gl" "VertexAttrib4fv")(indx, values); | - |
961 | } | 0 |
962 | | - |
963 | static void qopenglfResolveVertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* ptr) | - |
964 | { | - |
965 | functionResolver<void, 0>(&QOpenGLExtensionsPrivate::VertexAttribPointer, "gl" "VertexAttribPointer")(indx, size, type, normalized, stride, ptr); | - |
966 | } | 0 |
967 | | - |
968 | | - |
969 | | - |
970 | static GLvoid * qopenglfResolveMapBuffer(GLenum target, GLenum access) | - |
971 | { | - |
972 | return functionResolver<GLvoid *, ResolveOES>(&QOpenGLExtensionsPrivate::MapBuffer, "gl" "MapBuffer")(target, access); never executed: return functionResolver<GLvoid *, ResolveOES>(&QOpenGLExtensionsPrivate::MapBuffer, "gl" "MapBuffer")(target, access); | 0 |
973 | } | - |
974 | | - |
975 | static GLboolean qopenglfResolveUnmapBuffer(GLenum target) | - |
976 | { | - |
977 | return functionResolver<GLboolean, ResolveOES>(&QOpenGLExtensionsPrivate::UnmapBuffer, "gl" "UnmapBuffer")(target); never executed: return functionResolver<GLboolean, ResolveOES>(&QOpenGLExtensionsPrivate::UnmapBuffer, "gl" "UnmapBuffer")(target); | 0 |
978 | } | - |
979 | | - |
980 | static void qopenglfResolveBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, | - |
981 | GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, | - |
982 | GLbitfield mask, GLenum filter) | - |
983 | { | - |
984 | functionResolver<void, ResolveEXT>(&QOpenGLExtensionsPrivate::BlitFramebuffer, "gl" "BlitFramebuffer") | - |
985 | (srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); | - |
986 | } | 0 |
987 | | - |
988 | static void qopenglfResolveRenderbufferStorageMultisample(GLenum target, GLsizei samples, | - |
989 | GLenum internalFormat, | - |
990 | GLsizei width, GLsizei height) | - |
991 | { | - |
992 | functionResolver<void, ResolveEXT>(&QOpenGLExtensionsPrivate::RenderbufferStorageMultisample, "gl" "RenderbufferStorageMultisample") | - |
993 | (target, samples, internalFormat, width, height); | - |
994 | } | 0 |
995 | | - |
996 | static void qopenglfResolveGetBufferSubData(GLenum target, qopengl_GLintptr offset, qopengl_GLsizeiptr size, GLvoid *data) | - |
997 | { | - |
998 | functionResolver<void, ResolveEXT>(&QOpenGLExtensionsPrivate::GetBufferSubData, "gl" "GetBufferSubData") | - |
999 | (target, offset, size, data); | - |
1000 | } | 0 |
1001 | | - |
1002 | QOpenGLFunctionsPrivate::QOpenGLFunctionsPrivate(QOpenGLContext *) | - |
1003 | { | - |
1004 | | - |
1005 | | - |
1006 | | - |
1007 | | - |
1008 | | - |
1009 | ActiveTexture = qopenglfResolveActiveTexture; | - |
1010 | AttachShader = qopenglfResolveAttachShader; | - |
1011 | BindAttribLocation = qopenglfResolveBindAttribLocation; | - |
1012 | BindBuffer = qopenglfResolveBindBuffer; | - |
1013 | BindFramebuffer = qopenglfResolveBindFramebuffer; | - |
1014 | BindRenderbuffer = qopenglfResolveBindRenderbuffer; | - |
1015 | BlendColor = qopenglfResolveBlendColor; | - |
1016 | BlendEquation = qopenglfResolveBlendEquation; | - |
1017 | BlendEquationSeparate = qopenglfResolveBlendEquationSeparate; | - |
1018 | BlendFuncSeparate = qopenglfResolveBlendFuncSeparate; | - |
1019 | BufferData = qopenglfResolveBufferData; | - |
1020 | BufferSubData = qopenglfResolveBufferSubData; | - |
1021 | CheckFramebufferStatus = qopenglfResolveCheckFramebufferStatus; | - |
1022 | CompileShader = qopenglfResolveCompileShader; | - |
1023 | CompressedTexImage2D = qopenglfResolveCompressedTexImage2D; | - |
1024 | CompressedTexSubImage2D = qopenglfResolveCompressedTexSubImage2D; | - |
1025 | CreateProgram = qopenglfResolveCreateProgram; | - |
1026 | CreateShader = qopenglfResolveCreateShader; | - |
1027 | DeleteBuffers = qopenglfResolveDeleteBuffers; | - |
1028 | DeleteFramebuffers = qopenglfResolveDeleteFramebuffers; | - |
1029 | DeleteProgram = qopenglfResolveDeleteProgram; | - |
1030 | DeleteRenderbuffers = qopenglfResolveDeleteRenderbuffers; | - |
1031 | DeleteShader = qopenglfResolveDeleteShader; | - |
1032 | DetachShader = qopenglfResolveDetachShader; | - |
1033 | DisableVertexAttribArray = qopenglfResolveDisableVertexAttribArray; | - |
1034 | EnableVertexAttribArray = qopenglfResolveEnableVertexAttribArray; | - |
1035 | FramebufferRenderbuffer = qopenglfResolveFramebufferRenderbuffer; | - |
1036 | FramebufferTexture2D = qopenglfResolveFramebufferTexture2D; | - |
1037 | GenBuffers = qopenglfResolveGenBuffers; | - |
1038 | GenerateMipmap = qopenglfResolveGenerateMipmap; | - |
1039 | GenFramebuffers = qopenglfResolveGenFramebuffers; | - |
1040 | GenRenderbuffers = qopenglfResolveGenRenderbuffers; | - |
1041 | GetActiveAttrib = qopenglfResolveGetActiveAttrib; | - |
1042 | GetActiveUniform = qopenglfResolveGetActiveUniform; | - |
1043 | GetAttachedShaders = qopenglfResolveGetAttachedShaders; | - |
1044 | GetAttribLocation = qopenglfResolveGetAttribLocation; | - |
1045 | GetBufferParameteriv = qopenglfResolveGetBufferParameteriv; | - |
1046 | GetFramebufferAttachmentParameteriv = qopenglfResolveGetFramebufferAttachmentParameteriv; | - |
1047 | GetProgramiv = qopenglfResolveGetProgramiv; | - |
1048 | GetProgramInfoLog = qopenglfResolveGetProgramInfoLog; | - |
1049 | GetRenderbufferParameteriv = qopenglfResolveGetRenderbufferParameteriv; | - |
1050 | GetShaderiv = qopenglfResolveGetShaderiv; | - |
1051 | GetShaderInfoLog = qopenglfResolveGetShaderInfoLog; | - |
1052 | GetShaderPrecisionFormat = qopenglfResolveGetShaderPrecisionFormat; | - |
1053 | GetShaderSource = qopenglfResolveGetShaderSource; | - |
1054 | GetUniformfv = qopenglfResolveGetUniformfv; | - |
1055 | GetUniformiv = qopenglfResolveGetUniformiv; | - |
1056 | GetUniformLocation = qopenglfResolveGetUniformLocation; | - |
1057 | GetVertexAttribfv = qopenglfResolveGetVertexAttribfv; | - |
1058 | GetVertexAttribiv = qopenglfResolveGetVertexAttribiv; | - |
1059 | GetVertexAttribPointerv = qopenglfResolveGetVertexAttribPointerv; | - |
1060 | IsBuffer = qopenglfResolveIsBuffer; | - |
1061 | IsFramebuffer = qopenglfResolveIsFramebuffer; | - |
1062 | IsProgram = qopenglfResolveIsProgram; | - |
1063 | IsRenderbuffer = qopenglfResolveIsRenderbuffer; | - |
1064 | IsShader = qopenglfResolveIsShader; | - |
1065 | LinkProgram = qopenglfResolveLinkProgram; | - |
1066 | ReleaseShaderCompiler = qopenglfResolveReleaseShaderCompiler; | - |
1067 | RenderbufferStorage = qopenglfResolveRenderbufferStorage; | - |
1068 | SampleCoverage = qopenglfResolveSampleCoverage; | - |
1069 | ShaderBinary = qopenglfResolveShaderBinary; | - |
1070 | ShaderSource = qopenglfResolveShaderSource; | - |
1071 | StencilFuncSeparate = qopenglfResolveStencilFuncSeparate; | - |
1072 | StencilMaskSeparate = qopenglfResolveStencilMaskSeparate; | - |
1073 | StencilOpSeparate = qopenglfResolveStencilOpSeparate; | - |
1074 | Uniform1f = qopenglfResolveUniform1f; | - |
1075 | Uniform1fv = qopenglfResolveUniform1fv; | - |
1076 | Uniform1i = qopenglfResolveUniform1i; | - |
1077 | Uniform1iv = qopenglfResolveUniform1iv; | - |
1078 | Uniform2f = qopenglfResolveUniform2f; | - |
1079 | Uniform2fv = qopenglfResolveUniform2fv; | - |
1080 | Uniform2i = qopenglfResolveUniform2i; | - |
1081 | Uniform2iv = qopenglfResolveUniform2iv; | - |
1082 | Uniform3f = qopenglfResolveUniform3f; | - |
1083 | Uniform3fv = qopenglfResolveUniform3fv; | - |
1084 | Uniform3i = qopenglfResolveUniform3i; | - |
1085 | Uniform3iv = qopenglfResolveUniform3iv; | - |
1086 | Uniform4f = qopenglfResolveUniform4f; | - |
1087 | Uniform4fv = qopenglfResolveUniform4fv; | - |
1088 | Uniform4i = qopenglfResolveUniform4i; | - |
1089 | Uniform4iv = qopenglfResolveUniform4iv; | - |
1090 | UniformMatrix2fv = qopenglfResolveUniformMatrix2fv; | - |
1091 | UniformMatrix3fv = qopenglfResolveUniformMatrix3fv; | - |
1092 | UniformMatrix4fv = qopenglfResolveUniformMatrix4fv; | - |
1093 | UseProgram = qopenglfResolveUseProgram; | - |
1094 | ValidateProgram = qopenglfResolveValidateProgram; | - |
1095 | VertexAttrib1f = qopenglfResolveVertexAttrib1f; | - |
1096 | VertexAttrib1fv = qopenglfResolveVertexAttrib1fv; | - |
1097 | VertexAttrib2f = qopenglfResolveVertexAttrib2f; | - |
1098 | VertexAttrib2fv = qopenglfResolveVertexAttrib2fv; | - |
1099 | VertexAttrib3f = qopenglfResolveVertexAttrib3f; | - |
1100 | VertexAttrib3fv = qopenglfResolveVertexAttrib3fv; | - |
1101 | VertexAttrib4f = qopenglfResolveVertexAttrib4f; | - |
1102 | VertexAttrib4fv = qopenglfResolveVertexAttrib4fv; | - |
1103 | VertexAttribPointer = qopenglfResolveVertexAttribPointer; | - |
1104 | | - |
1105 | } | 0 |
1106 | | - |
1107 | QOpenGLExtensionsPrivate::QOpenGLExtensionsPrivate(QOpenGLContext *ctx) | - |
1108 | : QOpenGLFunctionsPrivate(ctx) | - |
1109 | { | - |
1110 | MapBuffer = qopenglfResolveMapBuffer; | - |
1111 | UnmapBuffer = qopenglfResolveUnmapBuffer; | - |
1112 | BlitFramebuffer = qopenglfResolveBlitFramebuffer; | - |
1113 | RenderbufferStorageMultisample = qopenglfResolveRenderbufferStorageMultisample; | - |
1114 | GetBufferSubData = qopenglfResolveGetBufferSubData; | - |
1115 | } | 0 |
1116 | | - |
1117 | | - |
1118 | | - |
| | |