Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qopenglfunctions.cpp
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
7#include "qdebug.h"
8#include <QtGui/private/qopenglcontext_p.h>
9#include <QtGui/private/qopengl_p.h>
10#include <QtGui/private/qguiapplication_p.h>
11#include <qpa/qplatformintegration.h>
12#include <qpa/qplatformnativeinterface.h>
13
14#ifdef Q_OS_INTEGRITY
15#include <EGL/egl.h>
16#endif
17
18#ifndef GL_FRAMEBUFFER_SRGB_CAPABLE_EXT
19#define GL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x8DBA
20#endif
21
23
24using namespace Qt::StringLiterals;
25
26#define QT_OPENGL_COUNT_FUNCTIONS(ret, name, args) +1
27#define QT_OPENGL_FUNCTION_NAMES(ret, name, args)
28 "gl"#name"\0"
29#define QT_OPENGL_FLAGS(ret, name, args)
30 0,
31#define QT_OPENGL_IMPLEMENT(CLASS, FUNCTIONS) void
32 CLASS::init(QOpenGLContext *context) \
33{
34 const char *names = FUNCTIONS(QT_OPENGL_FUNCTION_NAMES);
35 const char *name = names;
36 for (int i = 0; i < FUNCTIONS(QT_OPENGL_COUNT_FUNCTIONS); ++i) {
37 functions[i] = QT_PREPEND_NAMESPACE(getProcAddress(context, name));
38 name += strlen(name) + 1;
39 } \
40}
41
42/*!
43 \class QOpenGLFunctions
44 \brief The QOpenGLFunctions class provides cross-platform access to the OpenGL ES 2.0 API.
45 \since 5.0
46 \ingroup painting-3D
47 \inmodule QtGui
48
49 OpenGL ES 2.0 defines a subset of the OpenGL specification that is
50 common across many desktop and embedded OpenGL implementations.
51 However, it can be difficult to use the functions from that subset
52 because they need to be resolved manually on desktop systems.
53
54 QOpenGLFunctions provides a guaranteed API that is available on all
55 OpenGL systems and takes care of function resolution on systems
56 that need it. The recommended way to use QOpenGLFunctions is by
57 direct inheritance:
58
59 \snippet code/src_gui_opengl_qopenglfunctions.cpp 0
60
61 The \c{paintGL()} function can then use any of the OpenGL ES 2.0
62 functions without explicit resolution, such as glActiveTexture()
63 in the following example:
64
65 \snippet code/src_gui_opengl_qopenglfunctions.cpp 1
66
67 QOpenGLFunctions can also be used directly for ad-hoc invocation
68 of OpenGL ES 2.0 functions on all platforms:
69
70 \snippet code/src_gui_opengl_qopenglfunctions.cpp 2
71
72 An alternative approach is to query the context's associated
73 QOpenGLFunctions instance. This is somewhat faster than the previous
74 approach due to avoiding the creation of a new instance, but the difference
75 is fairly small since the internal data structures are shared, and function
76 resolving happens only once for a given context, regardless of the number of
77 QOpenGLFunctions instances initialized for it.
78
79 \snippet code/src_gui_opengl_qopenglfunctions.cpp 3
80
81 QOpenGLFunctions provides wrappers for all OpenGL ES 2.0
82 functions, including the common subset of OpenGL 1.x and ES
83 2.0. While such functions, for example glClear() or
84 glDrawArrays(), can be called also directly, as long as the
85 application links to the platform-specific OpenGL library, calling
86 them via QOpenGLFunctions enables the possibility of dynamically
87 loading the OpenGL implementation.
88
89 The hasOpenGLFeature() and openGLFeatures() functions can be used
90 to determine if the OpenGL implementation has a major OpenGL ES 2.0
91 feature. For example, the following checks if non power of two
92 textures are available:
93
94 \snippet code/src_gui_opengl_qopenglfunctions.cpp 4
95
96 \section1 Security Considerations
97
98 QOpenGLFunctions is a thin dispatch layer that exposes the OpenGL ES 2.0 API
99 as-is. The arguments are forwarded verbatim to the underlying OpenGL
100 implementation, which is a trusted, in-process platform dependency. Qt does
101 not inspect, validate, or sanitize the enums, sizes, offsets, and pointers
102 passed in, and does not act on the results returned. Calling a member
103 function here is therefore equivalent to calling the corresponding OpenGL
104 function directly, and the rules in the
105 \l{https://www.khronos.org/opengl/}{OpenGL and OpenGL ES specifications}
106 apply unchanged. Violating them leads to undefined behavior in the OpenGL
107 implementation, not to a graceful failure from Qt.
108
109 Note in particular that the functions taking a client-side pointer together
110 with a size or a format description, such as glTexImage2D(), glBufferData(),
111 glDrawElements(), and glReadPixels(), cause that memory to be read or
112 written as directed by the other arguments. Sizes that do not match the
113 buffer actually provided are therefore an out-of-bounds access in the
114 application's own address space, not only a driver-side error.
115
116 \warning All data passed through QOpenGLFunctions is expected to be trusted
117 content. Application developers are advised to carefully consider the
118 potential implications before deriving any of it from user-provided content
119 that is not part of the application and is not under the developers'
120 control. See \l{QOpenGLContext#Security Considerations}{QOpenGLContext} for
121 more information.
122
123 \sa QOpenGLContext, QSurfaceFormat
124*/
125
126/*!
127 \enum QOpenGLFunctions::OpenGLFeature
128 This enum defines OpenGL and OpenGL ES features whose presence
129 may depend on the implementation.
130
131 \value Multitexture glActiveTexture() function is available.
132 \value Shaders Shader functions are available.
133 \value Buffers Vertex and index buffer functions are available.
134 \value Framebuffers Framebuffer object functions are available.
135 \value BlendColor glBlendColor() is available.
136 \value BlendEquation glBlendEquation() is available.
137 \value BlendEquationSeparate glBlendEquationSeparate() is available.
138 \value BlendEquationAdvanced Advanced blend equations are available.
139 \value BlendFuncSeparate glBlendFuncSeparate() is available.
140 \value BlendSubtract Blend subtract mode is available.
141 \value CompressedTextures Compressed texture functions are available.
142 \value Multisample glSampleCoverage() function is available.
143 \value StencilSeparate Separate stencil functions are available.
144 \value NPOTTextures Non power of two textures are available.
145 \value NPOTTextureRepeat Non power of two textures can use GL_REPEAT as wrap parameter.
146 \value FixedFunctionPipeline The fixed function pipeline is available.
147 \value TextureRGFormats The GL_RED and GL_RG texture formats are available.
148 \value MultipleRenderTargets Multiple color attachments to framebuffer objects are available.
149*/
150
151// Hidden private fields for additional extension data.
153{
160
162 {
163 m_features = -1;
164 m_extensions = -1;
165 }
166
167 void freeResource(QOpenGLContext *) override
168 {
169 // no gl resources to free
170 }
171
174};
175
177
178static QOpenGLFunctionsPrivateEx *qt_gl_functions(QOpenGLContext *context = nullptr)
179{
180 if (!context)
181 context = QOpenGLContext::currentContext();
182 Q_ASSERT(context);
184 qt_gl_functions_resource()->value<QOpenGLFunctionsPrivateEx>(context);
185 return funcs;
186}
187
188/*!
189 Constructs a default function resolver. The resolver cannot
190 be used until initializeOpenGLFunctions() is called to specify
191 the context.
192
193 \sa initializeOpenGLFunctions()
194*/
195QOpenGLFunctions::QOpenGLFunctions()
196 : d_ptr(nullptr)
197{
198}
199
200/*!
201 Constructs a function resolver for \a context. If \a context
202 is \nullptr, then the resolver will be created for the current
203 QOpenGLContext.
204
205 The context or another context in the group must be current.
206
207 An object constructed in this way can only be used with \a context
208 and other contexts that share with it. Use initializeOpenGLFunctions()
209 to change the object's context association.
210
211 \sa initializeOpenGLFunctions()
212*/
213QOpenGLFunctions::QOpenGLFunctions(QOpenGLContext *context)
214 : d_ptr(nullptr)
215{
216 if (context && QOpenGLContextGroup::currentContextGroup() == context->shareGroup())
217 d_ptr = qt_gl_functions(context);
218 else
219 qWarning("QOpenGLFunctions created with non-current context");
220}
221
222/*!
223 \class QOpenGLExtensions
224 \inmodule QtGui
225 \internal
226*/
227
228QOpenGLExtensions::QOpenGLExtensions()
229{
230}
231
232QOpenGLExtensions::QOpenGLExtensions(QOpenGLContext *context)
233 : QOpenGLExtraFunctions(context)
234{
235}
236
237/*!
238 \fn QOpenGLFunctions::~QOpenGLFunctions()
239
240 Destroys this function resolver.
241*/
242
244{
245 QOpenGLContext *ctx = QOpenGLContext::currentContext();
246 QOpenGLExtensionMatcher extensions;
247 int features = 0;
248 if ((extensions.match("GL_KHR_blend_equation_advanced")
249 || extensions.match("GL_NV_blend_equation_advanced")) &&
250 (extensions.match("GL_KHR_blend_equation_advanced_coherent")
251 || extensions.match("GL_NV_blend_equation_advanced_coherent"))) {
252 // We need both the advanced equations and the coherency for us
253 // to be able to easily use the new blend equations
254 features |= QOpenGLFunctions::BlendEquationAdvanced;
255 }
256 if (ctx->isOpenGLES()) {
257 // OpenGL ES
258 features |= QOpenGLFunctions::Multitexture |
259 QOpenGLFunctions::Shaders |
260 QOpenGLFunctions::Buffers |
261 QOpenGLFunctions::Framebuffers |
262 QOpenGLFunctions::BlendColor |
263 QOpenGLFunctions::BlendEquation |
264 QOpenGLFunctions::BlendEquationSeparate |
265 QOpenGLFunctions::BlendFuncSeparate |
266 QOpenGLFunctions::BlendSubtract |
267 QOpenGLFunctions::CompressedTextures |
268 QOpenGLFunctions::Multisample |
269 QOpenGLFunctions::StencilSeparate;
270
271 if (ctx->format().majorVersion() >= 3) {
272 features |= QOpenGLFunctions::NPOTTextures |
273 QOpenGLFunctions::NPOTTextureRepeat;
274 } else {
275 if (extensions.match("GL_IMG_texture_npot"))
276 features |= QOpenGLFunctions::NPOTTextures;
277 if (extensions.match("GL_OES_texture_npot"))
278 features |= QOpenGLFunctions::NPOTTextures |
279 QOpenGLFunctions::NPOTTextureRepeat;
280 }
281 if (ctx->format().majorVersion() >= 3 || extensions.match("GL_EXT_texture_rg"))
282 features |= QOpenGLFunctions::TextureRGFormats;
283 if (ctx->format().majorVersion() >= 3) {
284 features |= QOpenGLFunctions::MultipleRenderTargets;
285 if (ctx->format().minorVersion() >= 2 && extensions.match("GL_KHR_blend_equation_advanced_coherent")) {
286 // GL_KHR_blend_equation_advanced is included in OpenGL ES/3.2
287 features |= QOpenGLFunctions::BlendEquationAdvanced;
288 }
289 }
290 return features;
291 } else {
292 // OpenGL
293 features |= QOpenGLFunctions::TextureRGFormats;
294 QSurfaceFormat format = QOpenGLContext::currentContext()->format();
295
296 if (format.majorVersion() >= 3)
297 features |= QOpenGLFunctions::Framebuffers | QOpenGLFunctions::MultipleRenderTargets;
298 else if (extensions.match("GL_EXT_framebuffer_object") || extensions.match("GL_ARB_framebuffer_object"))
299 features |= QOpenGLFunctions::Framebuffers | QOpenGLFunctions::MultipleRenderTargets;
300
301 if (format.majorVersion() >= 2) {
302 features |= QOpenGLFunctions::BlendColor |
303 QOpenGLFunctions::BlendEquation |
304 QOpenGLFunctions::BlendSubtract |
305 QOpenGLFunctions::Multitexture |
306 QOpenGLFunctions::CompressedTextures |
307 QOpenGLFunctions::Multisample |
308 QOpenGLFunctions::BlendFuncSeparate |
309 QOpenGLFunctions::Buffers |
310 QOpenGLFunctions::Shaders |
311 QOpenGLFunctions::StencilSeparate |
312 QOpenGLFunctions::BlendEquationSeparate |
313 QOpenGLFunctions::NPOTTextures |
314 QOpenGLFunctions::NPOTTextureRepeat;
315 } else {
316 // Recognize features by extension name.
317 if (extensions.match("GL_ARB_multitexture"))
318 features |= QOpenGLFunctions::Multitexture;
319 if (extensions.match("GL_ARB_shader_objects"))
320 features |= QOpenGLFunctions::Shaders;
321 if (extensions.match("GL_EXT_blend_color"))
322 features |= QOpenGLFunctions::BlendColor;
323 if (extensions.match("GL_EXT_blend_equation_separate"))
324 features |= QOpenGLFunctions::BlendEquationSeparate;
325 if (extensions.match("GL_EXT_blend_subtract"))
326 features |= QOpenGLFunctions::BlendSubtract;
327 if (extensions.match("GL_EXT_blend_func_separate"))
328 features |= QOpenGLFunctions::BlendFuncSeparate;
329 if (extensions.match("GL_ARB_texture_compression"))
330 features |= QOpenGLFunctions::CompressedTextures;
331 if (extensions.match("GL_ARB_multisample"))
332 features |= QOpenGLFunctions::Multisample;
333 if (extensions.match("GL_ARB_texture_non_power_of_two"))
334 features |= QOpenGLFunctions::NPOTTextures |
335 QOpenGLFunctions::NPOTTextureRepeat;
336 }
337
338 const std::pair<int, int> version = format.version();
339 if (version < std::pair(3, 0)
340 || (version == std::pair(3, 0) && format.testOption(QSurfaceFormat::DeprecatedFunctions))
341 || (version == std::pair(3, 1) && extensions.match("GL_ARB_compatibility"))
342 || (version >= std::pair(3, 2) && format.profile() == QSurfaceFormat::CompatibilityProfile)) {
343 features |= QOpenGLFunctions::FixedFunctionPipeline;
344 }
345 return features;
346 }
347}
348
350{
351 int extensions = 0;
352 QOpenGLExtensionMatcher extensionMatcher;
353 QOpenGLContext *ctx = QOpenGLContext::currentContext();
354 QSurfaceFormat format = ctx->format();
355
356 if (extensionMatcher.match("GL_EXT_bgra"))
357 extensions |= QOpenGLExtensions::BGRATextureFormat;
358 if (extensionMatcher.match("GL_ARB_texture_rectangle"))
359 extensions |= QOpenGLExtensions::TextureRectangle;
360 if (extensionMatcher.match("GL_ARB_texture_compression"))
361 extensions |= QOpenGLExtensions::TextureCompression;
362 if (extensionMatcher.match("GL_EXT_texture_compression_s3tc"))
363 extensions |= QOpenGLExtensions::DDSTextureCompression;
364 if (extensionMatcher.match("GL_OES_compressed_ETC1_RGB8_texture"))
365 extensions |= QOpenGLExtensions::ETC1TextureCompression;
366 if (extensionMatcher.match("GL_IMG_texture_compression_pvrtc"))
367 extensions |= QOpenGLExtensions::PVRTCTextureCompression;
368 if (extensionMatcher.match("GL_KHR_texture_compression_astc_ldr"))
369 extensions |= QOpenGLExtensions::ASTCTextureCompression;
370 if (extensionMatcher.match("GL_ARB_texture_mirrored_repeat"))
371 extensions |= QOpenGLExtensions::MirroredRepeat;
372 if (extensionMatcher.match("GL_EXT_stencil_two_side"))
373 extensions |= QOpenGLExtensions::StencilTwoSide;
374 if (extensionMatcher.match("GL_EXT_stencil_wrap"))
375 extensions |= QOpenGLExtensions::StencilWrap;
376 if (extensionMatcher.match("GL_NV_float_buffer"))
377 extensions |= QOpenGLExtensions::NVFloatBuffer;
378 if (extensionMatcher.match("GL_ARB_pixel_buffer_object"))
379 extensions |= QOpenGLExtensions::PixelBufferObject;
380 if (extensionMatcher.match("GL_ARB_texture_swizzle") || extensionMatcher.match("GL_EXT_texture_swizzle"))
381 extensions |= QOpenGLExtensions::TextureSwizzle;
382 if (extensionMatcher.match("GL_OES_standard_derivatives"))
383 extensions |= QOpenGLExtensions::StandardDerivatives;
384 if (extensionMatcher.match("GL_ARB_half_float_vertex"))
385 extensions |= QOpenGLExtensions::HalfFloatVertex;
386 if (extensionMatcher.match("GL_OVR_multiview"))
387 extensions |= QOpenGLExtensions::MultiView;
388 if (extensionMatcher.match("GL_OVR_multiview2"))
389 extensions |= QOpenGLExtensions::MultiViewExtended;
390
391 if (ctx->isOpenGLES()) {
392 if (format.majorVersion() >= 2)
393 extensions |= QOpenGLExtensions::GenerateMipmap;
394
395 if (format.majorVersion() >= 3) {
396 extensions |= QOpenGLExtensions::PackedDepthStencil
397 | QOpenGLExtensions::Depth24
398 | QOpenGLExtensions::ElementIndexUint
399 | QOpenGLExtensions::MapBufferRange
400 | QOpenGLExtensions::FramebufferBlit
401 | QOpenGLExtensions::FramebufferMultisample
402 | QOpenGLExtensions::Sized8Formats
403 | QOpenGLExtensions::DiscardFramebuffer
404 | QOpenGLExtensions::StandardDerivatives
405 | QOpenGLExtensions::ETC2TextureCompression
406 | QOpenGLExtensions::HalfFloatVertex;
407#ifndef Q_OS_WASM
408 // WebGL 2.0 specification explicitly does not support texture swizzles
409 // https://registry.khronos.org/webgl/specs/latest/2.0/#5.19
410 extensions |= QOpenGLExtensions::TextureSwizzle;
411#endif
412 } else {
413 // Recognize features by extension name.
414 if (extensionMatcher.match("GL_OES_packed_depth_stencil"))
415 extensions |= QOpenGLExtensions::PackedDepthStencil;
416 if (extensionMatcher.match("GL_OES_depth24"))
417 extensions |= QOpenGLExtensions::Depth24;
418 if (extensionMatcher.match("GL_ANGLE_framebuffer_blit"))
419 extensions |= QOpenGLExtensions::FramebufferBlit;
420 if (extensionMatcher.match("GL_ANGLE_framebuffer_multisample"))
421 extensions |= QOpenGLExtensions::FramebufferMultisample;
422 if (extensionMatcher.match("GL_NV_framebuffer_blit"))
423 extensions |= QOpenGLExtensions::FramebufferBlit;
424 if (extensionMatcher.match("GL_NV_framebuffer_multisample"))
425 extensions |= QOpenGLExtensions::FramebufferMultisample;
426 if (extensionMatcher.match("GL_OES_rgb8_rgba8"))
427 extensions |= QOpenGLExtensions::Sized8Formats;
428 if (extensionMatcher.match("GL_OES_compressed_ETC2_RGB8_texture"))
429 extensions |= QOpenGLExtensions::ETC2TextureCompression;
430 }
431
432 if (extensionMatcher.match("GL_OES_mapbuffer"))
433 extensions |= QOpenGLExtensions::MapBuffer;
434 if (extensionMatcher.match("GL_OES_element_index_uint"))
435 extensions |= QOpenGLExtensions::ElementIndexUint;
436 // We don't match GL_APPLE_texture_format_BGRA8888 here because it has different semantics.
437 if (extensionMatcher.match("GL_IMG_texture_format_BGRA8888") || extensionMatcher.match("GL_EXT_texture_format_BGRA8888"))
438 extensions |= QOpenGLExtensions::BGRATextureFormat;
439#ifdef Q_OS_ANDROID
440 QString *deviceName =
441 static_cast<QString *>(QGuiApplication::platformNativeInterface()->nativeResourceForIntegration("AndroidDeviceName"));
442 static bool wrongfullyReportsBgra8888Support = deviceName != 0
443 && (deviceName->compare("samsung SM-T211"_L1, Qt::CaseInsensitive) == 0
444 || deviceName->compare("samsung SM-T210"_L1, Qt::CaseInsensitive) == 0
445 || deviceName->compare("samsung SM-T215"_L1, Qt::CaseInsensitive) == 0);
446 // The emulator translator on a macOS host returns transparent black for
447 // unsized BGRA textures without reporting a GL error.
448 const auto *vendor = reinterpret_cast<const char *>(
449 ctx->functions()->glGetString(GL_VENDOR));
450 const auto *renderer = reinterpret_cast<const char *>(
451 ctx->functions()->glGetString(GL_RENDERER));
452 const bool brokenEmulatorBgra = QByteArrayView(vendor) == "Google (Apple)"
453 && QByteArrayView(renderer).startsWith("Android Emulator OpenGL ES Translator");
454 if (wrongfullyReportsBgra8888Support || brokenEmulatorBgra)
455 extensions &= ~QOpenGLExtensions::BGRATextureFormat;
456#endif
457
458 if (extensionMatcher.match("GL_EXT_discard_framebuffer"))
459 extensions |= QOpenGLExtensions::DiscardFramebuffer;
460 if (extensionMatcher.match("GL_EXT_texture_norm16"))
461 extensions |= QOpenGLExtensions::Sized16Formats;
462 } else {
463 extensions |= QOpenGLExtensions::ElementIndexUint
464 | QOpenGLExtensions::MapBuffer
465 | QOpenGLExtensions::Sized16Formats;
466
467 if (format.version() >= std::pair(1, 2))
468 extensions |= QOpenGLExtensions::BGRATextureFormat;
469
470 if (format.version() >= std::pair(1, 4) || extensionMatcher.match("GL_SGIS_generate_mipmap"))
471 extensions |= QOpenGLExtensions::GenerateMipmap;
472
473 if (format.majorVersion() >= 2)
474 extensions |= QOpenGLExtensions::StandardDerivatives;
475
476 if (format.majorVersion() >= 3 || extensionMatcher.match("GL_ARB_framebuffer_object")) {
477 extensions |= QOpenGLExtensions::FramebufferMultisample
478 | QOpenGLExtensions::FramebufferBlit
479 | QOpenGLExtensions::PackedDepthStencil
480 | QOpenGLExtensions::Sized8Formats;
481 } else {
482 // Recognize features by extension name.
483 if (extensionMatcher.match("GL_EXT_framebuffer_multisample"))
484 extensions |= QOpenGLExtensions::FramebufferMultisample;
485 if (extensionMatcher.match("GL_EXT_framebuffer_blit"))
486 extensions |= QOpenGLExtensions::FramebufferBlit;
487 if (extensionMatcher.match("GL_EXT_packed_depth_stencil"))
488 extensions |= QOpenGLExtensions::PackedDepthStencil;
489 }
490
491 if (format.version() >= std::pair(3, 2) || extensionMatcher.match("GL_ARB_geometry_shader4"))
492 extensions |= QOpenGLExtensions::GeometryShaders;
493
494 if (format.version() >= std::pair(3, 3))
495 extensions |= QOpenGLExtensions::TextureSwizzle;
496
497 if (format.version() >= std::pair(4, 3) || extensionMatcher.match("GL_ARB_invalidate_subdata"))
498 extensions |= QOpenGLExtensions::DiscardFramebuffer;
499
500 if (extensionMatcher.match("GL_ARB_map_buffer_range"))
501 extensions |= QOpenGLExtensions::MapBufferRange;
502
503 if (extensionMatcher.match("GL_EXT_framebuffer_sRGB")) {
504 GLboolean srgbCapableFramebuffers = false;
505 ctx->functions()->glGetBooleanv(GL_FRAMEBUFFER_SRGB_CAPABLE_EXT, &srgbCapableFramebuffers);
506 if (srgbCapableFramebuffers)
507 extensions |= QOpenGLExtensions::SRGBFrameBuffer;
508 }
509
510 if (extensionMatcher.match("GL_ARB_ES3_compatibility"))
511 extensions |= QOpenGLExtensions::ETC2TextureCompression;
512 }
513
514 return extensions;
515}
516
517/*!
518 Returns the set of features that are present on this system's
519 OpenGL implementation.
520
521 It is assumed that the QOpenGLContext associated with this function
522 resolver is current.
523
524 \sa hasOpenGLFeature()
525*/
526QOpenGLFunctions::OpenGLFeatures QOpenGLFunctions::openGLFeatures() const
527{
528 QOpenGLFunctionsPrivateEx *d = static_cast<QOpenGLFunctionsPrivateEx *>(d_ptr);
529 if (!d)
530 return { };
531 if (d->m_features == -1)
532 d->m_features = qt_gl_resolve_features();
533 return QOpenGLFunctions::OpenGLFeatures(d->m_features);
534}
535
536/*!
537 Returns \c true if \a feature is present on this system's OpenGL
538 implementation; false otherwise.
539
540 It is assumed that the QOpenGLContext associated with this function
541 resolver is current.
542
543 \sa openGLFeatures()
544*/
545bool QOpenGLFunctions::hasOpenGLFeature(QOpenGLFunctions::OpenGLFeature feature) const
546{
547 QOpenGLFunctionsPrivateEx *d = static_cast<QOpenGLFunctionsPrivateEx *>(d_ptr);
548 if (!d)
549 return false;
550 if (d->m_features == -1)
551 d->m_features = qt_gl_resolve_features();
552 return (d->m_features & int(feature)) != 0;
553}
554
555/*!
556 Returns the set of extensions that are present on this system's
557 OpenGL implementation.
558
559 It is assumed that the QOpenGLContext associated with this extension
560 resolver is current.
561
562 \sa hasOpenGLExtensions()
563*/
564QOpenGLExtensions::OpenGLExtensions QOpenGLExtensions::openGLExtensions()
565{
566 QOpenGLFunctionsPrivateEx *d = static_cast<QOpenGLFunctionsPrivateEx *>(d_ptr);
567 if (!d)
568 return { };
569 if (d->m_extensions == -1)
570 d->m_extensions = qt_gl_resolve_extensions();
571 return QOpenGLExtensions::OpenGLExtensions(d->m_extensions);
572}
573
574/*!
575 Returns \c true if \a extension is present on this system's OpenGL
576 implementation; false otherwise.
577
578 It is assumed that the QOpenGLContext associated with this extension
579 resolver is current.
580
581 \sa openGLFeatures()
582*/
583bool QOpenGLExtensions::hasOpenGLExtension(QOpenGLExtensions::OpenGLExtension extension) const
584{
585 QOpenGLFunctionsPrivateEx *d = static_cast<QOpenGLFunctionsPrivateEx *>(d_ptr);
586 if (!d)
587 return false;
588 if (d->m_extensions == -1)
589 d->m_extensions = qt_gl_resolve_extensions();
590 return (d->m_extensions & int(extension)) != 0;
591}
592
593/*!
594 Initializes OpenGL function resolution for the current context.
595
596 After calling this function, the QOpenGLFunctions object can only be
597 used with the current context and other contexts that share with it.
598 Call initializeOpenGLFunctions() again to change the object's context
599 association.
600*/
601void QOpenGLFunctions::initializeOpenGLFunctions()
602{
603 d_ptr = qt_gl_functions();
604}
605
606/*!
607 \fn void QOpenGLFunctions::glBindTexture(GLenum target, GLuint texture)
608
609 Convenience function that calls glBindTexture(\a target, \a texture).
610
611 For more information, see the OpenGL ES 3.X documentation for
612 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBindTexture.xhtml}{glBindTexture()}.
613
614 \since 5.3
615*/
616
617/*!
618 \fn void QOpenGLFunctions::glBlendFunc(GLenum sfactor, GLenum dfactor)
619
620 Convenience function that calls glBlendFunc(\a sfactor, \a dfactor).
621
622 For more information, see the OpenGL ES 3.X documentation for
623 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBlendFunc.xhtml}{glBlendFunc()}.
624
625 \since 5.3
626*/
627
628/*!
629 \fn void QOpenGLFunctions::glClear(GLbitfield mask)
630
631 Convenience function that calls glClear(\a mask).
632
633 For more information, see the OpenGL ES 3.X documentation for
634 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glClear.xhtml}{glClear()}.
635
636 \since 5.3
637*/
638
639/*!
640 \fn void QOpenGLFunctions::glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
641
642 Convenience function that calls glClearColor(\a red, \a green, \a blue, \a alpha).
643
644 For more information, see the OpenGL ES 3.X documentation for
645 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glClearColor.xhtml}{glClearColor()}.
646
647 \since 5.3
648*/
649
650/*!
651 \fn void QOpenGLFunctions::glClearStencil(GLint s)
652
653 Convenience function that calls glClearStencil(\a s).
654
655 For more information, see the OpenGL ES 3.X documentation for
656 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glClearStencil.xhtml}{glClearStencil()}.
657
658 \since 5.3
659*/
660
661/*!
662 \fn void QOpenGLFunctions::glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
663
664 Convenience function that calls glColorMask(\a red, \a green, \a blue, \a alpha).
665
666 For more information, see the OpenGL ES 3.X documentation for
667 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glColorMask.xhtml}{glColorMask()}.
668
669 \since 5.3
670*/
671
672/*!
673 \fn void QOpenGLFunctions::glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
674
675 Convenience function that calls glCopyTexImage2D(\a target, \a level, \a internalformat, \a x, \a y, \a width, \a height, \a border).
676
677 For more information, see the OpenGL ES 3.X documentation for
678 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glCopyTexImage2D.xhtml}{glCopyTexImage2D()}.
679
680 \since 5.3
681*/
682
683/*!
684 \fn void QOpenGLFunctions::glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
685
686 Convenience function that calls glCopyTexSubImage2D(\a target, \a level, \a xoffset, \a yoffset, \a x, \a y, \a width, \a height).
687
688 For more information, see the OpenGL ES 3.X documentation for
689 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glCopyTexSubImage2D.xhtml}{glCopyTexSubImage2D()}.
690
691 \since 5.3
692*/
693
694/*!
695 \fn void QOpenGLFunctions::glCullFace(GLenum mode)
696
697 Convenience function that calls glCullFace(\a mode).
698
699 For more information, see the OpenGL ES 3.X documentation for
700 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glCullFace.xhtml}{glCullFace()}.
701
702 \since 5.3
703*/
704
705/*!
706 \fn void QOpenGLFunctions::glDeleteTextures(GLsizei n, const GLuint* textures)
707
708 Convenience function that calls glDeleteTextures(\a n, \a textures).
709
710 For more information, see the OpenGL ES 3.X documentation for
711 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDeleteTextures.xhtml}{glDeleteTextures()}.
712
713 \since 5.3
714*/
715
716/*!
717 \fn void QOpenGLFunctions::glDepthFunc(GLenum func)
718
719 Convenience function that calls glDepthFunc(\a func).
720
721 For more information, see the OpenGL ES 3.X documentation for
722 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDepthFunc.xhtml}{glDepthFunc()}.
723
724 \since 5.3
725*/
726
727/*!
728 \fn void QOpenGLFunctions::glDepthMask(GLboolean flag)
729
730 Convenience function that calls glDepthMask(\a flag).
731
732 For more information, see the OpenGL ES 3.X documentation for
733 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDepthMask.xhtml}{glDepthMask()}.
734
735 \since 5.3
736*/
737
738/*!
739 \fn void QOpenGLFunctions::glDisable(GLenum cap)
740
741 Convenience function that calls glDisable(\a cap).
742
743 For more information, see the OpenGL ES 3.X documentation for
744 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glEnable.xhtml}{glDisable()}.
745
746 \since 5.3
747*/
748
749/*!
750 \fn void QOpenGLFunctions::glDrawArrays(GLenum mode, GLint first, GLsizei count)
751
752 Convenience function that calls glDrawArrays(\a mode, \a first, \a count).
753
754 For more information, see the OpenGL ES 3.X documentation for
755 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDrawArrays.xhtml}{glDrawArrays()}.
756
757 \since 5.3
758*/
759
760/*!
761 \fn void QOpenGLFunctions::glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices)
762
763 Convenience function that calls glDrawElements(\a mode, \a count, \a type, \a indices).
764
765 For more information, see the OpenGL ES 3.X documentation for
766 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDrawElements.xhtml}{glDrawElements()}.
767
768 \since 5.3
769*/
770
771/*!
772 \fn void QOpenGLFunctions::glEnable(GLenum cap)
773
774 Convenience function that calls glEnable(\a cap).
775
776 For more information, see the OpenGL ES 3.X documentation for
777 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glEnable.xhtml}{glEnable()}.
778
779 \since 5.3
780*/
781
782/*!
783 \fn void QOpenGLFunctions::glFinish()
784
785 Convenience function that calls glFinish().
786
787 For more information, see the OpenGL ES 3.X documentation for
788 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glFinish.xhtml}{glFinish()}.
789
790 \since 5.3
791*/
792
793/*!
794 \fn void QOpenGLFunctions::glFlush()
795
796 Convenience function that calls glFlush().
797
798 For more information, see the OpenGL ES 3.X documentation for
799 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glFlush.xhtml}{glFlush()}.
800
801 \since 5.3
802*/
803
804/*!
805 \fn void QOpenGLFunctions::glFrontFace(GLenum mode)
806
807 Convenience function that calls glFrontFace(\a mode).
808
809 For more information, see the OpenGL ES 3.X documentation for
810 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glFrontFace.xhtml}{glFrontFace()}.
811
812 \since 5.3
813*/
814
815/*!
816 \fn void QOpenGLFunctions::glGenTextures(GLsizei n, GLuint* textures)
817
818 Convenience function that calls glGenTextures(\a n, \a textures).
819
820 For more information, see the OpenGL ES 3.X documentation for
821 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGenTextures.xhtml}{glGenTextures()}.
822
823 \since 5.3
824*/
825
826/*!
827 \fn void QOpenGLFunctions::glGetBooleanv(GLenum pname, GLboolean* params)
828
829 Convenience function that calls glGetBooleanv(\a pname, \a params).
830
831 For more information, see the OpenGL ES 3.X documentation for
832 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGet.xhtml}{glGetBooleanv()}.
833
834 \since 5.3
835*/
836
837/*!
838 \fn GLenum QOpenGLFunctions::glGetError()
839
840 Convenience function that calls glGetError().
841
842 For more information, see the OpenGL ES 3.X documentation for
843 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetError.xhtml}{glGetError()}.
844
845 \since 5.3
846*/
847
848/*!
849 \fn void QOpenGLFunctions::glGetFloatv(GLenum pname, GLfloat* params)
850
851 Convenience function that calls glGetFloatv(\a pname, \a params).
852
853 For more information, see the OpenGL ES 3.X documentation for
854 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGet.xhtml}{glGetFloatv()}.
855
856 \since 5.3
857*/
858
859/*!
860 \fn void QOpenGLFunctions::glGetIntegerv(GLenum pname, GLint* params)
861
862 Convenience function that calls glGetIntegerv(\a pname, \a params).
863
864 For more information, see the OpenGL ES 3.X documentation for
865 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGet.xhtml}{glGetIntegerv()}.
866
867 \since 5.3
868*/
869
870/*!
871 \fn const GLubyte *QOpenGLFunctions::glGetString(GLenum name)
872
873 Convenience function that calls glGetString(\a name).
874
875 For more information, see the OpenGL ES 3.X documentation for
876 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetString.xhtml}{glGetString()}.
877
878 \since 5.3
879*/
880
881/*!
882 \fn void QOpenGLFunctions::glGetTexParameterfv(GLenum target, GLenum pname, GLfloat* params)
883
884 Convenience function that calls glGetTexParameterfv(\a target, \a pname, \a params).
885
886 For more information, see the OpenGL ES 3.X documentation for
887 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetTexParameter.xhtml}{glGetTexParameterfv()}.
888
889 \since 5.3
890*/
891
892/*!
893 \fn void QOpenGLFunctions::glGetTexParameteriv(GLenum target, GLenum pname, GLint* params)
894
895 Convenience function that calls glGetTexParameteriv(\a target, \a pname, \a params).
896
897 For more information, see the OpenGL ES 3.X documentation for
898 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetTexParameter.xhtml}{glGetTexParameteriv()}.
899
900 \since 5.3
901*/
902
903/*!
904 \fn void QOpenGLFunctions::glHint(GLenum target, GLenum mode)
905
906 Convenience function that calls glHint(\a target, \a mode).
907
908 For more information, see the OpenGL ES 3.X documentation for
909 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glHint.xhtml}{glHint()}.
910
911 \since 5.3
912*/
913
914/*!
915 \fn GLboolean QOpenGLFunctions::glIsEnabled(GLenum cap)
916
917 Convenience function that calls glIsEnabled(\a cap).
918
919 For more information, see the OpenGL ES 3.X documentation for
920 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glIsEnabled.xhtml}{glIsEnabled()}.
921
922 \since 5.3
923*/
924
925/*!
926 \fn GLboolean QOpenGLFunctions::glIsTexture(GLuint texture)
927
928 Convenience function that calls glIsTexture(\a texture).
929
930 For more information, see the OpenGL ES 3.X documentation for
931 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glIsTexture.xhtml}{glIsTexture()}.
932
933 \since 5.3
934*/
935
936/*!
937 \fn void QOpenGLFunctions::glLineWidth(GLfloat width)
938
939 Convenience function that calls glLineWidth(\a width).
940
941 For more information, see the OpenGL ES 3.X documentation for
942 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glLineWidth.xhtml}{glLineWidth()}.
943
944 \since 5.3
945*/
946
947/*!
948 \fn void QOpenGLFunctions::glPixelStorei(GLenum pname, GLint param)
949
950 Convenience function that calls glPixelStorei(\a pname, \a param).
951
952 For more information, see the OpenGL ES 3.X documentation for
953 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glPixelStorei.xhtml}{glPixelStorei()}.
954
955 \since 5.3
956*/
957
958/*!
959 \fn void QOpenGLFunctions::glPolygonOffset(GLfloat factor, GLfloat units)
960
961 Convenience function that calls glPolygonOffset(\a factor, \a units).
962
963 For more information, see the OpenGL ES 3.X documentation for
964 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glPolygonOffset.xhtml}{glPolygonOffset()}.
965
966 \since 5.3
967*/
968
969/*!
970 \fn void QOpenGLFunctions::glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels)
971
972 Convenience function that calls glReadPixels(\a x, \a y, \a width, \a height, \a format, \a type, \a pixels).
973
974 For more information, see the OpenGL ES 3.X documentation for
975 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glReadPixels.xhtml}{glReadPixels()}.
976
977 \since 5.3
978*/
979
980/*!
981 \fn void QOpenGLFunctions::glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
982
983 Convenience function that calls glScissor(\a x, \a y, \a width, \a height).
984
985 For more information, see the OpenGL ES 3.X documentation for
986 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glScissor.xhtml}{glScissor()}.
987
988 \since 5.3
989*/
990
991/*!
992 \fn void QOpenGLFunctions::glStencilFunc(GLenum func, GLint ref, GLuint mask)
993
994 Convenience function that calls glStencilFunc(\a func, \a ref, \a mask).
995
996 For more information, see the OpenGL ES 3.X documentation for
997 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glStencilFunc.xhtml}{glStencilFunc()}.
998
999 \since 5.3
1000*/
1001
1002/*!
1003 \fn void QOpenGLFunctions::glStencilMask(GLuint mask)
1004
1005 Convenience function that calls glStencilMask(\a mask).
1006
1007 For more information, see the OpenGL ES 3.X documentation for
1008 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glStencilMask.xhtml}{glStencilMask()}.
1009
1010 \since 5.3
1011*/
1012
1013/*!
1014 \fn void QOpenGLFunctions::glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
1015
1016 Convenience function that calls glStencilOp(\a fail, \a zfail, \a zpass).
1017
1018 For more information, see the OpenGL ES 3.X documentation for
1019 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glStencilOp.xhtml}{glStencilOp()}.
1020
1021 \since 5.3
1022*/
1023
1024/*!
1025 \fn void QOpenGLFunctions::glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels)
1026
1027 Convenience function that calls glTexImage2D(\a target, \a level, \a internalformat, \a width, \a height, \a border, \a format, \a type, \a pixels).
1028
1029 For more information, see the OpenGL ES 3.X documentation for
1030 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glTexImage2D.xhtml}{glTexImage2D()}.
1031
1032 \since 5.3
1033*/
1034
1035/*!
1036 \fn void QOpenGLFunctions::glTexParameterf(GLenum target, GLenum pname, GLfloat param)
1037
1038 Convenience function that calls glTexParameterf(\a target, \a pname, \a param).
1039
1040 For more information, see the OpenGL ES 3.X documentation for
1041 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glTexParameter.xhtml}{glTexParameterf()}.
1042
1043 \since 5.3
1044*/
1045
1046/*!
1047 \fn void QOpenGLFunctions::glTexParameterfv(GLenum target, GLenum pname, const GLfloat* params)
1048
1049 Convenience function that calls glTexParameterfv(\a target, \a pname, \a params).
1050
1051 For more information, see the OpenGL ES 3.X documentation for
1052 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glTexParameter.xhtml}{glTexParameterfv()}.
1053
1054 \since 5.3
1055*/
1056
1057/*!
1058 \fn void QOpenGLFunctions::glTexParameteri(GLenum target, GLenum pname, GLint param)
1059
1060 Convenience function that calls glTexParameteri(\a target, \a pname, \a param).
1061
1062 For more information, see the OpenGL ES 3.X documentation for
1063 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glTexParameter.xhtml}{glTexParameteri()}.
1064
1065 \since 5.3
1066*/
1067
1068/*!
1069 \fn void QOpenGLFunctions::glTexParameteriv(GLenum target, GLenum pname, const GLint* params)
1070
1071 Convenience function that calls glTexParameteriv(\a target, \a pname, \a params).
1072
1073 For more information, see the OpenGL ES 3.X documentation for
1074 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glTexParameter.xhtml}{glTexParameteriv()}.
1075
1076 \since 5.3
1077*/
1078
1079/*!
1080 \fn void QOpenGLFunctions::glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels)
1081
1082 Convenience function that calls glTexSubImage2D(\a target, \a level, \a xoffset, \a yoffset, \a width, \a height, \a format, \a type, \a pixels).
1083
1084 For more information, see the OpenGL ES 3.X documentation for
1085 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glTexSubImage2D.xhtml}{glTexSubImage2D()}.
1086
1087 \since 5.3
1088*/
1089
1090/*!
1091 \fn void QOpenGLFunctions::glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
1092
1093 Convenience function that calls glViewport(\a x, \a y, \a width, \a height).
1094
1095 For more information, see the OpenGL ES 3.X documentation for
1096 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glViewport.xhtml}{glViewport()}.
1097
1098 \since 5.3
1099*/
1100
1101/*!
1102 \fn void QOpenGLFunctions::glActiveTexture(GLenum texture)
1103
1104 Convenience function that calls glActiveTexture(\a texture).
1105
1106 For more information, see the OpenGL ES 3.X documentation for
1107 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glActiveTexture.xhtml}{glActiveTexture()}.
1108*/
1109
1110/*!
1111 \fn void QOpenGLFunctions::glAttachShader(GLuint program, GLuint shader)
1112
1113 Convenience function that calls glAttachShader(\a program, \a shader).
1114
1115 For more information, see the OpenGL ES 3.X documentation for
1116 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glAttachShader.xhtml}{glAttachShader()}.
1117
1118 This convenience function will do nothing on OpenGL ES 1.x systems.
1119*/
1120
1121/*!
1122 \fn void QOpenGLFunctions::glBindAttribLocation(GLuint program, GLuint index, const char* name)
1123
1124 Convenience function that calls glBindAttribLocation(\a program, \a index, \a name).
1125
1126 For more information, see the OpenGL ES 3.X documentation for
1127 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBindAttribLocation.xhtml}{glBindAttribLocation()}.
1128
1129 This convenience function will do nothing on OpenGL ES 1.x systems.
1130*/
1131
1132/*!
1133 \fn void QOpenGLFunctions::glBindBuffer(GLenum target, GLuint buffer)
1134
1135 Convenience function that calls glBindBuffer(\a target, \a buffer).
1136
1137 For more information, see the OpenGL ES 3.X documentation for
1138 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBindBuffer.xhtml}{glBindBuffer()}.
1139*/
1140
1141/*!
1142 \fn void QOpenGLFunctions::glBindFramebuffer(GLenum target, GLuint framebuffer)
1143
1144 Convenience function that calls glBindFramebuffer(\a target, \a framebuffer).
1145
1146 Note that Qt will translate a \a framebuffer argument of 0 to the currently
1147 bound QOpenGLContext's defaultFramebufferObject().
1148
1149 For more information, see the OpenGL ES 3.X documentation for
1150 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBindFramebuffer.xhtml}{glBindFramebuffer()}.
1151*/
1152
1153/*!
1154 \fn void QOpenGLFunctions::glBindRenderbuffer(GLenum target, GLuint renderbuffer)
1155
1156 Convenience function that calls glBindRenderbuffer(\a target, \a renderbuffer).
1157
1158 For more information, see the OpenGL ES 3.X documentation for
1159 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBindRenderbuffer.xhtml}{glBindRenderbuffer()}.
1160*/
1161
1162/*!
1163 \fn void QOpenGLFunctions::glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
1164
1165 Convenience function that calls glBlendColor(\a red, \a green, \a blue, \a alpha).
1166
1167 For more information, see the OpenGL ES 3.X documentation for
1168 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBlendColor.xhtml}{glBlendColor()}.
1169*/
1170
1171/*!
1172 \fn void QOpenGLFunctions::glBlendEquation(GLenum mode)
1173
1174 Convenience function that calls glBlendEquation(\a mode).
1175
1176 For more information, see the OpenGL ES 3.X documentation for
1177 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBlendEquation.xhtml}{glBlendEquation()}.
1178*/
1179
1180/*!
1181 \fn void QOpenGLFunctions::glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
1182
1183 Convenience function that calls glBlendEquationSeparate(\a modeRGB, \a modeAlpha).
1184
1185 For more information, see the OpenGL ES 3.X documentation for
1186 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBlendEquationSeparate.xhtml}{glBlendEquationSeparate()}.
1187*/
1188
1189/*!
1190 \fn void QOpenGLFunctions::glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
1191
1192 Convenience function that calls glBlendFuncSeparate(\a srcRGB, \a dstRGB, \a srcAlpha, \a dstAlpha).
1193
1194 For more information, see the OpenGL ES 3.X documentation for
1195 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBlendFuncSeparate.xhtml}{glBlendFuncSeparate()}.
1196*/
1197
1198/*!
1199 \fn void QOpenGLFunctions::glBufferData(GLenum target, qopengl_GLsizeiptr size, const void* data, GLenum usage)
1200
1201 Convenience function that calls glBufferData(\a target, \a size, \a data, \a usage).
1202
1203 For more information, see the OpenGL ES 3.X documentation for
1204 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBufferData.xhtml}{glBufferData()}.
1205*/
1206
1207/*!
1208 \fn void QOpenGLFunctions::glBufferSubData(GLenum target, qopengl_GLintptr offset, qopengl_GLsizeiptr size, const void* data)
1209
1210 Convenience function that calls glBufferSubData(\a target, \a offset, \a size, \a data).
1211
1212 For more information, see the OpenGL ES 3.X documentation for
1213 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBufferSubData.xhtml}{glBufferSubData()}.
1214*/
1215
1216/*!
1217 \fn GLenum QOpenGLFunctions::glCheckFramebufferStatus(GLenum target)
1218
1219 Convenience function that calls glCheckFramebufferStatus(\a target).
1220
1221 For more information, see the OpenGL ES 3.X documentation for
1222 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glCheckFramebufferStatus.xhtml}{glCheckFramebufferStatus()}.
1223*/
1224
1225/*!
1226 \fn void QOpenGLFunctions::glClearDepthf(GLclampf depth)
1227
1228 Convenience function that calls glClearDepth(\a depth) on
1229 desktop OpenGL systems and glClearDepthf(\a depth) on
1230 embedded OpenGL ES systems.
1231
1232 For more information, see the OpenGL ES 3.X documentation for
1233 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glClearDepthf.xhtml}{glClearDepthf()}.
1234*/
1235
1236/*!
1237 \fn void QOpenGLFunctions::glCompileShader(GLuint shader)
1238
1239 Convenience function that calls glCompileShader(\a shader).
1240
1241 For more information, see the OpenGL ES 3.X documentation for
1242 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glCompileShader.xhtml}{glCompileShader()}.
1243
1244 This convenience function will do nothing on OpenGL ES 1.x systems.
1245*/
1246
1247/*!
1248 \fn void QOpenGLFunctions::glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data)
1249
1250 Convenience function that calls glCompressedTexImage2D(\a target, \a level, \a internalformat, \a width, \a height, \a border, \a imageSize, \a data).
1251
1252 For more information, see the OpenGL ES 3.X documentation for
1253 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glCompressedTexImage2D.xhtml}{glCompressedTexImage2D()}.
1254*/
1255
1256/*!
1257 \fn void QOpenGLFunctions::glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data)
1258
1259 Convenience function that calls glCompressedTexSubImage2D(\a target, \a level, \a xoffset, \a yoffset, \a width, \a height, \a format, \a imageSize, \a data).
1260
1261 For more information, see the OpenGL ES 3.X documentation for
1262 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glCompressedTexSubImage2D.xhtml}{glCompressedTexSubImage2D()}.
1263*/
1264
1265/*!
1266 \fn GLuint QOpenGLFunctions::glCreateProgram()
1267
1268 Convenience function that calls glCreateProgram().
1269
1270 For more information, see the OpenGL ES 3.X documentation for
1271 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glCreateProgram.xhtml}{glCreateProgram()}.
1272
1273 This convenience function will do nothing on OpenGL ES 1.x systems.
1274*/
1275
1276/*!
1277 \fn GLuint QOpenGLFunctions::glCreateShader(GLenum type)
1278
1279 Convenience function that calls glCreateShader(\a type).
1280
1281 For more information, see the OpenGL ES 3.X documentation for
1282 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glCreateShader.xhtml}{glCreateShader()}.
1283
1284 This convenience function will do nothing on OpenGL ES 1.x systems.
1285*/
1286
1287/*!
1288 \fn void QOpenGLFunctions::glDeleteBuffers(GLsizei n, const GLuint* buffers)
1289
1290 Convenience function that calls glDeleteBuffers(\a n, \a buffers).
1291
1292 For more information, see the OpenGL ES 3.X documentation for
1293 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDeleteBuffers.xhtml}{glDeleteBuffers()}.
1294*/
1295
1296/*!
1297 \fn void QOpenGLFunctions::glDeleteFramebuffers(GLsizei n, const GLuint* framebuffers)
1298
1299 Convenience function that calls glDeleteFramebuffers(\a n, \a framebuffers).
1300
1301 For more information, see the OpenGL ES 3.X documentation for
1302 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDeleteFramebuffers.xhtml}{glDeleteFramebuffers()}.
1303*/
1304
1305/*!
1306 \fn void QOpenGLFunctions::glDeleteProgram(GLuint program)
1307
1308 Convenience function that calls glDeleteProgram(\a program).
1309
1310 For more information, see the OpenGL ES 3.X documentation for
1311 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDeleteProgram.xhtml}{glDeleteProgram()}.
1312
1313 This convenience function will do nothing on OpenGL ES 1.x systems.
1314*/
1315
1316/*!
1317 \fn void QOpenGLFunctions::glDeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers)
1318
1319 Convenience function that calls glDeleteRenderbuffers(\a n, \a renderbuffers).
1320
1321 For more information, see the OpenGL ES 3.X documentation for
1322 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDeleteRenderbuffers.xhtml}{glDeleteRenderbuffers()}.
1323*/
1324
1325/*!
1326 \fn void QOpenGLFunctions::glDeleteShader(GLuint shader)
1327
1328 Convenience function that calls glDeleteShader(\a shader).
1329
1330 For more information, see the OpenGL ES 3.X documentation for
1331 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDeleteShader.xhtml}{glDeleteShader()}.
1332
1333 This convenience function will do nothing on OpenGL ES 1.x systems.
1334*/
1335
1336/*!
1337 \fn void QOpenGLFunctions::glDepthRangef(GLclampf zNear, GLclampf zFar)
1338
1339 Convenience function that calls glDepthRange(\a zNear, \a zFar) on
1340 desktop OpenGL systems and glDepthRangef(\a zNear, \a zFar) on
1341 embedded OpenGL ES systems.
1342
1343 For more information, see the OpenGL ES 3.X documentation for
1344 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDepthRangef.xhtml}{glDepthRangef()}.
1345*/
1346
1347/*!
1348 \fn void QOpenGLFunctions::glDetachShader(GLuint program, GLuint shader)
1349
1350 Convenience function that calls glDetachShader(\a program, \a shader).
1351
1352 For more information, see the OpenGL ES 3.X documentation for
1353 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDetachShader.xhtml}{glDetachShader()}.
1354
1355 This convenience function will do nothing on OpenGL ES 1.x systems.
1356*/
1357
1358/*!
1359 \fn void QOpenGLFunctions::glDisableVertexAttribArray(GLuint index)
1360
1361 Convenience function that calls glDisableVertexAttribArray(\a index).
1362
1363 For more information, see the OpenGL ES 3.X documentation for
1364 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glEnableVertexAttribArray.xhtml}{glDisableVertexAttribArray()}.
1365
1366 This convenience function will do nothing on OpenGL ES 1.x systems.
1367*/
1368
1369/*!
1370 \fn void QOpenGLFunctions::glEnableVertexAttribArray(GLuint index)
1371
1372 Convenience function that calls glEnableVertexAttribArray(\a index).
1373
1374 For more information, see the OpenGL ES 3.X documentation for
1375 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glEnableVertexAttribArray.xhtml}{glEnableVertexAttribArray()}.
1376
1377 This convenience function will do nothing on OpenGL ES 1.x systems.
1378*/
1379
1380/*!
1381 \fn void QOpenGLFunctions::glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
1382
1383 Convenience function that calls glFramebufferRenderbuffer(\a target, \a attachment, \a renderbuffertarget, \a renderbuffer).
1384
1385 For more information, see the OpenGL ES 3.X documentation for
1386 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glFramebufferRenderbuffer.xhtml}{glFramebufferRenderbuffer()}.
1387*/
1388
1389/*!
1390 \fn void QOpenGLFunctions::glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
1391
1392 Convenience function that calls glFramebufferTexture2D(\a target, \a attachment, \a textarget, \a texture, \a level).
1393
1394 For more information, see the OpenGL ES 3.X documentation for
1395 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glFramebufferTexture2D.xhtml}{glFramebufferTexture2D()}.
1396*/
1397
1398/*!
1399 \fn void QOpenGLFunctions::glGenBuffers(GLsizei n, GLuint* buffers)
1400
1401 Convenience function that calls glGenBuffers(\a n, \a buffers).
1402
1403 For more information, see the OpenGL ES 3.X documentation for
1404 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGenBuffers.xhtml}{glGenBuffers()}.
1405*/
1406
1407/*!
1408 \fn void QOpenGLFunctions::glGenerateMipmap(GLenum target)
1409
1410 Convenience function that calls glGenerateMipmap(\a target).
1411
1412 For more information, see the OpenGL ES 3.X documentation for
1413 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGenerateMipmap.xhtml}{glGenerateMipmap()}.
1414*/
1415
1416/*!
1417 \fn void QOpenGLFunctions::glGenFramebuffers(GLsizei n, GLuint* framebuffers)
1418
1419 Convenience function that calls glGenFramebuffers(\a n, \a framebuffers).
1420
1421 For more information, see the OpenGL ES 3.X documentation for
1422 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGenFramebuffers.xhtml}{glGenFramebuffers()}.
1423*/
1424
1425/*!
1426 \fn void QOpenGLFunctions::glGenRenderbuffers(GLsizei n, GLuint* renderbuffers)
1427
1428 Convenience function that calls glGenRenderbuffers(\a n, \a renderbuffers).
1429
1430 For more information, see the OpenGL ES 3.X documentation for
1431 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGenRenderbuffers.xhtml}{glGenRenderbuffers()}.
1432*/
1433
1434/*!
1435 \fn void QOpenGLFunctions::glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, char* name)
1436
1437 Convenience function that calls glGetActiveAttrib(\a program, \a index, \a bufsize, \a length, \a size, \a type, \a name).
1438
1439 For more information, see the OpenGL ES 3.X documentation for
1440 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetActiveAttrib.xhtml}{glGetActiveAttrib()}.
1441
1442 This convenience function will do nothing on OpenGL ES 1.x systems.
1443*/
1444
1445/*!
1446 \fn void QOpenGLFunctions::glGetActiveUniform(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, char* name)
1447
1448 Convenience function that calls glGetActiveUniform(\a program, \a index, \a bufsize, \a length, \a size, \a type, \a name).
1449
1450 For more information, see the OpenGL ES 3.X documentation for
1451 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetActiveUniform.xhtml}{glGetActiveUniform()}.
1452
1453 This convenience function will do nothing on OpenGL ES 1.x systems.
1454*/
1455
1456/*!
1457 \fn void QOpenGLFunctions::glGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders)
1458
1459 Convenience function that calls glGetAttachedShaders(\a program, \a maxcount, \a count, \a shaders).
1460
1461 For more information, see the OpenGL ES 3.X documentation for
1462 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetAttachedShaders.xhtml}{glGetAttachedShaders()}.
1463
1464 This convenience function will do nothing on OpenGL ES 1.x systems.
1465*/
1466
1467/*!
1468 \fn GLint QOpenGLFunctions::glGetAttribLocation(GLuint program, const char* name)
1469
1470 Convenience function that calls glGetAttribLocation(\a program, \a name).
1471
1472 For more information, see the OpenGL ES 3.X documentation for
1473 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetAttribLocation.xhtml}{glGetAttribLocation()}.
1474
1475 This convenience function will do nothing on OpenGL ES 1.x systems.
1476*/
1477
1478/*!
1479 \fn void QOpenGLFunctions::glGetBufferParameteriv(GLenum target, GLenum pname, GLint* params)
1480
1481 Convenience function that calls glGetBufferParameteriv(\a target, \a pname, \a params).
1482
1483 For more information, see the OpenGL ES 3.X documentation for
1484 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetBufferParameter.xhtml}{glGetBufferParameteriv()}.
1485*/
1486
1487/*!
1488 \fn void QOpenGLFunctions::glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint* params)
1489
1490 Convenience function that calls glGetFramebufferAttachmentParameteriv(\a target, \a attachment, \a pname, \a params).
1491
1492 For more information, see the OpenGL ES 3.X documentation for
1493 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetFramebufferAttachmentParameteriv.xhtml}{glGetFramebufferAttachmentParameteriv()}.
1494*/
1495
1496/*!
1497 \fn void QOpenGLFunctions::glGetProgramiv(GLuint program, GLenum pname, GLint* params)
1498
1499 Convenience function that calls glGetProgramiv(\a program, \a pname, \a params).
1500
1501 For more information, see the OpenGL ES 3.X documentation for
1502 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetProgramiv.xhtml}{glGetProgramiv()}.
1503
1504 This convenience function will do nothing on OpenGL ES 1.x systems.
1505*/
1506
1507/*!
1508 \fn void QOpenGLFunctions::glGetProgramInfoLog(GLuint program, GLsizei bufsize, GLsizei* length, char* infolog)
1509
1510 Convenience function that calls glGetProgramInfoLog(\a program, \a bufsize, \a length, \a infolog).
1511
1512 For more information, see the OpenGL ES 3.X documentation for
1513 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetProgramInfoLog.xhtml}{glGetProgramInfoLog()}.
1514
1515 This convenience function will do nothing on OpenGL ES 1.x systems.
1516*/
1517
1518/*!
1519 \fn void QOpenGLFunctions::glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint* params)
1520
1521 Convenience function that calls glGetRenderbufferParameteriv(\a target, \a pname, \a params).
1522
1523 For more information, see the OpenGL ES 3.X documentation for
1524 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetRenderbufferParameteriv.xhtml}{glGetRenderbufferParameteriv()}.
1525*/
1526
1527/*!
1528 \fn void QOpenGLFunctions::glGetShaderiv(GLuint shader, GLenum pname, GLint* params)
1529
1530 Convenience function that calls glGetShaderiv(\a shader, \a pname, \a params).
1531
1532 For more information, see the OpenGL ES 3.X documentation for
1533 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetShaderiv.xhtml}{glGetShaderiv()}.
1534
1535 This convenience function will do nothing on OpenGL ES 1.x systems.
1536*/
1537
1538/*!
1539 \fn void QOpenGLFunctions::glGetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog)
1540
1541 Convenience function that calls glGetShaderInfoLog(\a shader, \a bufsize, \a length, \a infolog).
1542
1543 For more information, see the OpenGL ES 3.X documentation for
1544 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetShaderInfoLog.xhtml}{glGetShaderInfoLog()}.
1545
1546 This convenience function will do nothing on OpenGL ES 1.x systems.
1547*/
1548
1549/*!
1550 \fn void QOpenGLFunctions::glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision)
1551
1552 Convenience function that calls glGetShaderPrecisionFormat(\a shadertype, \a precisiontype, \a range, \a precision).
1553
1554 For more information, see the OpenGL ES 3.X documentation for
1555 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetShaderPrecisionFormat.xhtml}{glGetShaderPrecisionFormat()}.
1556
1557 This convenience function will do nothing on OpenGL ES 1.x systems.
1558*/
1559
1560/*!
1561 \fn void QOpenGLFunctions::glGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei* length, char* source)
1562
1563 Convenience function that calls glGetShaderSource(\a shader, \a bufsize, \a length, \a source).
1564
1565 For more information, see the OpenGL ES 3.X documentation for
1566 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetShaderSource.xhtml}{glGetShaderSource()}.
1567
1568 This convenience function will do nothing on OpenGL ES 1.x systems.
1569*/
1570
1571/*!
1572 \fn void QOpenGLFunctions::glGetUniformfv(GLuint program, GLint location, GLfloat* params)
1573
1574 Convenience function that calls glGetUniformfv(\a program, \a location, \a params).
1575
1576 For more information, see the OpenGL ES 3.X documentation for
1577 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetUniform.xhtml}{glGetUniformfv()}.
1578
1579 This convenience function will do nothing on OpenGL ES 1.x systems.
1580*/
1581
1582/*!
1583 \fn void QOpenGLFunctions::glGetUniformiv(GLuint program, GLint location, GLint* params)
1584
1585 Convenience function that calls glGetUniformiv(\a program, \a location, \a params).
1586
1587 For more information, see the OpenGL ES 3.X documentation for
1588 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetUniform.xhtml}{glGetUniformiv()}.
1589
1590 This convenience function will do nothing on OpenGL ES 1.x systems.
1591*/
1592
1593/*!
1594 \fn GLint QOpenGLFunctions::glGetUniformLocation(GLuint program, const char* name)
1595
1596 Convenience function that calls glGetUniformLocation(\a program, \a name).
1597
1598 For more information, see the OpenGL ES 3.X documentation for
1599 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetUniformLocation.xhtml}{glGetUniformLocation()}.
1600
1601 This convenience function will do nothing on OpenGL ES 1.x systems.
1602*/
1603
1604/*!
1605 \fn void QOpenGLFunctions::glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params)
1606
1607 Convenience function that calls glGetVertexAttribfv(\a index, \a pname, \a params).
1608
1609 For more information, see the OpenGL ES 3.X documentation for
1610 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetVertexAttrib.xhtml}{glGetVertexAttribfv()}.
1611
1612 This convenience function will do nothing on OpenGL ES 1.x systems.
1613*/
1614
1615/*!
1616 \fn void QOpenGLFunctions::glGetVertexAttribiv(GLuint index, GLenum pname, GLint* params)
1617
1618 Convenience function that calls glGetVertexAttribiv(\a index, \a pname, \a params).
1619
1620 For more information, see the OpenGL ES 3.X documentation for
1621 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetVertexAttrib.xhtml}{glGetVertexAttribiv()}.
1622
1623 This convenience function will do nothing on OpenGL ES 1.x systems.
1624*/
1625
1626/*!
1627 \fn void QOpenGLFunctions::glGetVertexAttribPointerv(GLuint index, GLenum pname, void** pointer)
1628
1629 Convenience function that calls glGetVertexAttribPointerv(\a index, \a pname, \a pointer).
1630
1631 For more information, see the OpenGL ES 3.X documentation for
1632 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetVertexAttribPointerv.xhtml}{glGetVertexAttribPointerv()}.
1633
1634 This convenience function will do nothing on OpenGL ES 1.x systems.
1635*/
1636
1637/*!
1638 \fn GLboolean QOpenGLFunctions::glIsBuffer(GLuint buffer)
1639
1640 Convenience function that calls glIsBuffer(\a buffer).
1641
1642 For more information, see the OpenGL ES 3.X documentation for
1643 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glIsBuffer.xhtml}{glIsBuffer()}.
1644*/
1645
1646/*!
1647 \fn GLboolean QOpenGLFunctions::glIsFramebuffer(GLuint framebuffer)
1648
1649 Convenience function that calls glIsFramebuffer(\a framebuffer).
1650
1651 For more information, see the OpenGL ES 3.X documentation for
1652 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glIsFramebuffer.xhtml}{glIsFramebuffer()}.
1653*/
1654
1655/*!
1656 \fn GLboolean QOpenGLFunctions::glIsProgram(GLuint program)
1657
1658 Convenience function that calls glIsProgram(\a program).
1659
1660 For more information, see the OpenGL ES 3.X documentation for
1661 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glIsProgram.xhtml}{glIsProgram()}.
1662
1663 This convenience function will do nothing on OpenGL ES 1.x systems.
1664*/
1665
1666/*!
1667 \fn GLboolean QOpenGLFunctions::glIsRenderbuffer(GLuint renderbuffer)
1668
1669 Convenience function that calls glIsRenderbuffer(\a renderbuffer).
1670
1671 For more information, see the OpenGL ES 3.X documentation for
1672 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glIsRenderbuffer.xhtml}{glIsRenderbuffer()}.
1673*/
1674
1675/*!
1676 \fn GLboolean QOpenGLFunctions::glIsShader(GLuint shader)
1677
1678 Convenience function that calls glIsShader(\a shader).
1679
1680 For more information, see the OpenGL ES 3.X documentation for
1681 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glIsShader.xhtml}{glIsShader()}.
1682
1683 This convenience function will do nothing on OpenGL ES 1.x systems.
1684*/
1685
1686/*!
1687 \fn void QOpenGLFunctions::glLinkProgram(GLuint program)
1688
1689 Convenience function that calls glLinkProgram(\a program).
1690
1691 For more information, see the OpenGL ES 3.X documentation for
1692 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glLinkProgram.xhtml}{glLinkProgram()}.
1693
1694 This convenience function will do nothing on OpenGL ES 1.x systems.
1695*/
1696
1697/*!
1698 \fn void QOpenGLFunctions::glReleaseShaderCompiler()
1699
1700 Convenience function that calls glReleaseShaderCompiler().
1701
1702 For more information, see the OpenGL ES 3.X documentation for
1703 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glReleaseShaderCompiler.xhtml}{glReleaseShaderCompiler()}.
1704
1705 This convenience function will do nothing on OpenGL ES 1.x systems.
1706*/
1707
1708/*!
1709 \fn void QOpenGLFunctions::glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
1710
1711 Convenience function that calls glRenderbufferStorage(\a target, \a internalformat, \a width, \a height).
1712
1713 For more information, see the OpenGL ES 3.X documentation for
1714 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glRenderbufferStorage.xhtml}{glRenderbufferStorage()}.
1715*/
1716
1717/*!
1718 \fn void QOpenGLFunctions::glSampleCoverage(GLclampf value, GLboolean invert)
1719
1720 Convenience function that calls glSampleCoverage(\a value, \a invert).
1721
1722 For more information, see the OpenGL ES 3.X documentation for
1723 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glSampleCoverage.xhtml}{glSampleCoverage()}.
1724*/
1725
1726/*!
1727 \fn void QOpenGLFunctions::glShaderBinary(GLint n, const GLuint* shaders, GLenum binaryformat, const void* binary, GLint length)
1728
1729 Convenience function that calls glShaderBinary(\a n, \a shaders, \a binaryformat, \a binary, \a length).
1730
1731 For more information, see the OpenGL ES 3.X documentation for
1732 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glShaderBinary.xhtml}{glShaderBinary()}.
1733
1734 This convenience function will do nothing on OpenGL ES 1.x systems.
1735*/
1736
1737/*!
1738 \fn void QOpenGLFunctions::glShaderSource(GLuint shader, GLsizei count, const char** string, const GLint* length)
1739
1740 Convenience function that calls glShaderSource(\a shader, \a count, \a string, \a length).
1741
1742 For more information, see the OpenGL ES 3.X documentation for
1743 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glShaderSource.xhtml}{glShaderSource()}.
1744
1745 This convenience function will do nothing on OpenGL ES 1.x systems.
1746*/
1747
1748/*!
1749 \fn void QOpenGLFunctions::glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
1750
1751 Convenience function that calls glStencilFuncSeparate(\a face, \a func, \a ref, \a mask).
1752
1753 For more information, see the OpenGL ES 3.X documentation for
1754 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glStencilFuncSeparate.xhtml}{glStencilFuncSeparate()}.
1755*/
1756
1757/*!
1758 \fn void QOpenGLFunctions::glStencilMaskSeparate(GLenum face, GLuint mask)
1759
1760 Convenience function that calls glStencilMaskSeparate(\a face, \a mask).
1761
1762 For more information, see the OpenGL ES 3.X documentation for
1763 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glStencilMaskSeparate.xhtml}{glStencilMaskSeparate()}.
1764*/
1765
1766/*!
1767 \fn void QOpenGLFunctions::glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
1768
1769 Convenience function that calls glStencilOpSeparate(\a face, \a fail, \a zfail, \a zpass).
1770
1771 For more information, see the OpenGL ES 3.X documentation for
1772 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glStencilOpSeparate.xhtml}{glStencilOpSeparate()}.
1773*/
1774
1775/*!
1776 \fn void QOpenGLFunctions::glUniform1f(GLint location, GLfloat x)
1777
1778 Convenience function that calls glUniform1f(\a location, \a x).
1779
1780 For more information, see the OpenGL ES 3.X documentation for
1781 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform1f()}.
1782
1783 This convenience function will do nothing on OpenGL ES 1.x systems.
1784*/
1785
1786/*!
1787 \fn void QOpenGLFunctions::glUniform1fv(GLint location, GLsizei count, const GLfloat* v)
1788
1789 Convenience function that calls glUniform1fv(\a location, \a count, \a v).
1790
1791 For more information, see the OpenGL ES 3.X documentation for
1792 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform1fv()}.
1793
1794 This convenience function will do nothing on OpenGL ES 1.x systems.
1795*/
1796
1797/*!
1798 \fn void QOpenGLFunctions::glUniform1i(GLint location, GLint x)
1799
1800 Convenience function that calls glUniform1i(\a location, \a x).
1801
1802 For more information, see the OpenGL ES 3.X documentation for
1803 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform1i()}.
1804
1805 This convenience function will do nothing on OpenGL ES 1.x systems.
1806*/
1807
1808/*!
1809 \fn void QOpenGLFunctions::glUniform1iv(GLint location, GLsizei count, const GLint* v)
1810
1811 Convenience function that calls glUniform1iv(\a location, \a count, \a v).
1812
1813 For more information, see the OpenGL ES 3.X documentation for
1814 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform1iv()}.
1815
1816 This convenience function will do nothing on OpenGL ES 1.x systems.
1817*/
1818
1819/*!
1820 \fn void QOpenGLFunctions::glUniform2f(GLint location, GLfloat x, GLfloat y)
1821
1822 Convenience function that calls glUniform2f(\a location, \a x, \a y).
1823
1824 For more information, see the OpenGL ES 3.X documentation for
1825 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform2f()}.
1826
1827 This convenience function will do nothing on OpenGL ES 1.x systems.
1828*/
1829
1830/*!
1831 \fn void QOpenGLFunctions::glUniform2fv(GLint location, GLsizei count, const GLfloat* v)
1832
1833 Convenience function that calls glUniform2fv(\a location, \a count, \a v).
1834
1835 For more information, see the OpenGL ES 3.X documentation for
1836 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform2fv()}.
1837
1838 This convenience function will do nothing on OpenGL ES 1.x systems.
1839*/
1840
1841/*!
1842 \fn void QOpenGLFunctions::glUniform2i(GLint location, GLint x, GLint y)
1843
1844 Convenience function that calls glUniform2i(\a location, \a x, \a y).
1845
1846 For more information, see the OpenGL ES 3.X documentation for
1847 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform2i()}.
1848
1849 This convenience function will do nothing on OpenGL ES 1.x systems.
1850*/
1851
1852/*!
1853 \fn void QOpenGLFunctions::glUniform2iv(GLint location, GLsizei count, const GLint* v)
1854
1855 Convenience function that calls glUniform2iv(\a location, \a count, \a v).
1856
1857 For more information, see the OpenGL ES 3.X documentation for
1858 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform2iv()}.
1859
1860 This convenience function will do nothing on OpenGL ES 1.x systems.
1861*/
1862
1863/*!
1864 \fn void QOpenGLFunctions::glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z)
1865
1866 Convenience function that calls glUniform3f(\a location, \a x, \a y, \a z).
1867
1868 For more information, see the OpenGL ES 3.X documentation for
1869 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform3f()}.
1870
1871 This convenience function will do nothing on OpenGL ES 1.x systems.
1872*/
1873
1874/*!
1875 \fn void QOpenGLFunctions::glUniform3fv(GLint location, GLsizei count, const GLfloat* v)
1876
1877 Convenience function that calls glUniform3fv(\a location, \a count, \a v).
1878
1879 For more information, see the OpenGL ES 3.X documentation for
1880 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform3fv()}.
1881
1882 This convenience function will do nothing on OpenGL ES 1.x systems.
1883*/
1884
1885/*!
1886 \fn void QOpenGLFunctions::glUniform3i(GLint location, GLint x, GLint y, GLint z)
1887
1888 Convenience function that calls glUniform3i(\a location, \a x, \a y, \a z).
1889
1890 For more information, see the OpenGL ES 3.X documentation for
1891 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform3i()}.
1892
1893 This convenience function will do nothing on OpenGL ES 1.x systems.
1894*/
1895
1896/*!
1897 \fn void QOpenGLFunctions::glUniform3iv(GLint location, GLsizei count, const GLint* v)
1898
1899 Convenience function that calls glUniform3iv(\a location, \a count, \a v).
1900
1901 For more information, see the OpenGL ES 3.X documentation for
1902 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform3iv()}.
1903
1904 This convenience function will do nothing on OpenGL ES 1.x systems.
1905*/
1906
1907/*!
1908 \fn void QOpenGLFunctions::glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
1909
1910 Convenience function that calls glUniform4f(\a location, \a x, \a y, \a z, \a w).
1911
1912 For more information, see the OpenGL ES 3.X documentation for
1913 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform4f()}.
1914
1915 This convenience function will do nothing on OpenGL ES 1.x systems.
1916*/
1917
1918/*!
1919 \fn void QOpenGLFunctions::glUniform4fv(GLint location, GLsizei count, const GLfloat* v)
1920
1921 Convenience function that calls glUniform4fv(\a location, \a count, \a v).
1922
1923 For more information, see the OpenGL ES 3.X documentation for
1924 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform4fv()}.
1925
1926 This convenience function will do nothing on OpenGL ES 1.x systems.
1927*/
1928
1929/*!
1930 \fn void QOpenGLFunctions::glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w)
1931
1932 Convenience function that calls glUniform4i(\a location, \a x, \a y, \a z, \a w).
1933
1934 For more information, see the OpenGL ES 3.X documentation for
1935 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform4i()}.
1936
1937 This convenience function will do nothing on OpenGL ES 1.x systems.
1938*/
1939
1940/*!
1941 \fn void QOpenGLFunctions::glUniform4iv(GLint location, GLsizei count, const GLint* v)
1942
1943 Convenience function that calls glUniform4iv(\a location, \a count, \a v).
1944
1945 For more information, see the OpenGL ES 3.X documentation for
1946 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform4iv()}.
1947
1948 This convenience function will do nothing on OpenGL ES 1.x systems.
1949*/
1950
1951/*!
1952 \fn void QOpenGLFunctions::glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
1953
1954 Convenience function that calls glUniformMatrix2fv(\a location, \a count, \a transpose, \a value).
1955
1956 For more information, see the OpenGL ES 3.X documentation for
1957 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniformMatrix2fv()}.
1958
1959 This convenience function will do nothing on OpenGL ES 1.x systems.
1960*/
1961
1962/*!
1963 \fn void QOpenGLFunctions::glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
1964
1965 Convenience function that calls glUniformMatrix3fv(\a location, \a count, \a transpose, \a value).
1966
1967 For more information, see the OpenGL ES 3.X documentation for
1968 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniformMatrix3fv()}.
1969
1970 This convenience function will do nothing on OpenGL ES 1.x systems.
1971*/
1972
1973/*!
1974 \fn void QOpenGLFunctions::glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
1975
1976 Convenience function that calls glUniformMatrix4fv(\a location, \a count, \a transpose, \a value).
1977
1978 For more information, see the OpenGL ES 3.X documentation for
1979 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniformMatrix4fv()}.
1980
1981 This convenience function will do nothing on OpenGL ES 1.x systems.
1982*/
1983
1984/*!
1985 \fn void QOpenGLFunctions::glUseProgram(GLuint program)
1986
1987 Convenience function that calls glUseProgram(\a program).
1988
1989 For more information, see the OpenGL ES 3.X documentation for
1990 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUseProgram.xhtml}{glUseProgram()}.
1991
1992 This convenience function will do nothing on OpenGL ES 1.x systems.
1993*/
1994
1995/*!
1996 \fn void QOpenGLFunctions::glValidateProgram(GLuint program)
1997
1998 Convenience function that calls glValidateProgram(\a program).
1999
2000 For more information, see the OpenGL ES 3.X documentation for
2001 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glValidateProgram.xhtml}{glValidateProgram()}.
2002
2003 This convenience function will do nothing on OpenGL ES 1.x systems.
2004*/
2005
2006/*!
2007 \fn void QOpenGLFunctions::glVertexAttrib1f(GLuint indx, GLfloat x)
2008
2009 Convenience function that calls glVertexAttrib1f(\a indx, \a x).
2010
2011 For more information, see the OpenGL ES 3.X documentation for
2012 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttrib1f()}.
2013
2014 This convenience function will do nothing on OpenGL ES 1.x systems.
2015*/
2016
2017/*!
2018 \fn void QOpenGLFunctions::glVertexAttrib1fv(GLuint indx, const GLfloat* values)
2019
2020 Convenience function that calls glVertexAttrib1fv(\a indx, \a values).
2021
2022 For more information, see the OpenGL ES 3.X documentation for
2023 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttrib1fv()}.
2024
2025 This convenience function will do nothing on OpenGL ES 1.x systems.
2026*/
2027
2028/*!
2029 \fn void QOpenGLFunctions::glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y)
2030
2031 Convenience function that calls glVertexAttrib2f(\a indx, \a x, \a y).
2032
2033 For more information, see the OpenGL ES 3.X documentation for
2034 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttrib2f()}.
2035
2036 This convenience function will do nothing on OpenGL ES 1.x systems.
2037*/
2038
2039/*!
2040 \fn void QOpenGLFunctions::glVertexAttrib2fv(GLuint indx, const GLfloat* values)
2041
2042 Convenience function that calls glVertexAttrib2fv(\a indx, \a values).
2043
2044 For more information, see the OpenGL ES 3.X documentation for
2045 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttrib2fv()}.
2046
2047 This convenience function will do nothing on OpenGL ES 1.x systems.
2048*/
2049
2050/*!
2051 \fn void QOpenGLFunctions::glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z)
2052
2053 Convenience function that calls glVertexAttrib3f(\a indx, \a x, \a y, \a z).
2054
2055 For more information, see the OpenGL ES 3.X documentation for
2056 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttrib3f()}.
2057
2058 This convenience function will do nothing on OpenGL ES 1.x systems.
2059*/
2060
2061/*!
2062 \fn void QOpenGLFunctions::glVertexAttrib3fv(GLuint indx, const GLfloat* values)
2063
2064 Convenience function that calls glVertexAttrib3fv(\a indx, \a values).
2065
2066 For more information, see the OpenGL ES 3.X documentation for
2067 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttrib3fv()}.
2068
2069 This convenience function will do nothing on OpenGL ES 1.x systems.
2070*/
2071
2072/*!
2073 \fn void QOpenGLFunctions::glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
2074
2075 Convenience function that calls glVertexAttrib4f(\a indx, \a x, \a y, \a z, \a w).
2076
2077 For more information, see the OpenGL ES 3.X documentation for
2078 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttrib4f()}.
2079
2080 This convenience function will do nothing on OpenGL ES 1.x systems.
2081*/
2082
2083/*!
2084 \fn void QOpenGLFunctions::glVertexAttrib4fv(GLuint indx, const GLfloat* values)
2085
2086 Convenience function that calls glVertexAttrib4fv(\a indx, \a values).
2087
2088 For more information, see the OpenGL ES 3.X documentation for
2089 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttrib4fv()}.
2090
2091 This convenience function will do nothing on OpenGL ES 1.x systems.
2092*/
2093
2094/*!
2095 \fn void QOpenGLFunctions::glVertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* ptr)
2096
2097 Convenience function that calls glVertexAttribPointer(\a indx, \a size, \a type, \a normalized, \a stride, \a ptr).
2098
2099 For more information, see the OpenGL ES 3.X documentation for
2100 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glVertexAttribPointer.xhtml}{glVertexAttribPointer()}.
2101
2102 This convenience function will do nothing on OpenGL ES 1.x systems.
2103*/
2104
2105/*!
2106 \fn bool QOpenGLFunctions::isInitialized(const QOpenGLFunctionsPrivate *d)
2107 \internal
2108*/
2109
2110namespace {
2111
2112// this function tries hard to get the opengl function we're looking for by also
2113// trying to resolve it with some of the common extensions if the generic name
2114// can't be found.
2115static QFunctionPointer getProcAddress(QOpenGLContext *context, const char *funcName)
2116{
2117 QFunctionPointer function = context->getProcAddress(funcName);
2118
2119 static const struct {
2120 const char *name;
2121 int len; // includes trailing \0
2122 } extensions[] = {
2123 { "ARB", 4 },
2124 { "OES", 4 },
2125 { "EXT", 4 },
2126 { "ANGLE", 6 },
2127 { "NV", 3 },
2128 };
2129
2130 if (!function) {
2131 char fn[512];
2132 size_t size = strlen(funcName);
2133 Q_ASSERT(size < 500);
2134 memcpy(fn, funcName, size);
2135 char *ext = fn + size;
2136
2137 for (const auto &e : extensions) {
2138 memcpy(ext, e.name, e.len);
2139 function = context->getProcAddress(fn);
2140 if (function)
2141 break;
2142 }
2143 }
2144
2145 return function;
2146}
2147
2148template <typename Func>
2149Func resolve(QOpenGLContext *context, const char *name, Func)
2150{
2151 return reinterpret_cast<Func>(getProcAddress(context, name));
2152}
2153
2154}
2155
2156#define RESOLVE(name)
2157 resolve(context, "gl"#name, name)
2158
2159#if !QT_CONFIG(opengles2)
2160
2161// some fallback functions
2162static void QOPENGLF_APIENTRY qopenglfSpecialClearDepthf(GLclampf depth)
2163{
2164 QOpenGLContext *context = QOpenGLContext::currentContext();
2165 QOpenGLFunctionsPrivate *funcs = qt_gl_functions(context);
2166 funcs->f.ClearDepth((GLdouble) depth);
2167}
2168
2169static void QOPENGLF_APIENTRY qopenglfSpecialDepthRangef(GLclampf zNear, GLclampf zFar)
2170{
2171 QOpenGLContext *context = QOpenGLContext::currentContext();
2172 QOpenGLFunctionsPrivate *funcs = qt_gl_functions(context);
2173 funcs->f.DepthRange((GLdouble) zNear, (GLdouble) zFar);
2174}
2175
2176static void QOPENGLF_APIENTRY qopenglfSpecialGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision)
2177{
2178 Q_UNUSED(shadertype);
2179 Q_UNUSED(precisiontype);
2180 range[0] = range[1] = precision[0] = 0;
2181}
2182
2183static GLboolean QOPENGLF_APIENTRY qopenglfSpecialIsProgram(GLuint program)
2184{
2185 return program != 0;
2186}
2187
2188static GLboolean QOPENGLF_APIENTRY qopenglfSpecialIsShader(GLuint shader)
2189{
2190 return shader != 0;
2191}
2192
2193static void QOPENGLF_APIENTRY qopenglfSpecialReleaseShaderCompiler()
2194{
2195}
2196
2197#endif // !QT_CONFIG(opengles2)
2198
2199
2200QOpenGLFunctionsPrivate::QOpenGLFunctionsPrivate(QOpenGLContext *c)
2201{
2202 init(c);
2203
2204#if !QT_CONFIG(opengles2)
2205 // setup fallbacks in case some methods couldn't get resolved
2206 bool es = QOpenGLContext::currentContext()->isOpenGLES();
2207 if (!f.ClearDepthf || !es)
2208 f.ClearDepthf = qopenglfSpecialClearDepthf;
2209 if (!f.DepthRangef || !es)
2210 f.DepthRangef = qopenglfSpecialDepthRangef;
2211 if (!f.GetShaderPrecisionFormat)
2212 f.GetShaderPrecisionFormat = qopenglfSpecialGetShaderPrecisionFormat;
2213 if (!f.IsProgram)
2214 f.IsProgram = qopenglfSpecialIsProgram;
2215 if (!f.IsShader)
2216 f.IsShader = qopenglfSpecialIsShader;
2217 if (!f.ReleaseShaderCompiler)
2218 f.ReleaseShaderCompiler = qopenglfSpecialReleaseShaderCompiler;
2219#endif
2220}
2221
2222
2223QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS)
2224
2225/*!
2226 \class QOpenGLExtraFunctions
2227 \brief The QOpenGLExtraFunctions class provides cross-platform access to the OpenGL ES 3.0, 3.1 and 3.2 API.
2228 \since 5.6
2229 \ingroup painting-3D
2230 \inmodule QtGui
2231
2232 This subclass of QOpenGLFunctions includes the OpenGL ES 3.0, 3.1 and 3.2
2233 functions. These will only work when an OpenGL ES 3.x context, or an
2234 OpenGL context of a version containing the functions in question either in
2235 core or as extension, is in use. This allows developing GLES 3.x
2236 applications in a cross-platform manner: development can happen on a desktop
2237 platform with OpenGL 3.x or 4.x, deploying to a true GLES 3.x device later
2238 on will require no or minimal changes to the application.
2239
2240 \note This class is different from the versioned OpenGL wrappers, for
2241 instance QOpenGLFunctions_3_2_Core. The versioned function wrappers target a
2242 given version and profile of OpenGL. They are therefore not suitable for
2243 cross-OpenGL-OpenGLES development.
2244
2245 \section1 Security Considerations
2246
2247 QOpenGLExtraFunctions is a thin dispatch layer that exposes the OpenGL ES
2248 3.x API as-is, and the same considerations apply as for the base class. In
2249 addition to the entry points already available there, this class exposes
2250 compute shaders, shader storage buffers, image load/store, and program
2251 binaries, all of which forward caller-supplied content straight to the
2252 OpenGL implementation without inspection by Qt.
2253
2254 \warning All data passed through QOpenGLExtraFunctions is expected to be
2255 trusted content. Application developers are advised to carefully consider
2256 the potential implications before deriving any of it from user-provided
2257 content that is not part of the application and is not under the
2258 developers' control. See \l{QOpenGLFunctions#Security
2259 Considerations}{QOpenGLFunctions} for more information.
2260 */
2261
2262/*!
2263 \fn void QOpenGLExtraFunctions::glBeginQuery(GLenum target, GLuint id)
2264
2265 Convenience function that calls glBeginQuery(\a target, \a id).
2266
2267 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2268 with plain OpenGL, the function is only usable when the given profile and version contains the
2269 function either in core or as an extension.
2270
2271 For more information, see the OpenGL ES 3.x documentation for
2272 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBeginQuery.xhtml}{glBeginQuery()}.
2273*/
2274
2275/*!
2276 \fn void QOpenGLExtraFunctions::glBeginTransformFeedback(GLenum primitiveMode)
2277
2278 Convenience function that calls glBeginTransformFeedback(\a primitiveMode).
2279
2280 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2281 with plain OpenGL, the function is only usable when the given profile and version contains the
2282 function either in core or as an extension.
2283
2284 For more information, see the OpenGL ES 3.x documentation for
2285 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBeginTransformFeedback.xhtml}{glBeginTransformFeedback()}.
2286*/
2287
2288/*!
2289 \fn void QOpenGLExtraFunctions::glBindBufferBase(GLenum target, GLuint index, GLuint buffer)
2290
2291 Convenience function that calls glBindBufferBase(\a target, \a index, \a buffer).
2292
2293 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2294 with plain OpenGL, the function is only usable when the given profile and version contains the
2295 function either in core or as an extension.
2296
2297 For more information, see the OpenGL ES 3.x documentation for
2298 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBindBufferBase.xhtml}{glBindBufferBase()}.
2299*/
2300
2301/*!
2302 \fn void QOpenGLExtraFunctions::glBindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size)
2303
2304 Convenience function that calls glBindBufferRange(\a target, \a index, \a buffer, \a offset, \a size).
2305
2306 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2307 with plain OpenGL, the function is only usable when the given profile and version contains the
2308 function either in core or as an extension.
2309
2310 For more information, see the OpenGL ES 3.x documentation for
2311 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBindBufferRange.xhtml}{glBindBufferRange()}.
2312*/
2313
2314/*!
2315 \fn void QOpenGLExtraFunctions::glBindSampler(GLuint unit, GLuint sampler)
2316
2317 Convenience function that calls glBindSampler(\a unit, \a sampler).
2318
2319 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2320 with plain OpenGL, the function is only usable when the given profile and version contains the
2321 function either in core or as an extension.
2322
2323 For more information, see the OpenGL ES 3.x documentation for
2324 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBindSampler.xhtml}{glBindSampler()}.
2325*/
2326
2327/*!
2328 \fn void QOpenGLExtraFunctions::glBindTransformFeedback(GLenum target, GLuint id)
2329
2330 Convenience function that calls glBindTransformFeedback(\a target, \a id).
2331
2332 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2333 with plain OpenGL, the function is only usable when the given profile and version contains the
2334 function either in core or as an extension.
2335
2336 For more information, see the OpenGL ES 3.x documentation for
2337 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBindTransformFeedback.xhtml}{glBindTransformFeedback()}.
2338*/
2339
2340/*!
2341 \fn void QOpenGLExtraFunctions::glBindVertexArray(GLuint array)
2342
2343 Convenience function that calls glBindVertexArray(\a array).
2344
2345 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2346 with plain OpenGL, the function is only usable when the given profile and version contains the
2347 function either in core or as an extension.
2348
2349 For more information, see the OpenGL ES 3.x documentation for
2350 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBindVertexArray.xhtml}{glBindVertexArray()}.
2351*/
2352
2353/*!
2354 \fn void QOpenGLExtraFunctions::glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
2355
2356 Convenience function that calls glBlitFramebuffer(\a srcX0, \a srcY0, \a srcX1, \a srcY1, \a dstX0, \a dstY0, \a dstX1, \a dstY1, \a mask, \a filter).
2357
2358 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2359 with plain OpenGL, the function is only usable when the given profile and version contains the
2360 function either in core or as an extension.
2361
2362 For more information, see the OpenGL ES 3.x documentation for
2363 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBlitFramebuffer.xhtml}{glBlitFramebuffer()}.
2364*/
2365
2366/*!
2367 \fn void QOpenGLExtraFunctions::glClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil)
2368
2369 Convenience function that calls glClearBufferfi(\a buffer, \a drawbuffer, \a depth, \a stencil).
2370
2371 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2372 with plain OpenGL, the function is only usable when the given profile and version contains the
2373 function either in core or as an extension.
2374
2375 For more information, see the OpenGL ES 3.x documentation for
2376 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glClearBuffer.xhtml}{glClearBufferfi()}.
2377*/
2378
2379/*!
2380 \fn void QOpenGLExtraFunctions::glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat * value)
2381
2382 Convenience function that calls glClearBufferfv(\a buffer, \a drawbuffer, \a value).
2383
2384 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2385 with plain OpenGL, the function is only usable when the given profile and version contains the
2386 function either in core or as an extension.
2387
2388 For more information, see the OpenGL ES 3.x documentation for
2389 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glClearBuffer.xhtml}{glClearBufferfv()}.
2390*/
2391
2392/*!
2393 \fn void QOpenGLExtraFunctions::glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint * value)
2394
2395 Convenience function that calls glClearBufferiv(\a buffer, \a drawbuffer, \a value).
2396
2397 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2398 with plain OpenGL, the function is only usable when the given profile and version contains the
2399 function either in core or as an extension.
2400
2401 For more information, see the OpenGL ES 3.x documentation for
2402 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glClearBuffer.xhtml}{glClearBufferiv()}.
2403*/
2404
2405/*!
2406 \fn void QOpenGLExtraFunctions::glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint * value)
2407
2408 Convenience function that calls glClearBufferuiv(\a buffer, \a drawbuffer, \a value).
2409
2410 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2411 with plain OpenGL, the function is only usable when the given profile and version contains the
2412 function either in core or as an extension.
2413
2414 For more information, see the OpenGL ES 3.x documentation for
2415 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glClearBuffer.xhtml}{glClearBufferuiv()}.
2416*/
2417
2418/*!
2419 \fn GLenum QOpenGLExtraFunctions::glClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
2420
2421 Convenience function that calls glClientWaitSync(\a sync, \a flags, \a timeout).
2422
2423 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2424 with plain OpenGL, the function is only usable when the given profile and version contains the
2425 function either in core or as an extension.
2426
2427 For more information, see the OpenGL ES 3.x documentation for
2428 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glClientWaitSync.xhtml}{glClientWaitSync()}.
2429*/
2430
2431/*!
2432 \fn void QOpenGLExtraFunctions::glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void * data)
2433
2434 Convenience function that calls glCompressedTexImage3D(\a target, \a level, \a internalformat, \a width, \a height, \a depth, \a border, \a imageSize, \a data).
2435
2436 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2437 with plain OpenGL, the function is only usable when the given profile and version contains the
2438 function either in core or as an extension.
2439
2440 For more information, see the OpenGL ES 3.x documentation for
2441 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glCompressedTexImage3D.xhtml}{glCompressedTexImage3D()}.
2442*/
2443
2444/*!
2445 \fn void QOpenGLExtraFunctions::glCompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void * data)
2446
2447 Convenience function that calls glCompressedTexSubImage3D(\a target, \a level, \a xoffset, \a yoffset, \a zoffset, \a width, \a height, \a depth, \a format, \a imageSize, \a data).
2448
2449 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2450 with plain OpenGL, the function is only usable when the given profile and version contains the
2451 function either in core or as an extension.
2452
2453 For more information, see the OpenGL ES 3.x documentation for
2454 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glCompressedTexSubImage3D.xhtml}{glCompressedTexSubImage3D()}.
2455*/
2456
2457/*!
2458 \fn void QOpenGLExtraFunctions::glCopyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size)
2459
2460 Convenience function that calls glCopyBufferSubData(\a readTarget, \a writeTarget, \a readOffset, \a writeOffset, \a size).
2461
2462 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2463 with plain OpenGL, the function is only usable when the given profile and version contains the
2464 function either in core or as an extension.
2465
2466 For more information, see the OpenGL ES 3.x documentation for
2467 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glCopyBufferSubData.xhtml}{glCopyBufferSubData()}.
2468*/
2469
2470/*!
2471 \fn void QOpenGLExtraFunctions::glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
2472
2473 Convenience function that calls glCopyTexSubImage3D(\a target, \a level, \a xoffset, \a yoffset, \a zoffset, \a x, \a y, \a width, \a height).
2474
2475 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2476 with plain OpenGL, the function is only usable when the given profile and version contains the
2477 function either in core or as an extension.
2478
2479 For more information, see the OpenGL ES 3.x documentation for
2480 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glCopyTexSubImage3D.xhtml}{glCopyTexSubImage3D()}.
2481*/
2482
2483/*!
2484 \fn void QOpenGLExtraFunctions::glDeleteQueries(GLsizei n, const GLuint * ids)
2485
2486 Convenience function that calls glDeleteQueries(\a n, \a ids).
2487
2488 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2489 with plain OpenGL, the function is only usable when the given profile and version contains the
2490 function either in core or as an extension.
2491
2492 For more information, see the OpenGL ES 3.x documentation for
2493 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDeleteQueries.xhtml}{glDeleteQueries()}.
2494*/
2495
2496/*!
2497 \fn void QOpenGLExtraFunctions::glDeleteSamplers(GLsizei count, const GLuint * samplers)
2498
2499 Convenience function that calls glDeleteSamplers(\a count, \a samplers).
2500
2501 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2502 with plain OpenGL, the function is only usable when the given profile and version contains the
2503 function either in core or as an extension.
2504
2505 For more information, see the OpenGL ES 3.x documentation for
2506 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDeleteSamplers.xhtml}{glDeleteSamplers()}.
2507*/
2508
2509/*!
2510 \fn void QOpenGLExtraFunctions::glDeleteSync(GLsync sync)
2511
2512 Convenience function that calls glDeleteSync(\a sync).
2513
2514 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2515 with plain OpenGL, the function is only usable when the given profile and version contains the
2516 function either in core or as an extension.
2517
2518 For more information, see the OpenGL ES 3.x documentation for
2519 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDeleteSync.xhtml}{glDeleteSync()}.
2520*/
2521
2522/*!
2523 \fn void QOpenGLExtraFunctions::glDeleteTransformFeedbacks(GLsizei n, const GLuint * ids)
2524
2525 Convenience function that calls glDeleteTransformFeedbacks(\a n, \a ids).
2526
2527 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2528 with plain OpenGL, the function is only usable when the given profile and version contains the
2529 function either in core or as an extension.
2530
2531 For more information, see the OpenGL ES 3.x documentation for
2532 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDeleteTransformFeedbacks.xhtml}{glDeleteTransformFeedbacks()}.
2533*/
2534
2535/*!
2536 \fn void QOpenGLExtraFunctions::glDeleteVertexArrays(GLsizei n, const GLuint * arrays)
2537
2538 Convenience function that calls glDeleteVertexArrays(\a n, \a arrays).
2539
2540 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2541 with plain OpenGL, the function is only usable when the given profile and version contains the
2542 function either in core or as an extension.
2543
2544 For more information, see the OpenGL ES 3.x documentation for
2545 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDeleteVertexArrays.xhtml}{glDeleteVertexArrays()}.
2546*/
2547
2548/*!
2549 \fn void QOpenGLExtraFunctions::glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instancecount)
2550
2551 Convenience function that calls glDrawArraysInstanced(\a mode, \a first, \a count, \a instancecount).
2552
2553 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2554 with plain OpenGL, the function is only usable when the given profile and version contains the
2555 function either in core or as an extension.
2556
2557 For more information, see the OpenGL ES 3.x documentation for
2558 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDrawArraysInstanced.xhtml}{glDrawArraysInstanced()}.
2559*/
2560
2561/*!
2562 \fn void QOpenGLExtraFunctions::glDrawBuffers(GLsizei n, const GLenum * bufs)
2563
2564 Convenience function that calls glDrawBuffers(\a n, \a bufs).
2565
2566 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2567 with plain OpenGL, the function is only usable when the given profile and version contains the
2568 function either in core or as an extension.
2569
2570 For more information, see the OpenGL ES 3.x documentation for
2571 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDrawBuffers.xhtml}{glDrawBuffers()}.
2572*/
2573
2574/*!
2575 \fn void QOpenGLExtraFunctions::glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei instancecount)
2576
2577 Convenience function that calls glDrawElementsInstanced(\a mode, \a count, \a type, \a indices, \a instancecount).
2578
2579 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2580 with plain OpenGL, the function is only usable when the given profile and version contains the
2581 function either in core or as an extension.
2582
2583 For more information, see the OpenGL ES 3.x documentation for
2584 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDrawElementsInstanced.xhtml}{glDrawElementsInstanced()}.
2585*/
2586
2587/*!
2588 \fn void QOpenGLExtraFunctions::glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void * indices)
2589
2590 Convenience function that calls glDrawRangeElements(\a mode, \a start, \a end, \a count, \a type, \a indices).
2591
2592 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2593 with plain OpenGL, the function is only usable when the given profile and version contains the
2594 function either in core or as an extension.
2595
2596 For more information, see the OpenGL ES 3.x documentation for
2597 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDrawRangeElements.xhtml}{glDrawRangeElements()}.
2598*/
2599
2600/*!
2601 \fn void QOpenGLExtraFunctions::glEndQuery(GLenum target)
2602
2603 Convenience function that calls glEndQuery(\a target).
2604
2605 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2606 with plain OpenGL, the function is only usable when the given profile and version contains the
2607 function either in core or as an extension.
2608
2609 For more information, see the OpenGL ES 3.x documentation for
2610 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBeginQuery.xhtml}{glEndQuery()}.
2611*/
2612
2613/*!
2614 \fn void QOpenGLExtraFunctions::glEndTransformFeedback()
2615
2616 Convenience function that calls glEndTransformFeedback().
2617
2618 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2619 with plain OpenGL, the function is only usable when the given profile and version contains the
2620 function either in core or as an extension.
2621
2622 For more information, see the OpenGL ES 3.x documentation for
2623 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBeginTransformFeedback.xhtml}{glEndTransformFeedback()}.
2624*/
2625
2626/*!
2627 \fn GLsync QOpenGLExtraFunctions::glFenceSync(GLenum condition, GLbitfield flags)
2628
2629 Convenience function that calls glFenceSync(\a condition, \a flags).
2630
2631 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2632 with plain OpenGL, the function is only usable when the given profile and version contains the
2633 function either in core or as an extension.
2634
2635 For more information, see the OpenGL ES 3.x documentation for
2636 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glFenceSync.xhtml}{glFenceSync()}.
2637*/
2638
2639/*!
2640 \fn void QOpenGLExtraFunctions::glFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length)
2641
2642 Convenience function that calls glFlushMappedBufferRange(\a target, \a offset, \a length).
2643
2644 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2645 with plain OpenGL, the function is only usable when the given profile and version contains the
2646 function either in core or as an extension.
2647
2648 For more information, see the OpenGL ES 3.x documentation for
2649 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glFlushMappedBufferRange.xhtml}{glFlushMappedBufferRange()}.
2650*/
2651
2652/*!
2653 \fn void QOpenGLExtraFunctions::glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer)
2654
2655 Convenience function that calls glFramebufferTextureLayer(\a target, \a attachment, \a texture, \a level, \a layer).
2656
2657 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2658 with plain OpenGL, the function is only usable when the given profile and version contains the
2659 function either in core or as an extension.
2660
2661 For more information, see the OpenGL ES 3.x documentation for
2662 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glFramebufferTextureLayer.xhtml}{glFramebufferTextureLayer()}.
2663*/
2664
2665/*!
2666 \fn void QOpenGLExtraFunctions::glGenQueries(GLsizei n, GLuint* ids)
2667
2668 Convenience function that calls glGenQueries(\a n, \a ids).
2669
2670 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2671 with plain OpenGL, the function is only usable when the given profile and version contains the
2672 function either in core or as an extension.
2673
2674 For more information, see the OpenGL ES 3.x documentation for
2675 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGenQueries.xhtml}{glGenQueries()}.
2676*/
2677
2678/*!
2679 \fn void QOpenGLExtraFunctions::glGenSamplers(GLsizei count, GLuint* samplers)
2680
2681 Convenience function that calls glGenSamplers(\a count, \a samplers).
2682
2683 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2684 with plain OpenGL, the function is only usable when the given profile and version contains the
2685 function either in core or as an extension.
2686
2687 For more information, see the OpenGL ES 3.x documentation for
2688 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGenSamplers.xhtml}{glGenSamplers()}.
2689*/
2690
2691/*!
2692 \fn void QOpenGLExtraFunctions::glGenTransformFeedbacks(GLsizei n, GLuint* ids)
2693
2694 Convenience function that calls glGenTransformFeedbacks(\a n, \a ids).
2695
2696 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2697 with plain OpenGL, the function is only usable when the given profile and version contains the
2698 function either in core or as an extension.
2699
2700 For more information, see the OpenGL ES 3.x documentation for
2701 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGenTransformFeedbacks.xhtml}{glGenTransformFeedbacks()}.
2702*/
2703
2704/*!
2705 \fn void QOpenGLExtraFunctions::glGenVertexArrays(GLsizei n, GLuint* arrays)
2706
2707 Convenience function that calls glGenVertexArrays(\a n, \a arrays).
2708
2709 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2710 with plain OpenGL, the function is only usable when the given profile and version contains the
2711 function either in core or as an extension.
2712
2713 For more information, see the OpenGL ES 3.x documentation for
2714 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGenVertexArrays.xhtml}{glGenVertexArrays()}.
2715*/
2716
2717/*!
2718 \fn void QOpenGLExtraFunctions::glGetActiveUniformBlockName(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformBlockName)
2719
2720 Convenience function that calls glGetActiveUniformBlockName(\a program, \a uniformBlockIndex, \a bufSize, \a length, \a uniformBlockName).
2721
2722 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2723 with plain OpenGL, the function is only usable when the given profile and version contains the
2724 function either in core or as an extension.
2725
2726 For more information, see the OpenGL ES 3.x documentation for
2727 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetActiveUniformBlockName.xhtml}{glGetActiveUniformBlockName()}.
2728*/
2729
2730/*!
2731 \fn void QOpenGLExtraFunctions::glGetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint* params)
2732
2733 Convenience function that calls glGetActiveUniformBlockiv(\a program, \a uniformBlockIndex, \a pname, \a params).
2734
2735 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2736 with plain OpenGL, the function is only usable when the given profile and version contains the
2737 function either in core or as an extension.
2738
2739 For more information, see the OpenGL ES 3.x documentation for
2740 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetActiveUniformBlockiv.xhtml}{glGetActiveUniformBlockiv()}.
2741*/
2742
2743/*!
2744 \fn void QOpenGLExtraFunctions::glGetActiveUniformsiv(GLuint program, GLsizei uniformCount, const GLuint * uniformIndices, GLenum pname, GLint* params)
2745
2746 Convenience function that calls glGetActiveUniformsiv(\a program, \a uniformCount, \a uniformIndices, \a pname, \a params).
2747
2748 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2749 with plain OpenGL, the function is only usable when the given profile and version contains the
2750 function either in core or as an extension.
2751
2752 For more information, see the OpenGL ES 3.x documentation for
2753 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetActiveUniformsiv.xhtml}{glGetActiveUniformsiv()}.
2754*/
2755
2756/*!
2757 \fn void QOpenGLExtraFunctions::glGetBufferParameteri64v(GLenum target, GLenum pname, GLint64* params)
2758
2759 Convenience function that calls glGetBufferParameteri64v(\a target, \a pname, \a params).
2760
2761 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2762 with plain OpenGL, the function is only usable when the given profile and version contains the
2763 function either in core or as an extension.
2764
2765 For more information, see the OpenGL ES 3.x documentation for
2766 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetBufferParameter.xhtml}{glGetBufferParameteri64v()}.
2767*/
2768
2769/*!
2770 \fn void QOpenGLExtraFunctions::glGetBufferPointerv(GLenum target, GLenum pname, void ** params)
2771
2772 Convenience function that calls glGetBufferPointerv(\a target, \a pname, \a params).
2773
2774 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2775 with plain OpenGL, the function is only usable when the given profile and version contains the
2776 function either in core or as an extension.
2777
2778 For more information, see the OpenGL ES 3.x documentation for
2779 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetBufferPointerv.xhtml}{glGetBufferPointerv()}.
2780*/
2781
2782/*!
2783 \fn GLint QOpenGLExtraFunctions::glGetFragDataLocation(GLuint program, const GLchar * name)
2784
2785 Convenience function that calls glGetFragDataLocation(\a program, \a name).
2786
2787 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2788 with plain OpenGL, the function is only usable when the given profile and version contains the
2789 function either in core or as an extension.
2790
2791 For more information, see the OpenGL ES 3.x documentation for
2792 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetFragDataLocation.xhtml}{glGetFragDataLocation()}.
2793*/
2794
2795/*!
2796 \fn void QOpenGLExtraFunctions::glGetInteger64i_v(GLenum target, GLuint index, GLint64* data)
2797
2798 Convenience function that calls glGetInteger64i_v(\a target, \a index, \a data).
2799
2800 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2801 with plain OpenGL, the function is only usable when the given profile and version contains the
2802 function either in core or as an extension.
2803
2804 For more information, see the OpenGL ES 3.x documentation for
2805 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGet.xhtml}{glGetInteger64i_v()}.
2806*/
2807
2808/*!
2809 \fn void QOpenGLExtraFunctions::glGetInteger64v(GLenum pname, GLint64* data)
2810
2811 Convenience function that calls glGetInteger64v(\a pname, \a data).
2812
2813 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2814 with plain OpenGL, the function is only usable when the given profile and version contains the
2815 function either in core or as an extension.
2816
2817 For more information, see the OpenGL ES 3.x documentation for
2818 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGet.xhtml}{glGetInteger64v()}.
2819*/
2820
2821/*!
2822 \fn void QOpenGLExtraFunctions::glGetIntegeri_v(GLenum target, GLuint index, GLint* data)
2823
2824 Convenience function that calls glGetIntegeri_v(\a target, \a index, \a data).
2825
2826 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2827 with plain OpenGL, the function is only usable when the given profile and version contains the
2828 function either in core or as an extension.
2829
2830 For more information, see the OpenGL ES 3.x documentation for
2831 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGet.xhtml}{glGetIntegeri_v()}.
2832*/
2833
2834/*!
2835 \fn void QOpenGLExtraFunctions::glGetInternalformativ(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint* params)
2836
2837 Convenience function that calls glGetInternalformativ(\a target, \a internalformat, \a pname, \a bufSize, \a params).
2838
2839 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2840 with plain OpenGL, the function is only usable when the given profile and version contains the
2841 function either in core or as an extension.
2842
2843 For more information, see the OpenGL ES 3.x documentation for
2844 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetInternalformativ.xhtml}{glGetInternalformativ()}.
2845*/
2846
2847/*!
2848 \fn void QOpenGLExtraFunctions::glGetProgramBinary(GLuint program, GLsizei bufSize, GLsizei* length, GLenum* binaryFormat, void * binary)
2849
2850 Convenience function that calls glGetProgramBinary(\a program, \a bufSize, \a length, \a binaryFormat, \a binary).
2851
2852 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2853 with plain OpenGL, the function is only usable when the given profile and version contains the
2854 function either in core or as an extension.
2855
2856 For more information, see the OpenGL ES 3.x documentation for
2857 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetProgramBinary.xhtml}{glGetProgramBinary()}.
2858*/
2859
2860/*!
2861 \fn void QOpenGLExtraFunctions::glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint* params)
2862
2863 Convenience function that calls glGetQueryObjectuiv(\a id, \a pname, \a params).
2864
2865 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2866 with plain OpenGL, the function is only usable when the given profile and version contains the
2867 function either in core or as an extension.
2868
2869 For more information, see the OpenGL ES 3.x documentation for
2870 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetQueryObjectuiv.xhtml}{glGetQueryObjectuiv()}.
2871*/
2872
2873/*!
2874 \fn void QOpenGLExtraFunctions::glGetQueryiv(GLenum target, GLenum pname, GLint* params)
2875
2876 Convenience function that calls glGetQueryiv(\a target, \a pname, \a params).
2877
2878 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2879 with plain OpenGL, the function is only usable when the given profile and version contains the
2880 function either in core or as an extension.
2881
2882 For more information, see the OpenGL ES 3.x documentation for
2883 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetQueryiv.xhtml}{glGetQueryiv()}.
2884*/
2885
2886/*!
2887 \fn void QOpenGLExtraFunctions::glGetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat* params)
2888
2889 Convenience function that calls glGetSamplerParameterfv(\a sampler, \a pname, \a params).
2890
2891 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2892 with plain OpenGL, the function is only usable when the given profile and version contains the
2893 function either in core or as an extension.
2894
2895 For more information, see the OpenGL ES 3.x documentation for
2896 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetSamplerParameter.xhtml}{glGetSamplerParameterfv()}.
2897*/
2898
2899/*!
2900 \fn void QOpenGLExtraFunctions::glGetSamplerParameteriv(GLuint sampler, GLenum pname, GLint* params)
2901
2902 Convenience function that calls glGetSamplerParameteriv(\a sampler, \a pname, \a params).
2903
2904 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2905 with plain OpenGL, the function is only usable when the given profile and version contains the
2906 function either in core or as an extension.
2907
2908 For more information, see the OpenGL ES 3.x documentation for
2909 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetSamplerParameter.xhtml}{glGetSamplerParameteriv()}.
2910*/
2911
2912/*!
2913 \fn const GLubyte * QOpenGLExtraFunctions::glGetStringi(GLenum name, GLuint index)
2914
2915 Convenience function that calls glGetStringi(\a name, \a index).
2916
2917 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2918 with plain OpenGL, the function is only usable when the given profile and version contains the
2919 function either in core or as an extension.
2920
2921 For more information, see the OpenGL ES 3.x documentation for
2922 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetString.xhtml}{glGetStringi()}.
2923*/
2924
2925/*!
2926 \fn void QOpenGLExtraFunctions::glGetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length, GLint* values)
2927
2928 Convenience function that calls glGetSynciv(\a sync, \a pname, \a bufSize, \a length, \a values).
2929
2930 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2931 with plain OpenGL, the function is only usable when the given profile and version contains the
2932 function either in core or as an extension.
2933
2934 For more information, see the OpenGL ES 3.x documentation for
2935 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetSynciv.xhtml}{glGetSynciv()}.
2936*/
2937
2938/*!
2939 \fn void QOpenGLExtraFunctions::glGetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei* size, GLenum* type, GLchar* name)
2940
2941 Convenience function that calls glGetTransformFeedbackVarying(\a program, \a index, \a bufSize, \a length, \a size, \a type, \a name).
2942
2943 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2944 with plain OpenGL, the function is only usable when the given profile and version contains the
2945 function either in core or as an extension.
2946
2947 For more information, see the OpenGL ES 3.x documentation for
2948 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetTransformFeedbackVarying.xhtml}{glGetTransformFeedbackVarying()}.
2949*/
2950
2951/*!
2952 \fn GLuint QOpenGLExtraFunctions::glGetUniformBlockIndex(GLuint program, const GLchar * uniformBlockName)
2953
2954 Convenience function that calls glGetUniformBlockIndex(\a program, \a uniformBlockName).
2955
2956 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2957 with plain OpenGL, the function is only usable when the given profile and version contains the
2958 function either in core or as an extension.
2959
2960 For more information, see the OpenGL ES 3.x documentation for
2961 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetUniformBlockIndex.xhtml}{glGetUniformBlockIndex()}.
2962*/
2963
2964/*!
2965 \fn void QOpenGLExtraFunctions::glGetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar *const* uniformNames, GLuint* uniformIndices)
2966
2967 Convenience function that calls glGetUniformIndices(\a program, \a uniformCount, \a uniformNames, \a uniformIndices).
2968
2969 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2970 with plain OpenGL, the function is only usable when the given profile and version contains the
2971 function either in core or as an extension.
2972
2973 For more information, see the OpenGL ES 3.x documentation for
2974 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetUniformIndices.xhtml}{glGetUniformIndices()}.
2975*/
2976
2977/*!
2978 \fn void QOpenGLExtraFunctions::glGetUniformuiv(GLuint program, GLint location, GLuint* params)
2979
2980 Convenience function that calls glGetUniformuiv(\a program, \a location, \a params).
2981
2982 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2983 with plain OpenGL, the function is only usable when the given profile and version contains the
2984 function either in core or as an extension.
2985
2986 For more information, see the OpenGL ES 3.x documentation for
2987 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetUniform.xhtml}{glGetUniformuiv()}.
2988*/
2989
2990/*!
2991 \fn void QOpenGLExtraFunctions::glGetVertexAttribIiv(GLuint index, GLenum pname, GLint* params)
2992
2993 Convenience function that calls glGetVertexAttribIiv(\a index, \a pname, \a params).
2994
2995 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
2996 with plain OpenGL, the function is only usable when the given profile and version contains the
2997 function either in core or as an extension.
2998
2999 For more information, see the OpenGL ES 3.x documentation for
3000 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetVertexAttrib.xhtml}{glGetVertexAttribIiv()}.
3001*/
3002
3003/*!
3004 \fn void QOpenGLExtraFunctions::glGetVertexAttribIuiv(GLuint index, GLenum pname, GLuint* params)
3005
3006 Convenience function that calls glGetVertexAttribIuiv(\a index, \a pname, \a params).
3007
3008 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3009 with plain OpenGL, the function is only usable when the given profile and version contains the
3010 function either in core or as an extension.
3011
3012 For more information, see the OpenGL ES 3.x documentation for
3013 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetVertexAttrib.xhtml}{glGetVertexAttribIuiv()}.
3014*/
3015
3016/*!
3017 \fn void QOpenGLExtraFunctions::glInvalidateFramebuffer(GLenum target, GLsizei numAttachments, const GLenum * attachments)
3018
3019 Convenience function that calls glInvalidateFramebuffer(\a target, \a numAttachments, \a attachments).
3020
3021 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3022 with plain OpenGL, the function is only usable when the given profile and version contains the
3023 function either in core or as an extension.
3024
3025 For more information, see the OpenGL ES 3.x documentation for
3026 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glInvalidateFramebuffer.xhtml}{glInvalidateFramebuffer()}.
3027*/
3028
3029/*!
3030 \fn void QOpenGLExtraFunctions::glInvalidateSubFramebuffer(GLenum target, GLsizei numAttachments, const GLenum * attachments, GLint x, GLint y, GLsizei width, GLsizei height)
3031
3032 Convenience function that calls glInvalidateSubFramebuffer(\a target, \a numAttachments, \a attachments, \a x, \a y, \a width, \a height).
3033
3034 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3035 with plain OpenGL, the function is only usable when the given profile and version contains the
3036 function either in core or as an extension.
3037
3038 For more information, see the OpenGL ES 3.x documentation for
3039 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glInvalidateSubFramebuffer.xhtml}{glInvalidateSubFramebuffer()}.
3040*/
3041
3042/*!
3043 \fn GLboolean QOpenGLExtraFunctions::glIsQuery(GLuint id)
3044
3045 Convenience function that calls glIsQuery(\a id).
3046
3047 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3048 with plain OpenGL, the function is only usable when the given profile and version contains the
3049 function either in core or as an extension.
3050
3051 For more information, see the OpenGL ES 3.x documentation for
3052 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glIsQuery.xhtml}{glIsQuery()}.
3053*/
3054
3055/*!
3056 \fn GLboolean QOpenGLExtraFunctions::glIsSampler(GLuint sampler)
3057
3058 Convenience function that calls glIsSampler(\a sampler).
3059
3060 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3061 with plain OpenGL, the function is only usable when the given profile and version contains the
3062 function either in core or as an extension.
3063
3064 For more information, see the OpenGL ES 3.x documentation for
3065 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glIsSampler.xhtml}{glIsSampler()}.
3066*/
3067
3068/*!
3069 \fn GLboolean QOpenGLExtraFunctions::glIsSync(GLsync sync)
3070
3071 Convenience function that calls glIsSync(\a sync).
3072
3073 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3074 with plain OpenGL, the function is only usable when the given profile and version contains the
3075 function either in core or as an extension.
3076
3077 For more information, see the OpenGL ES 3.x documentation for
3078 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glIsSync.xhtml}{glIsSync()}.
3079*/
3080
3081/*!
3082 \fn GLboolean QOpenGLExtraFunctions::glIsTransformFeedback(GLuint id)
3083
3084 Convenience function that calls glIsTransformFeedback(\a id).
3085
3086 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3087 with plain OpenGL, the function is only usable when the given profile and version contains the
3088 function either in core or as an extension.
3089
3090 For more information, see the OpenGL ES 3.x documentation for
3091 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glIsTransformFeedback.xhtml}{glIsTransformFeedback()}.
3092*/
3093
3094/*!
3095 \fn GLboolean QOpenGLExtraFunctions::glIsVertexArray(GLuint array)
3096
3097 Convenience function that calls glIsVertexArray(\a array).
3098
3099 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3100 with plain OpenGL, the function is only usable when the given profile and version contains the
3101 function either in core or as an extension.
3102
3103 For more information, see the OpenGL ES 3.x documentation for
3104 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glIsVertexArray.xhtml}{glIsVertexArray()}.
3105*/
3106
3107/*!
3108 \fn void * QOpenGLExtraFunctions::glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access)
3109
3110 Convenience function that calls glMapBufferRange(\a target, \a offset, \a length, \a access).
3111
3112 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3113 with plain OpenGL, the function is only usable when the given profile and version contains the
3114 function either in core or as an extension.
3115
3116 For more information, see the OpenGL ES 3.x documentation for
3117 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glMapBufferRange.xhtml}{glMapBufferRange()}.
3118*/
3119
3120/*!
3121 \fn void QOpenGLExtraFunctions::glPauseTransformFeedback()
3122
3123 Convenience function that calls glPauseTransformFeedback().
3124
3125 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3126 with plain OpenGL, the function is only usable when the given profile and version contains the
3127 function either in core or as an extension.
3128
3129 For more information, see the OpenGL ES 3.x documentation for
3130 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glPauseTransformFeedback.xhtml}{glPauseTransformFeedback()}.
3131*/
3132
3133/*!
3134 \fn void QOpenGLExtraFunctions::glProgramBinary(GLuint program, GLenum binaryFormat, const void * binary, GLsizei length)
3135
3136 Convenience function that calls glProgramBinary(\a program, \a binaryFormat, \a binary, \a length).
3137
3138 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3139 with plain OpenGL, the function is only usable when the given profile and version contains the
3140 function either in core or as an extension.
3141
3142 For more information, see the OpenGL ES 3.x documentation for
3143 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramBinary.xhtml}{glProgramBinary()}.
3144*/
3145
3146/*!
3147 \fn void QOpenGLExtraFunctions::glProgramParameteri(GLuint program, GLenum pname, GLint value)
3148
3149 Convenience function that calls glProgramParameteri(\a program, \a pname, \a value).
3150
3151 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3152 with plain OpenGL, the function is only usable when the given profile and version contains the
3153 function either in core or as an extension.
3154
3155 For more information, see the OpenGL ES 3.x documentation for
3156 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramParameteri.xhtml}{glProgramParameteri()}.
3157*/
3158
3159/*!
3160 \fn void QOpenGLExtraFunctions::glReadBuffer(GLenum src)
3161
3162 Convenience function that calls glReadBuffer(\a src).
3163
3164 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3165 with plain OpenGL, the function is only usable when the given profile and version contains the
3166 function either in core or as an extension.
3167
3168 For more information, see the OpenGL ES 3.x documentation for
3169 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glReadBuffer.xhtml}{glReadBuffer()}.
3170*/
3171
3172/*!
3173 \fn void QOpenGLExtraFunctions::glRenderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height)
3174
3175 Convenience function that calls glRenderbufferStorageMultisample(\a target, \a samples, \a internalformat, \a width, \a height).
3176
3177 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3178 with plain OpenGL, the function is only usable when the given profile and version contains the
3179 function either in core or as an extension.
3180
3181 For more information, see the OpenGL ES 3.x documentation for
3182 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glRenderbufferStorageMultisample.xhtml}{glRenderbufferStorageMultisample()}.
3183*/
3184
3185/*!
3186 \fn void QOpenGLExtraFunctions::glResumeTransformFeedback()
3187
3188 Convenience function that calls glResumeTransformFeedback().
3189
3190 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3191 with plain OpenGL, the function is only usable when the given profile and version contains the
3192 function either in core or as an extension.
3193
3194 For more information, see the OpenGL ES 3.x documentation for
3195 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glResumeTransformFeedback.xhtml}{glResumeTransformFeedback()}.
3196*/
3197
3198/*!
3199 \fn void QOpenGLExtraFunctions::glSamplerParameterf(GLuint sampler, GLenum pname, GLfloat param)
3200
3201 Convenience function that calls glSamplerParameterf(\a sampler, \a pname, \a param).
3202
3203 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3204 with plain OpenGL, the function is only usable when the given profile and version contains the
3205 function either in core or as an extension.
3206
3207 For more information, see the OpenGL ES 3.x documentation for
3208 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glSamplerParameter.xhtml}{glSamplerParameterf()}.
3209*/
3210
3211/*!
3212 \fn void QOpenGLExtraFunctions::glSamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat * param)
3213
3214 Convenience function that calls glSamplerParameterfv(\a sampler, \a pname, \a param).
3215
3216 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3217 with plain OpenGL, the function is only usable when the given profile and version contains the
3218 function either in core or as an extension.
3219
3220 For more information, see the OpenGL ES 3.x documentation for
3221 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glSamplerParameter.xhtml}{glSamplerParameterfv()}.
3222*/
3223
3224/*!
3225 \fn void QOpenGLExtraFunctions::glSamplerParameteri(GLuint sampler, GLenum pname, GLint param)
3226
3227 Convenience function that calls glSamplerParameteri(\a sampler, \a pname, \a param).
3228
3229 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3230 with plain OpenGL, the function is only usable when the given profile and version contains the
3231 function either in core or as an extension.
3232
3233 For more information, see the OpenGL ES 3.x documentation for
3234 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glSamplerParameter.xhtml}{glSamplerParameteri()}.
3235*/
3236
3237/*!
3238 \fn void QOpenGLExtraFunctions::glSamplerParameteriv(GLuint sampler, GLenum pname, const GLint * param)
3239
3240 Convenience function that calls glSamplerParameteriv(\a sampler, \a pname, \a param).
3241
3242 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3243 with plain OpenGL, the function is only usable when the given profile and version contains the
3244 function either in core or as an extension.
3245
3246 For more information, see the OpenGL ES 3.x documentation for
3247 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glSamplerParameter.xhtml}{glSamplerParameteriv()}.
3248*/
3249
3250/*!
3251 \fn void QOpenGLExtraFunctions::glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void * pixels)
3252
3253 Convenience function that calls glTexImage3D(\a target, \a level, \a internalformat, \a width, \a height, \a depth, \a border, \a format, \a type, \a pixels).
3254
3255 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3256 with plain OpenGL, the function is only usable when the given profile and version contains the
3257 function either in core or as an extension.
3258
3259 For more information, see the OpenGL ES 3.x documentation for
3260 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glTexImage3D.xhtml}{glTexImage3D()}.
3261*/
3262
3263/*!
3264 \fn void QOpenGLExtraFunctions::glTexStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height)
3265
3266 Convenience function that calls glTexStorage2D(\a target, \a levels, \a internalformat, \a width, \a height).
3267
3268 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3269 with plain OpenGL, the function is only usable when the given profile and version contains the
3270 function either in core or as an extension.
3271
3272 For more information, see the OpenGL ES 3.x documentation for
3273 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glTexStorage2D.xhtml}{glTexStorage2D()}.
3274*/
3275
3276/*!
3277 \fn void QOpenGLExtraFunctions::glTexStorage3D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth)
3278
3279 Convenience function that calls glTexStorage3D(\a target, \a levels, \a internalformat, \a width, \a height, \a depth).
3280
3281 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3282 with plain OpenGL, the function is only usable when the given profile and version contains the
3283 function either in core or as an extension.
3284
3285 For more information, see the OpenGL ES 3.x documentation for
3286 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glTexStorage3D.xhtml}{glTexStorage3D()}.
3287*/
3288
3289/*!
3290 \fn void QOpenGLExtraFunctions::glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * pixels)
3291
3292 Convenience function that calls glTexSubImage3D(\a target, \a level, \a xoffset, \a yoffset, \a zoffset, \a width, \a height, \a depth, \a format, \a type, \a pixels).
3293
3294 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3295 with plain OpenGL, the function is only usable when the given profile and version contains the
3296 function either in core or as an extension.
3297
3298 For more information, see the OpenGL ES 3.x documentation for
3299 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glTexSubImage3D.xhtml}{glTexSubImage3D()}.
3300*/
3301
3302/*!
3303 \fn void QOpenGLExtraFunctions::glTransformFeedbackVaryings(GLuint program, GLsizei count, const GLchar *const* varyings, GLenum bufferMode)
3304
3305 Convenience function that calls glTransformFeedbackVaryings(\a program, \a count, \a varyings, \a bufferMode).
3306
3307 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3308 with plain OpenGL, the function is only usable when the given profile and version contains the
3309 function either in core or as an extension.
3310
3311 For more information, see the OpenGL ES 3.x documentation for
3312 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glTransformFeedbackVaryings.xhtml}{glTransformFeedbackVaryings()}.
3313*/
3314
3315/*!
3316 \fn void QOpenGLExtraFunctions::glUniform1ui(GLint location, GLuint v0)
3317
3318 Convenience function that calls glUniform1ui(\a location, \a v0).
3319
3320 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3321 with plain OpenGL, the function is only usable when the given profile and version contains the
3322 function either in core or as an extension.
3323
3324 For more information, see the OpenGL ES 3.x documentation for
3325 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform1ui()}.
3326*/
3327
3328/*!
3329 \fn void QOpenGLExtraFunctions::glUniform1uiv(GLint location, GLsizei count, const GLuint * value)
3330
3331 Convenience function that calls glUniform1uiv(\a location, \a count, \a value).
3332
3333 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3334 with plain OpenGL, the function is only usable when the given profile and version contains the
3335 function either in core or as an extension.
3336
3337 For more information, see the OpenGL ES 3.x documentation for
3338 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform1uiv()}.
3339*/
3340
3341/*!
3342 \fn void QOpenGLExtraFunctions::glUniform2ui(GLint location, GLuint v0, GLuint v1)
3343
3344 Convenience function that calls glUniform2ui(\a location, \a v0, \a v1).
3345
3346 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3347 with plain OpenGL, the function is only usable when the given profile and version contains the
3348 function either in core or as an extension.
3349
3350 For more information, see the OpenGL ES 3.x documentation for
3351 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform2ui()}.
3352*/
3353
3354/*!
3355 \fn void QOpenGLExtraFunctions::glUniform2uiv(GLint location, GLsizei count, const GLuint * value)
3356
3357 Convenience function that calls glUniform2uiv(\a location, \a count, \a value).
3358
3359 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3360 with plain OpenGL, the function is only usable when the given profile and version contains the
3361 function either in core or as an extension.
3362
3363 For more information, see the OpenGL ES 3.x documentation for
3364 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform2uiv()}.
3365*/
3366
3367/*!
3368 \fn void QOpenGLExtraFunctions::glUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2)
3369
3370 Convenience function that calls glUniform3ui(\a location, \a v0, \a v1, \a v2).
3371
3372 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3373 with plain OpenGL, the function is only usable when the given profile and version contains the
3374 function either in core or as an extension.
3375
3376 For more information, see the OpenGL ES 3.x documentation for
3377 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform3ui()}.
3378*/
3379
3380/*!
3381 \fn void QOpenGLExtraFunctions::glUniform3uiv(GLint location, GLsizei count, const GLuint * value)
3382
3383 Convenience function that calls glUniform3uiv(\a location, \a count, \a value).
3384
3385 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3386 with plain OpenGL, the function is only usable when the given profile and version contains the
3387 function either in core or as an extension.
3388
3389 For more information, see the OpenGL ES 3.x documentation for
3390 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform3uiv()}.
3391*/
3392
3393/*!
3394 \fn void QOpenGLExtraFunctions::glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3)
3395
3396 Convenience function that calls glUniform4ui(\a location, \a v0, \a v1, \a v2, \a v3).
3397
3398 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3399 with plain OpenGL, the function is only usable when the given profile and version contains the
3400 function either in core or as an extension.
3401
3402 For more information, see the OpenGL ES 3.x documentation for
3403 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform4ui()}.
3404*/
3405
3406/*!
3407 \fn void QOpenGLExtraFunctions::glUniform4uiv(GLint location, GLsizei count, const GLuint * value)
3408
3409 Convenience function that calls glUniform4uiv(\a location, \a count, \a value).
3410
3411 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3412 with plain OpenGL, the function is only usable when the given profile and version contains the
3413 function either in core or as an extension.
3414
3415 For more information, see the OpenGL ES 3.x documentation for
3416 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform4uiv()}.
3417*/
3418
3419/*!
3420 \fn void QOpenGLExtraFunctions::glUniformBlockBinding(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding)
3421
3422 Convenience function that calls glUniformBlockBinding(\a program, \a uniformBlockIndex, \a uniformBlockBinding).
3423
3424 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3425 with plain OpenGL, the function is only usable when the given profile and version contains the
3426 function either in core or as an extension.
3427
3428 For more information, see the OpenGL ES 3.x documentation for
3429 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniformBlockBinding.xhtml}{glUniformBlockBinding()}.
3430*/
3431
3432/*!
3433 \fn void QOpenGLExtraFunctions::glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
3434
3435 Convenience function that calls glUniformMatrix2x3fv(\a location, \a count, \a transpose, \a value).
3436
3437 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3438 with plain OpenGL, the function is only usable when the given profile and version contains the
3439 function either in core or as an extension.
3440
3441 For more information, see the OpenGL ES 3.x documentation for
3442 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniformMatrix2x3fv()}.
3443*/
3444
3445/*!
3446 \fn void QOpenGLExtraFunctions::glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
3447
3448 Convenience function that calls glUniformMatrix2x4fv(\a location, \a count, \a transpose, \a value).
3449
3450 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3451 with plain OpenGL, the function is only usable when the given profile and version contains the
3452 function either in core or as an extension.
3453
3454 For more information, see the OpenGL ES 3.x documentation for
3455 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniformMatrix2x4fv()}.
3456*/
3457
3458/*!
3459 \fn void QOpenGLExtraFunctions::glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
3460
3461 Convenience function that calls glUniformMatrix3x2fv(\a location, \a count, \a transpose, \a value).
3462
3463 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3464 with plain OpenGL, the function is only usable when the given profile and version contains the
3465 function either in core or as an extension.
3466
3467 For more information, see the OpenGL ES 3.x documentation for
3468 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniformMatrix3x2fv()}.
3469*/
3470
3471/*!
3472 \fn void QOpenGLExtraFunctions::glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
3473
3474 Convenience function that calls glUniformMatrix3x4fv(\a location, \a count, \a transpose, \a value).
3475
3476 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3477 with plain OpenGL, the function is only usable when the given profile and version contains the
3478 function either in core or as an extension.
3479
3480 For more information, see the OpenGL ES 3.x documentation for
3481 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniformMatrix3x4fv()}.
3482*/
3483
3484/*!
3485 \fn void QOpenGLExtraFunctions::glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
3486
3487 Convenience function that calls glUniformMatrix4x2fv(\a location, \a count, \a transpose, \a value).
3488
3489 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3490 with plain OpenGL, the function is only usable when the given profile and version contains the
3491 function either in core or as an extension.
3492
3493 For more information, see the OpenGL ES 3.x documentation for
3494 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniformMatrix4x2fv()}.
3495*/
3496
3497/*!
3498 \fn void QOpenGLExtraFunctions::glUniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
3499
3500 Convenience function that calls glUniformMatrix4x3fv(\a location, \a count, \a transpose, \a value).
3501
3502 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3503 with plain OpenGL, the function is only usable when the given profile and version contains the
3504 function either in core or as an extension.
3505
3506 For more information, see the OpenGL ES 3.x documentation for
3507 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniformMatrix4x3fv()}.
3508*/
3509
3510/*!
3511 \fn GLboolean QOpenGLExtraFunctions::glUnmapBuffer(GLenum target)
3512
3513 Convenience function that calls glUnmapBuffer(\a target).
3514
3515 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3516 with plain OpenGL, the function is only usable when the given profile and version contains the
3517 function either in core or as an extension.
3518
3519 For more information, see the OpenGL ES 3.x documentation for
3520 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glMapBufferRange.xhtml}{glUnmapBuffer()}.
3521*/
3522
3523/*!
3524 \fn void QOpenGLExtraFunctions::glVertexAttribDivisor(GLuint index, GLuint divisor)
3525
3526 Convenience function that calls glVertexAttribDivisor(\a index, \a divisor).
3527
3528 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3529 with plain OpenGL, the function is only usable when the given profile and version contains the
3530 function either in core or as an extension.
3531
3532 For more information, see the OpenGL ES 3.x documentation for
3533 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glVertexAttribDivisor.xhtml}{glVertexAttribDivisor()}.
3534*/
3535
3536/*!
3537 \fn void QOpenGLExtraFunctions::glVertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint w)
3538
3539 Convenience function that calls glVertexAttribI4i(\a index, \a x, \a y, \a z, \a w).
3540
3541 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3542 with plain OpenGL, the function is only usable when the given profile and version contains the
3543 function either in core or as an extension.
3544
3545 For more information, see the OpenGL ES 3.x documentation for
3546 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttribI4i()}.
3547*/
3548
3549/*!
3550 \fn void QOpenGLExtraFunctions::glVertexAttribI4iv(GLuint index, const GLint * v)
3551
3552 Convenience function that calls glVertexAttribI4iv(\a index, \a v).
3553
3554 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3555 with plain OpenGL, the function is only usable when the given profile and version contains the
3556 function either in core or as an extension.
3557
3558 For more information, see the OpenGL ES 3.x documentation for
3559 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttribI4iv()}.
3560*/
3561
3562/*!
3563 \fn void QOpenGLExtraFunctions::glVertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w)
3564
3565 Convenience function that calls glVertexAttribI4ui(\a index, \a x, \a y, \a z, \a w).
3566
3567 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3568 with plain OpenGL, the function is only usable when the given profile and version contains the
3569 function either in core or as an extension.
3570
3571 For more information, see the OpenGL ES 3.x documentation for
3572 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttribI4ui()}.
3573*/
3574
3575/*!
3576 \fn void QOpenGLExtraFunctions::glVertexAttribI4uiv(GLuint index, const GLuint * v)
3577
3578 Convenience function that calls glVertexAttribI4uiv(\a index, \a v).
3579
3580 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3581 with plain OpenGL, the function is only usable when the given profile and version contains the
3582 function either in core or as an extension.
3583
3584 For more information, see the OpenGL ES 3.x documentation for
3585 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttribI4uiv()}.
3586*/
3587
3588/*!
3589 \fn void QOpenGLExtraFunctions::glVertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const void * pointer)
3590
3591 Convenience function that calls glVertexAttribIPointer(\a index, \a size, \a type, \a stride, \a pointer).
3592
3593 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3594 with plain OpenGL, the function is only usable when the given profile and version contains the
3595 function either in core or as an extension.
3596
3597 For more information, see the OpenGL ES 3.x documentation for
3598 \l{https://registry.khronos.org/OpenGL-Refpages/gl4/html/glVertexAttribPointer.xhtml}{glVertexAttribIPointer()}.
3599*/
3600
3601/*!
3602 \fn void QOpenGLExtraFunctions::glWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
3603
3604 Convenience function that calls glWaitSync(\a sync, \a flags, \a timeout).
3605
3606 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3607 with plain OpenGL, the function is only usable when the given profile and version contains the
3608 function either in core or as an extension.
3609
3610 For more information, see the OpenGL ES 3.x documentation for
3611 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glWaitSync.xhtml}{glWaitSync()}.
3612*/
3613
3614/*!
3615 \fn void QOpenGLExtraFunctions::glActiveShaderProgram(GLuint pipeline, GLuint program)
3616
3617 Convenience function that calls glActiveShaderProgram(\a pipeline, \a program).
3618
3619 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3620 with plain OpenGL, the function is only usable when the given profile and version contains the
3621 function either in core or as an extension.
3622
3623 For more information, see the OpenGL ES 3.x documentation for
3624 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glActiveShaderProgram.xhtml}{glActiveShaderProgram()}.
3625*/
3626
3627/*!
3628 \fn void QOpenGLExtraFunctions::glBindImageTexture(GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format)
3629
3630 Convenience function that calls glBindImageTexture(\a unit, \a texture, \a level, \a layered, \a layer, \a access, \a format).
3631
3632 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3633 with plain OpenGL, the function is only usable when the given profile and version contains the
3634 function either in core or as an extension.
3635
3636 For more information, see the OpenGL ES 3.x documentation for
3637 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBindImageTexture.xhtml}{glBindImageTexture()}.
3638*/
3639
3640/*!
3641 \fn void QOpenGLExtraFunctions::glBindProgramPipeline(GLuint pipeline)
3642
3643 Convenience function that calls glBindProgramPipeline(\a pipeline).
3644
3645 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3646 with plain OpenGL, the function is only usable when the given profile and version contains the
3647 function either in core or as an extension.
3648
3649 For more information, see the OpenGL ES 3.x documentation for
3650 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBindProgramPipeline.xhtml}{glBindProgramPipeline()}.
3651*/
3652
3653/*!
3654 \fn void QOpenGLExtraFunctions::glBindVertexBuffer(GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride)
3655
3656 Convenience function that calls glBindVertexBuffer(\a bindingindex, \a buffer, \a offset, \a stride).
3657
3658 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3659 with plain OpenGL, the function is only usable when the given profile and version contains the
3660 function either in core or as an extension.
3661
3662 For more information, see the OpenGL ES 3.x documentation for
3663 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBindVertexBuffer.xhtml}{glBindVertexBuffer()}.
3664*/
3665
3666/*!
3667 \fn GLuint QOpenGLExtraFunctions::glCreateShaderProgramv(GLenum type, GLsizei count, const GLchar *const* strings)
3668
3669 Convenience function that calls glCreateShaderProgramv(\a type, \a count, \a strings).
3670
3671 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3672 with plain OpenGL, the function is only usable when the given profile and version contains the
3673 function either in core or as an extension.
3674
3675 For more information, see the OpenGL ES 3.x documentation for
3676 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glCreateShaderProgram.xhtml}{glCreateShaderProgramv()}.
3677*/
3678
3679/*!
3680 \fn void QOpenGLExtraFunctions::glDeleteProgramPipelines(GLsizei n, const GLuint * pipelines)
3681
3682 Convenience function that calls glDeleteProgramPipelines(\a n, \a pipelines).
3683
3684 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3685 with plain OpenGL, the function is only usable when the given profile and version contains the
3686 function either in core or as an extension.
3687
3688 For more information, see the OpenGL ES 3.x documentation for
3689 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDeleteProgramPipelines.xhtml}{glDeleteProgramPipelines()}.
3690*/
3691
3692/*!
3693 \fn void QOpenGLExtraFunctions::glDispatchCompute(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z)
3694
3695 Convenience function that calls glDispatchCompute(\a num_groups_x, \a num_groups_y, \a num_groups_z).
3696
3697 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3698 with plain OpenGL, the function is only usable when the given profile and version contains the
3699 function either in core or as an extension.
3700
3701 For more information, see the OpenGL ES 3.x documentation for
3702 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDispatchCompute.xhtml}{glDispatchCompute()}.
3703*/
3704
3705/*!
3706 \fn void QOpenGLExtraFunctions::glDispatchComputeIndirect(GLintptr indirect)
3707
3708 Convenience function that calls glDispatchComputeIndirect(\a indirect).
3709
3710 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3711 with plain OpenGL, the function is only usable when the given profile and version contains the
3712 function either in core or as an extension.
3713
3714 For more information, see the OpenGL ES 3.x documentation for
3715 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDispatchComputeIndirect.xhtml}{glDispatchComputeIndirect()}.
3716*/
3717
3718/*!
3719 \fn void QOpenGLExtraFunctions::glDrawArraysIndirect(GLenum mode, const void * indirect)
3720
3721 Convenience function that calls glDrawArraysIndirect(\a mode, \a indirect).
3722
3723 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3724 with plain OpenGL, the function is only usable when the given profile and version contains the
3725 function either in core or as an extension.
3726
3727 For more information, see the OpenGL ES 3.x documentation for
3728 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDrawArraysIndirect.xhtml}{glDrawArraysIndirect()}.
3729*/
3730
3731/*!
3732 \fn void QOpenGLExtraFunctions::glDrawElementsIndirect(GLenum mode, GLenum type, const void * indirect)
3733
3734 Convenience function that calls glDrawElementsIndirect(\a mode, \a type, \a indirect).
3735
3736 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3737 with plain OpenGL, the function is only usable when the given profile and version contains the
3738 function either in core or as an extension.
3739
3740 For more information, see the OpenGL ES 3.x documentation for
3741 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDrawElementsIndirect.xhtml}{glDrawElementsIndirect()}.
3742*/
3743
3744/*!
3745 \fn void QOpenGLExtraFunctions::glFramebufferParameteri(GLenum target, GLenum pname, GLint param)
3746
3747 Convenience function that calls glFramebufferParameteri(\a target, \a pname, \a param).
3748
3749 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3750 with plain OpenGL, the function is only usable when the given profile and version contains the
3751 function either in core or as an extension.
3752
3753 For more information, see the OpenGL ES 3.x documentation for
3754 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glFramebufferParameteri.xhtml}{glFramebufferParameteri()}.
3755*/
3756
3757/*!
3758 \fn void QOpenGLExtraFunctions::glGenProgramPipelines(GLsizei n, GLuint* pipelines)
3759
3760 Convenience function that calls glGenProgramPipelines(\a n, \a pipelines).
3761
3762 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3763 with plain OpenGL, the function is only usable when the given profile and version contains the
3764 function either in core or as an extension.
3765
3766 For more information, see the OpenGL ES 3.x documentation for
3767 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGenProgramPipelines.xhtml}{glGenProgramPipelines()}.
3768*/
3769
3770/*!
3771 \fn void QOpenGLExtraFunctions::glGetBooleani_v(GLenum target, GLuint index, GLboolean* data)
3772
3773 Convenience function that calls glGetBooleani_v(\a target, \a index, \a data).
3774
3775 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3776 with plain OpenGL, the function is only usable when the given profile and version contains the
3777 function either in core or as an extension.
3778
3779 For more information, see the OpenGL ES 3.x documentation for
3780 \l{https://registry.khronos.org/OpenGL-Refpages/gl4/html/glGet.xhtml}{glGetBooleani_v()}.
3781*/
3782
3783/*!
3784 \fn void QOpenGLExtraFunctions::glGetFramebufferParameteriv(GLenum target, GLenum pname, GLint* params)
3785
3786 Convenience function that calls glGetFramebufferParameteriv(\a target, \a pname, \a params).
3787
3788 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3789 with plain OpenGL, the function is only usable when the given profile and version contains the
3790 function either in core or as an extension.
3791
3792 For more information, see the OpenGL ES 3.x documentation for
3793 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetFramebufferParameteriv.xhtml}{glGetFramebufferParameteriv()}.
3794*/
3795
3796/*!
3797 \fn void QOpenGLExtraFunctions::glGetMultisamplefv(GLenum pname, GLuint index, GLfloat* val)
3798
3799 Convenience function that calls glGetMultisamplefv(\a pname, \a index, \a val).
3800
3801 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3802 with plain OpenGL, the function is only usable when the given profile and version contains the
3803 function either in core or as an extension.
3804
3805 For more information, see the OpenGL ES 3.x documentation for
3806 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetMultisamplefv.xhtml}{glGetMultisamplefv()}.
3807*/
3808
3809/*!
3810 \fn void QOpenGLExtraFunctions::glGetProgramInterfaceiv(GLuint program, GLenum programInterface, GLenum pname, GLint* params)
3811
3812 Convenience function that calls glGetProgramInterfaceiv(\a program, \a programInterface, \a pname, \a params).
3813
3814 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3815 with plain OpenGL, the function is only usable when the given profile and version contains the
3816 function either in core or as an extension.
3817
3818 For more information, see the OpenGL ES 3.x documentation for
3819 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetProgramInterface.xhtml}{glGetProgramInterfaceiv()}.
3820*/
3821
3822/*!
3823 \fn void QOpenGLExtraFunctions::glGetProgramPipelineInfoLog(GLuint pipeline, GLsizei bufSize, GLsizei* length, GLchar* infoLog)
3824
3825 Convenience function that calls glGetProgramPipelineInfoLog(\a pipeline, \a bufSize, \a length, \a infoLog).
3826
3827 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3828 with plain OpenGL, the function is only usable when the given profile and version contains the
3829 function either in core or as an extension.
3830
3831 For more information, see the OpenGL ES 3.x documentation for
3832 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetProgramPipelineInfoLog.xhtml}{glGetProgramPipelineInfoLog()}.
3833*/
3834
3835/*!
3836 \fn void QOpenGLExtraFunctions::glGetProgramPipelineiv(GLuint pipeline, GLenum pname, GLint* params)
3837
3838 Convenience function that calls glGetProgramPipelineiv(\a pipeline, \a pname, \a params).
3839
3840 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3841 with plain OpenGL, the function is only usable when the given profile and version contains the
3842 function either in core or as an extension.
3843
3844 For more information, see the OpenGL ES 3.x documentation for
3845 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetProgramPipeline.xhtml}{glGetProgramPipelineiv()}.
3846*/
3847
3848/*!
3849 \fn GLuint QOpenGLExtraFunctions::glGetProgramResourceIndex(GLuint program, GLenum programInterface, const GLchar * name)
3850
3851 Convenience function that calls glGetProgramResourceIndex(\a program, \a programInterface, \a name).
3852
3853 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3854 with plain OpenGL, the function is only usable when the given profile and version contains the
3855 function either in core or as an extension.
3856
3857 For more information, see the OpenGL ES 3.x documentation for
3858 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetProgramResourceIndex.xhtml}{glGetProgramResourceIndex()}.
3859*/
3860
3861/*!
3862 \fn GLint QOpenGLExtraFunctions::glGetProgramResourceLocation(GLuint program, GLenum programInterface, const GLchar * name)
3863
3864 Convenience function that calls glGetProgramResourceLocation(\a program, \a programInterface, \a name).
3865
3866 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3867 with plain OpenGL, the function is only usable when the given profile and version contains the
3868 function either in core or as an extension.
3869
3870 For more information, see the OpenGL ES 3.x documentation for
3871 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetProgramResourceLocation.xhtml}{glGetProgramResourceLocation()}.
3872*/
3873
3874/*!
3875 \fn void QOpenGLExtraFunctions::glGetProgramResourceName(GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei* length, GLchar* name)
3876
3877 Convenience function that calls glGetProgramResourceName(\a program, \a programInterface, \a index, \a bufSize, \a length, \a name).
3878
3879 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3880 with plain OpenGL, the function is only usable when the given profile and version contains the
3881 function either in core or as an extension.
3882
3883 For more information, see the OpenGL ES 3.x documentation for
3884 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetProgramResourceName.xhtml}{glGetProgramResourceName()}.
3885*/
3886
3887/*!
3888 \fn void QOpenGLExtraFunctions::glGetProgramResourceiv(GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum * props, GLsizei bufSize, GLsizei* length, GLint* params)
3889
3890 Convenience function that calls glGetProgramResourceiv(\a program, \a programInterface, \a index, \a propCount, \a props, \a bufSize, \a length, \a params).
3891
3892 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3893 with plain OpenGL, the function is only usable when the given profile and version contains the
3894 function either in core or as an extension.
3895
3896 For more information, see the OpenGL ES 3.x documentation for
3897 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetProgramResource.xhtml}{glGetProgramResourceiv()}.
3898*/
3899
3900/*!
3901 \fn void QOpenGLExtraFunctions::glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat* params)
3902
3903 Convenience function that calls glGetTexLevelParameterfv(\a target, \a level, \a pname, \a params).
3904
3905 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3906 with plain OpenGL, the function is only usable when the given profile and version contains the
3907 function either in core or as an extension.
3908
3909 For more information, see the OpenGL ES 3.x documentation for
3910 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetTexLevelParameter.xhtml}{glGetTexLevelParameterfv()}.
3911*/
3912
3913/*!
3914 \fn void QOpenGLExtraFunctions::glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint* params)
3915
3916 Convenience function that calls glGetTexLevelParameteriv(\a target, \a level, \a pname, \a params).
3917
3918 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3919 with plain OpenGL, the function is only usable when the given profile and version contains the
3920 function either in core or as an extension.
3921
3922 For more information, see the OpenGL ES 3.x documentation for
3923 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetTexLevelParameter.xhtml}{glGetTexLevelParameteriv()}.
3924*/
3925
3926/*!
3927 \fn GLboolean QOpenGLExtraFunctions::glIsProgramPipeline(GLuint pipeline)
3928
3929 Convenience function that calls glIsProgramPipeline(\a pipeline).
3930
3931 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3932 with plain OpenGL, the function is only usable when the given profile and version contains the
3933 function either in core or as an extension.
3934
3935 For more information, see the OpenGL ES 3.x documentation for
3936 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glIsProgramPipeline.xhtml}{glIsProgramPipeline()}.
3937*/
3938
3939/*!
3940 \fn void QOpenGLExtraFunctions::glMemoryBarrier(GLbitfield barriers)
3941
3942 Convenience function that calls glMemoryBarrier(\a barriers).
3943
3944 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3945 with plain OpenGL, the function is only usable when the given profile and version contains the
3946 function either in core or as an extension.
3947
3948 For more information, see the OpenGL ES 3.x documentation for
3949 \l{https://registry.khronos.org/OpenGL-Refpages/es3.1/html/glMemoryBarrier.xhtml}{glMemoryBarrier()}.
3950*/
3951
3952/*!
3953 \fn void QOpenGLExtraFunctions::glMemoryBarrierByRegion(GLbitfield barriers)
3954
3955 Convenience function that calls glMemoryBarrierByRegion(\a barriers).
3956
3957 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3958 with plain OpenGL, the function is only usable when the given profile and version contains the
3959 function either in core or as an extension.
3960
3961 For more information, see the OpenGL ES 3.x documentation for
3962 \l{https://registry.khronos.org/OpenGL-Refpages/es3.1/html/glMemoryBarrier.xhtml}{glMemoryBarrierByRegion()}.
3963*/
3964
3965/*!
3966 \fn void QOpenGLExtraFunctions::glProgramUniform1f(GLuint program, GLint location, GLfloat v0)
3967
3968 Convenience function that calls glProgramUniform1f(\a program, \a location, \a v0).
3969
3970 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3971 with plain OpenGL, the function is only usable when the given profile and version contains the
3972 function either in core or as an extension.
3973
3974 For more information, see the OpenGL ES 3.x documentation for
3975 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform1f()}.
3976*/
3977
3978/*!
3979 \fn void QOpenGLExtraFunctions::glProgramUniform1fv(GLuint program, GLint location, GLsizei count, const GLfloat * value)
3980
3981 Convenience function that calls glProgramUniform1fv(\a program, \a location, \a count, \a value).
3982
3983 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3984 with plain OpenGL, the function is only usable when the given profile and version contains the
3985 function either in core or as an extension.
3986
3987 For more information, see the OpenGL ES 3.x documentation for
3988 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform1fv()}.
3989*/
3990
3991/*!
3992 \fn void QOpenGLExtraFunctions::glProgramUniform1i(GLuint program, GLint location, GLint v0)
3993
3994 Convenience function that calls glProgramUniform1i(\a program, \a location, \a v0).
3995
3996 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
3997 with plain OpenGL, the function is only usable when the given profile and version contains the
3998 function either in core or as an extension.
3999
4000 For more information, see the OpenGL ES 3.x documentation for
4001 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform1i()}.
4002*/
4003
4004/*!
4005 \fn void QOpenGLExtraFunctions::glProgramUniform1iv(GLuint program, GLint location, GLsizei count, const GLint * value)
4006
4007 Convenience function that calls glProgramUniform1iv(\a program, \a location, \a count, \a value).
4008
4009 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4010 with plain OpenGL, the function is only usable when the given profile and version contains the
4011 function either in core or as an extension.
4012
4013 For more information, see the OpenGL ES 3.x documentation for
4014 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform1iv()}.
4015*/
4016
4017/*!
4018 \fn void QOpenGLExtraFunctions::glProgramUniform1ui(GLuint program, GLint location, GLuint v0)
4019
4020 Convenience function that calls glProgramUniform1ui(\a program, \a location, \a v0).
4021
4022 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4023 with plain OpenGL, the function is only usable when the given profile and version contains the
4024 function either in core or as an extension.
4025
4026 For more information, see the OpenGL ES 3.x documentation for
4027 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform1ui()}.
4028*/
4029
4030/*!
4031 \fn void QOpenGLExtraFunctions::glProgramUniform1uiv(GLuint program, GLint location, GLsizei count, const GLuint * value)
4032
4033 Convenience function that calls glProgramUniform1uiv(\a program, \a location, \a count, \a value).
4034
4035 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4036 with plain OpenGL, the function is only usable when the given profile and version contains the
4037 function either in core or as an extension.
4038
4039 For more information, see the OpenGL ES 3.x documentation for
4040 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform1uiv()}.
4041*/
4042
4043/*!
4044 \fn void QOpenGLExtraFunctions::glProgramUniform2f(GLuint program, GLint location, GLfloat v0, GLfloat v1)
4045
4046 Convenience function that calls glProgramUniform2f(\a program, \a location, \a v0, \a v1).
4047
4048 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4049 with plain OpenGL, the function is only usable when the given profile and version contains the
4050 function either in core or as an extension.
4051
4052 For more information, see the OpenGL ES 3.x documentation for
4053 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform2f()}.
4054*/
4055
4056/*!
4057 \fn void QOpenGLExtraFunctions::glProgramUniform2fv(GLuint program, GLint location, GLsizei count, const GLfloat * value)
4058
4059 Convenience function that calls glProgramUniform2fv(\a program, \a location, \a count, \a value).
4060
4061 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4062 with plain OpenGL, the function is only usable when the given profile and version contains the
4063 function either in core or as an extension.
4064
4065 For more information, see the OpenGL ES 3.x documentation for
4066 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform2fv()}.
4067*/
4068
4069/*!
4070 \fn void QOpenGLExtraFunctions::glProgramUniform2i(GLuint program, GLint location, GLint v0, GLint v1)
4071
4072 Convenience function that calls glProgramUniform2i(\a program, \a location, \a v0, \a v1).
4073
4074 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4075 with plain OpenGL, the function is only usable when the given profile and version contains the
4076 function either in core or as an extension.
4077
4078 For more information, see the OpenGL ES 3.x documentation for
4079 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform2i()}.
4080*/
4081
4082/*!
4083 \fn void QOpenGLExtraFunctions::glProgramUniform2iv(GLuint program, GLint location, GLsizei count, const GLint * value)
4084
4085 Convenience function that calls glProgramUniform2iv(\a program, \a location, \a count, \a value).
4086
4087 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4088 with plain OpenGL, the function is only usable when the given profile and version contains the
4089 function either in core or as an extension.
4090
4091 For more information, see the OpenGL ES 3.x documentation for
4092 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform2iv()}.
4093*/
4094
4095/*!
4096 \fn void QOpenGLExtraFunctions::glProgramUniform2ui(GLuint program, GLint location, GLuint v0, GLuint v1)
4097
4098 Convenience function that calls glProgramUniform2ui(\a program, \a location, \a v0, \a v1).
4099
4100 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4101 with plain OpenGL, the function is only usable when the given profile and version contains the
4102 function either in core or as an extension.
4103
4104 For more information, see the OpenGL ES 3.x documentation for
4105 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform2ui()}.
4106*/
4107
4108/*!
4109 \fn void QOpenGLExtraFunctions::glProgramUniform2uiv(GLuint program, GLint location, GLsizei count, const GLuint * value)
4110
4111 Convenience function that calls glProgramUniform2uiv(\a program, \a location, \a count, \a value).
4112
4113 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4114 with plain OpenGL, the function is only usable when the given profile and version contains the
4115 function either in core or as an extension.
4116
4117 For more information, see the OpenGL ES 3.x documentation for
4118 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform2uiv()}.
4119*/
4120
4121/*!
4122 \fn void QOpenGLExtraFunctions::glProgramUniform3f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
4123
4124 Convenience function that calls glProgramUniform3f(\a program, \a location, \a v0, \a v1, \a v2).
4125
4126 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4127 with plain OpenGL, the function is only usable when the given profile and version contains the
4128 function either in core or as an extension.
4129
4130 For more information, see the OpenGL ES 3.x documentation for
4131 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform3f()}.
4132*/
4133
4134/*!
4135 \fn void QOpenGLExtraFunctions::glProgramUniform3fv(GLuint program, GLint location, GLsizei count, const GLfloat * value)
4136
4137 Convenience function that calls glProgramUniform3fv(\a program, \a location, \a count, \a value).
4138
4139 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4140 with plain OpenGL, the function is only usable when the given profile and version contains the
4141 function either in core or as an extension.
4142
4143 For more information, see the OpenGL ES 3.x documentation for
4144 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform3fv()}.
4145*/
4146
4147/*!
4148 \fn void QOpenGLExtraFunctions::glProgramUniform3i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2)
4149
4150 Convenience function that calls glProgramUniform3i(\a program, \a location, \a v0, \a v1, \a v2).
4151
4152 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4153 with plain OpenGL, the function is only usable when the given profile and version contains the
4154 function either in core or as an extension.
4155
4156 For more information, see the OpenGL ES 3.x documentation for
4157 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform3i()}.
4158*/
4159
4160/*!
4161 \fn void QOpenGLExtraFunctions::glProgramUniform3iv(GLuint program, GLint location, GLsizei count, const GLint * value)
4162
4163 Convenience function that calls glProgramUniform3iv(\a program, \a location, \a count, \a value).
4164
4165 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4166 with plain OpenGL, the function is only usable when the given profile and version contains the
4167 function either in core or as an extension.
4168
4169 For more information, see the OpenGL ES 3.x documentation for
4170 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform3iv()}.
4171*/
4172
4173/*!
4174 \fn void QOpenGLExtraFunctions::glProgramUniform3ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2)
4175
4176 Convenience function that calls glProgramUniform3ui(\a program, \a location, \a v0, \a v1, \a v2).
4177
4178 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4179 with plain OpenGL, the function is only usable when the given profile and version contains the
4180 function either in core or as an extension.
4181
4182 For more information, see the OpenGL ES 3.x documentation for
4183 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform3ui()}.
4184*/
4185
4186/*!
4187 \fn void QOpenGLExtraFunctions::glProgramUniform3uiv(GLuint program, GLint location, GLsizei count, const GLuint * value)
4188
4189 Convenience function that calls glProgramUniform3uiv(\a program, \a location, \a count, \a value).
4190
4191 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4192 with plain OpenGL, the function is only usable when the given profile and version contains the
4193 function either in core or as an extension.
4194
4195 For more information, see the OpenGL ES 3.x documentation for
4196 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform3uiv()}.
4197*/
4198
4199/*!
4200 \fn void QOpenGLExtraFunctions::glProgramUniform4f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
4201
4202 Convenience function that calls glProgramUniform4f(\a program, \a location, \a v0, \a v1, \a v2, \a v3).
4203
4204 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4205 with plain OpenGL, the function is only usable when the given profile and version contains the
4206 function either in core or as an extension.
4207
4208 For more information, see the OpenGL ES 3.x documentation for
4209 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform4f()}.
4210*/
4211
4212/*!
4213 \fn void QOpenGLExtraFunctions::glProgramUniform4fv(GLuint program, GLint location, GLsizei count, const GLfloat * value)
4214
4215 Convenience function that calls glProgramUniform4fv(\a program, \a location, \a count, \a value).
4216
4217 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4218 with plain OpenGL, the function is only usable when the given profile and version contains the
4219 function either in core or as an extension.
4220
4221 For more information, see the OpenGL ES 3.x documentation for
4222 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform4fv()}.
4223*/
4224
4225/*!
4226 \fn void QOpenGLExtraFunctions::glProgramUniform4i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3)
4227
4228 Convenience function that calls glProgramUniform4i(\a program, \a location, \a v0, \a v1, \a v2, \a v3).
4229
4230 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4231 with plain OpenGL, the function is only usable when the given profile and version contains the
4232 function either in core or as an extension.
4233
4234 For more information, see the OpenGL ES 3.x documentation for
4235 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform4i()}.
4236*/
4237
4238/*!
4239 \fn void QOpenGLExtraFunctions::glProgramUniform4iv(GLuint program, GLint location, GLsizei count, const GLint * value)
4240
4241 Convenience function that calls glProgramUniform4iv(\a program, \a location, \a count, \a value).
4242
4243 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4244 with plain OpenGL, the function is only usable when the given profile and version contains the
4245 function either in core or as an extension.
4246
4247 For more information, see the OpenGL ES 3.x documentation for
4248 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform4iv()}.
4249*/
4250
4251/*!
4252 \fn void QOpenGLExtraFunctions::glProgramUniform4ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3)
4253
4254 Convenience function that calls glProgramUniform4ui(\a program, \a location, \a v0, \a v1, \a v2, \a v3).
4255
4256 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4257 with plain OpenGL, the function is only usable when the given profile and version contains the
4258 function either in core or as an extension.
4259
4260 For more information, see the OpenGL ES 3.x documentation for
4261 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform4ui()}.
4262*/
4263
4264/*!
4265 \fn void QOpenGLExtraFunctions::glProgramUniform4uiv(GLuint program, GLint location, GLsizei count, const GLuint * value)
4266
4267 Convenience function that calls glProgramUniform4uiv(\a program, \a location, \a count, \a value).
4268
4269 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4270 with plain OpenGL, the function is only usable when the given profile and version contains the
4271 function either in core or as an extension.
4272
4273 For more information, see the OpenGL ES 3.x documentation for
4274 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniform4uiv()}.
4275*/
4276
4277/*!
4278 \fn void QOpenGLExtraFunctions::glProgramUniformMatrix2fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
4279
4280 Convenience function that calls glProgramUniformMatrix2fv(\a program, \a location, \a count, \a transpose, \a value).
4281
4282 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4283 with plain OpenGL, the function is only usable when the given profile and version contains the
4284 function either in core or as an extension.
4285
4286 For more information, see the OpenGL ES 3.x documentation for
4287 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniformMatrix2fv()}.
4288*/
4289
4290/*!
4291 \fn void QOpenGLExtraFunctions::glProgramUniformMatrix2x3fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
4292
4293 Convenience function that calls glProgramUniformMatrix2x3fv(\a program, \a location, \a count, \a transpose, \a value).
4294
4295 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4296 with plain OpenGL, the function is only usable when the given profile and version contains the
4297 function either in core or as an extension.
4298
4299 For more information, see the OpenGL ES 3.x documentation for
4300 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniformMatrix2x3fv()}.
4301*/
4302
4303/*!
4304 \fn void QOpenGLExtraFunctions::glProgramUniformMatrix2x4fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
4305
4306 Convenience function that calls glProgramUniformMatrix2x4fv(\a program, \a location, \a count, \a transpose, \a value).
4307
4308 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4309 with plain OpenGL, the function is only usable when the given profile and version contains the
4310 function either in core or as an extension.
4311
4312 For more information, see the OpenGL ES 3.x documentation for
4313 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniformMatrix2x4fv()}.
4314*/
4315
4316/*!
4317 \fn void QOpenGLExtraFunctions::glProgramUniformMatrix3fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
4318
4319 Convenience function that calls glProgramUniformMatrix3fv(\a program, \a location, \a count, \a transpose, \a value).
4320
4321 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4322 with plain OpenGL, the function is only usable when the given profile and version contains the
4323 function either in core or as an extension.
4324
4325 For more information, see the OpenGL ES 3.x documentation for
4326 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniformMatrix3fv()}.
4327*/
4328
4329/*!
4330 \fn void QOpenGLExtraFunctions::glProgramUniformMatrix3x2fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
4331
4332 Convenience function that calls glProgramUniformMatrix3x2fv(\a program, \a location, \a count, \a transpose, \a value).
4333
4334 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4335 with plain OpenGL, the function is only usable when the given profile and version contains the
4336 function either in core or as an extension.
4337
4338 For more information, see the OpenGL ES 3.x documentation for
4339 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniformMatrix3x2fv()}.
4340*/
4341
4342/*!
4343 \fn void QOpenGLExtraFunctions::glProgramUniformMatrix3x4fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
4344
4345 Convenience function that calls glProgramUniformMatrix3x4fv(\a program, \a location, \a count, \a transpose, \a value).
4346
4347 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4348 with plain OpenGL, the function is only usable when the given profile and version contains the
4349 function either in core or as an extension.
4350
4351 For more information, see the OpenGL ES 3.x documentation for
4352 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniformMatrix3x4fv()}.
4353*/
4354
4355/*!
4356 \fn void QOpenGLExtraFunctions::glProgramUniformMatrix4fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
4357
4358 Convenience function that calls glProgramUniformMatrix4fv(\a program, \a location, \a count, \a transpose, \a value).
4359
4360 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4361 with plain OpenGL, the function is only usable when the given profile and version contains the
4362 function either in core or as an extension.
4363
4364 For more information, see the OpenGL ES 3.x documentation for
4365 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniformMatrix4fv()}.
4366*/
4367
4368/*!
4369 \fn void QOpenGLExtraFunctions::glProgramUniformMatrix4x2fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
4370
4371 Convenience function that calls glProgramUniformMatrix4x2fv(\a program, \a location, \a count, \a transpose, \a value).
4372
4373 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4374 with plain OpenGL, the function is only usable when the given profile and version contains the
4375 function either in core or as an extension.
4376
4377 For more information, see the OpenGL ES 3.x documentation for
4378 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniformMatrix4x2fv()}.
4379*/
4380
4381/*!
4382 \fn void QOpenGLExtraFunctions::glProgramUniformMatrix4x3fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
4383
4384 Convenience function that calls glProgramUniformMatrix4x3fv(\a program, \a location, \a count, \a transpose, \a value).
4385
4386 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4387 with plain OpenGL, the function is only usable when the given profile and version contains the
4388 function either in core or as an extension.
4389
4390 For more information, see the OpenGL ES 3.x documentation for
4391 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glProgramUniform.xhtml}{glProgramUniformMatrix4x3fv()}.
4392*/
4393
4394/*!
4395 \fn void QOpenGLExtraFunctions::glSampleMaski(GLuint maskNumber, GLbitfield mask)
4396
4397 Convenience function that calls glSampleMaski(\a maskNumber, \a mask).
4398
4399 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4400 with plain OpenGL, the function is only usable when the given profile and version contains the
4401 function either in core or as an extension.
4402
4403 For more information, see the OpenGL ES 3.x documentation for
4404 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glSampleMaski.xhtml}{glSampleMaski()}.
4405*/
4406
4407/*!
4408 \fn void QOpenGLExtraFunctions::glTexStorage2DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations)
4409
4410 Convenience function that calls glTexStorage2DMultisample(\a target, \a samples, \a internalformat, \a width, \a height, \a fixedsamplelocations).
4411
4412 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4413 with plain OpenGL, the function is only usable when the given profile and version contains the
4414 function either in core or as an extension.
4415
4416 For more information, see the OpenGL ES 3.x documentation for
4417 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glTexStorage2DMultisample.xhtml}{glTexStorage2DMultisample()}.
4418*/
4419
4420/*!
4421 \fn void QOpenGLExtraFunctions::glUseProgramStages(GLuint pipeline, GLbitfield stages, GLuint program)
4422
4423 Convenience function that calls glUseProgramStages(\a pipeline, \a stages, \a program).
4424
4425 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4426 with plain OpenGL, the function is only usable when the given profile and version contains the
4427 function either in core or as an extension.
4428
4429 For more information, see the OpenGL ES 3.x documentation for
4430 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glUseProgramStages.xhtml}{glUseProgramStages()}.
4431*/
4432
4433/*!
4434 \fn void QOpenGLExtraFunctions::glValidateProgramPipeline(GLuint pipeline)
4435
4436 Convenience function that calls glValidateProgramPipeline(\a pipeline).
4437
4438 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4439 with plain OpenGL, the function is only usable when the given profile and version contains the
4440 function either in core or as an extension.
4441
4442 For more information, see the OpenGL ES 3.x documentation for
4443 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glValidateProgramPipeline.xhtml}{glValidateProgramPipeline()}.
4444*/
4445
4446/*!
4447 \fn void QOpenGLExtraFunctions::glVertexAttribBinding(GLuint attribindex, GLuint bindingindex)
4448
4449 Convenience function that calls glVertexAttribBinding(\a attribindex, \a bindingindex).
4450
4451 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4452 with plain OpenGL, the function is only usable when the given profile and version contains the
4453 function either in core or as an extension.
4454
4455 For more information, see the OpenGL ES 3.x documentation for
4456 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glVertexAttribBinding.xhtml}{glVertexAttribBinding()}.
4457*/
4458
4459/*!
4460 \fn void QOpenGLExtraFunctions::glVertexAttribFormat(GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset)
4461
4462 Convenience function that calls glVertexAttribFormat(\a attribindex, \a size, \a type, \a normalized, \a relativeoffset).
4463
4464 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4465 with plain OpenGL, the function is only usable when the given profile and version contains the
4466 function either in core or as an extension.
4467
4468 For more information, see the OpenGL ES 3.x documentation for
4469 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glVertexAttribFormat.xhtml}{glVertexAttribFormat()}.
4470*/
4471
4472/*!
4473 \fn void QOpenGLExtraFunctions::glVertexAttribIFormat(GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset)
4474
4475 Convenience function that calls glVertexAttribIFormat(\a attribindex, \a size, \a type, \a relativeoffset).
4476
4477 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4478 with plain OpenGL, the function is only usable when the given profile and version contains the
4479 function either in core or as an extension.
4480
4481 For more information, see the OpenGL ES 3.x documentation for
4482 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glVertexAttribFormat.xhtml}{glVertexAttribIFormat()}.
4483*/
4484
4485/*!
4486 \fn void QOpenGLExtraFunctions::glVertexBindingDivisor(GLuint bindingindex, GLuint divisor)
4487
4488 Convenience function that calls glVertexBindingDivisor(\a bindingindex, \a divisor).
4489
4490 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4491 with plain OpenGL, the function is only usable when the given profile and version contains the
4492 function either in core or as an extension.
4493
4494 For more information, see the OpenGL ES 3.x documentation for
4495 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glVertexBindingDivisor.xhtml}{glVertexBindingDivisor()}.
4496*/
4497
4498/*!
4499 \fn void QOpenGLExtraFunctions::glBlendBarrier(void)
4500
4501 Convenience function that calls glBlendBarrier().
4502
4503 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4504 with plain OpenGL, the function is only usable when the given profile and version contains the
4505 function either in core or as an extension.
4506
4507 For more information, see the OpenGL ES 3.X documentation for
4508 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBlendBarrier.xhtml}{glBlendBarrier()}.
4509*/
4510
4511/*!
4512 \fn void QOpenGLExtraFunctions::glBlendEquationSeparatei(GLuint buf, GLenum modeRGB, GLenum modeAlpha)
4513
4514 Convenience function that calls glBlendEquationSeparatei(\a buf, \a modeRGB, \a modeAlpha).
4515
4516 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4517 with plain OpenGL, the function is only usable when the given profile and version contains the
4518 function either in core or as an extension.
4519
4520 For more information, see the OpenGL ES 3.X documentation for
4521 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBlendEquationSeparate.xhtml}{glBlendEquationSeparatei()}.
4522*/
4523
4524/*!
4525 \fn void QOpenGLExtraFunctions::glBlendEquationi(GLuint buf, GLenum mode)
4526
4527 Convenience function that calls glBlendEquationi(\a buf, \a mode).
4528
4529 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4530 with plain OpenGL, the function is only usable when the given profile and version contains the
4531 function either in core or as an extension.
4532
4533 For more information, see the OpenGL ES 3.X documentation for
4534 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBlendEquation.xhtml}{glBlendEquationi()}.
4535*/
4536
4537/*!
4538 \fn void QOpenGLExtraFunctions::glBlendFuncSeparatei(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
4539
4540 Convenience function that calls glBlendFuncSeparatei(\a buf, \a srcRGB, \a dstRGB, \a srcAlpha, \a dstAlpha).
4541
4542 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4543 with plain OpenGL, the function is only usable when the given profile and version contains the
4544 function either in core or as an extension.
4545
4546 For more information, see the OpenGL ES 3.X documentation for
4547 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBlendFuncSeparate.xhtml}{glBlendFuncSeparatei()}.
4548*/
4549
4550/*!
4551 \fn void QOpenGLExtraFunctions::glBlendFunci(GLuint buf, GLenum src, GLenum dst)
4552
4553 Convenience function that calls glBlendFunci(\a buf, \a src, \a dst).
4554
4555 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4556 with plain OpenGL, the function is only usable when the given profile and version contains the
4557 function either in core or as an extension.
4558
4559 For more information, see the OpenGL ES 3.X documentation for
4560 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glBlendFunc.xhtml}{glBlendFunci()}.
4561*/
4562
4563/*!
4564 \fn void QOpenGLExtraFunctions::glColorMaski(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a)
4565
4566 Convenience function that calls glColorMaski(\a index, \a r, \a g, \a b, \a a).
4567
4568 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4569 with plain OpenGL, the function is only usable when the given profile and version contains the
4570 function either in core or as an extension.
4571
4572 For more information, see the OpenGL ES 3.X documentation for
4573 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glColorMask.xhtml}{glColorMaski()}.
4574*/
4575
4576/*!
4577 \fn void QOpenGLExtraFunctions::glCopyImageSubData(GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth)
4578
4579 Convenience function that calls glCopyImageSubData(\a srcName, \a srcTarget, \a srcLevel, \a srcX, \a srcY, \a srcZ, \a dstName, \a dstTarget, \a dstLevel, \a dstX, \a dstY, \a dstZ, \a srcWidth, \a srcHeight, \a srcDepth).
4580
4581 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4582 with plain OpenGL, the function is only usable when the given profile and version contains the
4583 function either in core or as an extension.
4584
4585 For more information, see the OpenGL ES 3.X documentation for
4586 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glCopyImageSubData.xhtml}{glCopyImageSubData()}.
4587*/
4588
4589/*!
4590 \fn void QOpenGLExtraFunctions::glDebugMessageCallback(GLDEBUGPROC callback, const void * userParam)
4591
4592 Convenience function that calls glDebugMessageCallback(\a callback, \a userParam).
4593
4594 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4595 with plain OpenGL, the function is only usable when the given profile and version contains the
4596 function either in core or as an extension.
4597
4598 For more information, see the OpenGL ES 3.X documentation for
4599 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDebugMessageCallback.xhtml}{glDebugMessageCallback()}.
4600*/
4601
4602/*!
4603 \fn void QOpenGLExtraFunctions::glDebugMessageControl(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint * ids, GLboolean enabled)
4604
4605 Convenience function that calls glDebugMessageControl(\a source, \a type, \a severity, \a count, \a ids, \a enabled).
4606
4607 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4608 with plain OpenGL, the function is only usable when the given profile and version contains the
4609 function either in core or as an extension.
4610
4611 For more information, see the OpenGL ES 3.X documentation for
4612 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDebugMessageControl.xhtml}{glDebugMessageContro()}.
4613*/
4614
4615/*!
4616 \fn void QOpenGLExtraFunctions::glDebugMessageInsert(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar * buf)
4617
4618 Convenience function that calls glDebugMessageInsert(\a source, \a type, \a id, \a severity, \a length, \a buf).
4619
4620 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4621 with plain OpenGL, the function is only usable when the given profile and version contains the
4622 function either in core or as an extension.
4623
4624 For more information, see the OpenGL ES 3.X documentation for
4625 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDebugMessageInsert.xhtml}{glDebugMessageInsert()}.
4626*/
4627
4628/*!
4629 \fn void QOpenGLExtraFunctions::glDisablei(GLenum target, GLuint index)
4630
4631 Convenience function that calls glDisablei(\a target, \a index).
4632
4633 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4634 with plain OpenGL, the function is only usable when the given profile and version contains the
4635 function either in core or as an extension.
4636
4637 For more information, see the OpenGL ES 3.X documentation for
4638 \l{https://registry.khronos.org/OpenGL-Refpages/gl4/html/glEnable.xhtml}{glDisablei()}.
4639*/
4640
4641/*!
4642 \fn void QOpenGLExtraFunctions::glDrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type, const void * indices, GLint basevertex)
4643
4644 Convenience function that calls glDrawElementsBaseVertex(\a mode, \a count, \a type, \a indices, \a basevertex).
4645
4646 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4647 with plain OpenGL, the function is only usable when the given profile and version contains the
4648 function either in core or as an extension.
4649
4650 For more information, see the OpenGL ES 3.X documentation for
4651 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDrawElementsBaseVertex.xhtml}{glDrawElementsBaseVerte()}.
4652*/
4653
4654/*!
4655 \fn void QOpenGLExtraFunctions::glDrawElementsInstancedBaseVertex(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei instancecount, GLint basevertex)
4656
4657 Convenience function that calls glDrawElementsInstancedBaseVertex(\a mode, \a count, \a type, \a indices, \a instancecount, \a basevertex).
4658
4659 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4660 with plain OpenGL, the function is only usable when the given profile and version contains the
4661 function either in core or as an extension.
4662
4663 For more information, see the OpenGL ES 3.X documentation for
4664 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDrawElementsInstancedBaseVertex.xhtml}{glDrawElementsInstancedBaseVerte()}.
4665*/
4666
4667/*!
4668 \fn void QOpenGLExtraFunctions::glDrawRangeElementsBaseVertex(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void * indices, GLint basevertex)
4669
4670 Convenience function that calls glDrawRangeElementsBaseVertex(\a mode, \a start, \a end, \a count, \a type, \a indices, \a basevertex).
4671
4672 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4673 with plain OpenGL, the function is only usable when the given profile and version contains the
4674 function either in core or as an extension.
4675
4676 For more information, see the OpenGL ES 3.X documentation for
4677 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glDrawRangeElementsBaseVertex.xhtml}{glDrawRangeElementsBaseVerte()}.
4678*/
4679
4680/*!
4681 \fn void QOpenGLExtraFunctions::glEnablei(GLenum target, GLuint index)
4682
4683 Convenience function that calls glEnablei(\a target, \a index).
4684
4685 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4686 with plain OpenGL, the function is only usable when the given profile and version contains the
4687 function either in core or as an extension.
4688
4689 For more information, see the OpenGL ES 3.X documentation for
4690 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glEnable.xhtml}{glEnablei()}.
4691*/
4692
4693/*!
4694 \fn void QOpenGLExtraFunctions::glFramebufferTexture(GLenum target, GLenum attachment, GLuint texture, GLint level)
4695
4696 Convenience function that calls glFramebufferTexture(\a target, \a attachment, \a texture, \a level).
4697
4698 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4699 with plain OpenGL, the function is only usable when the given profile and version contains the
4700 function either in core or as an extension.
4701
4702 For more information, see the OpenGL ES 3.X documentation for
4703 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glFramebufferTexture.xhtml}{glFramebufferTexture()}.
4704*/
4705
4706/*!
4707 \fn void QOpenGLExtraFunctions::glGetDebugMessageLog(GLuint count, GLsizei bufSize, GLenum* sources, GLenum* types, GLuint* ids, GLenum* severities, GLsizei* lengths, GLchar* messageLog)
4708
4709 Convenience function that calls glGetDebugMessageLog(\a count, \a bufSize, \a sources, \a types, \a ids, \a severities, \a lengths, \a messageLog).
4710
4711 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4712 with plain OpenGL, the function is only usable when the given profile and version contains the
4713 function either in core or as an extension.
4714
4715 For more information, see the OpenGL ES 3.X documentation for
4716 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetDebugMessageLog.xhtml}{glGetDebugMessageLog()}.
4717*/
4718
4719/*!
4720 \fn void QOpenGLExtraFunctions::glGetGraphicsResetStatus(void)
4721
4722 Convenience function that calls glGetGraphicsResetStatus().
4723
4724 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4725 with plain OpenGL, the function is only usable when the given profile and version contains the
4726 function either in core or as an extension.
4727
4728 For more information, see the OpenGL ES 3.X documentation for
4729 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetGraphicsResetStatus.xhtml}{glGetGraphicsResetStatus()}.
4730*/
4731
4732/*!
4733 \fn void QOpenGLExtraFunctions::glGetObjectLabel(GLenum identifier, GLuint name, GLsizei bufSize, GLsizei* length, GLchar* label)
4734
4735 Convenience function that calls glGetObjectLabel(\a identifier, \a name, \a bufSize, \a length, \a label).
4736
4737 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4738 with plain OpenGL, the function is only usable when the given profile and version contains the
4739 function either in core or as an extension.
4740
4741 For more information, see the OpenGL ES 3.X documentation for
4742 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetObjectLabel.xhtml}{glGetObjectLabe()}.
4743*/
4744
4745/*!
4746 \fn void QOpenGLExtraFunctions::glGetObjectPtrLabel(const void * ptr, GLsizei bufSize, GLsizei* length, GLchar* label)
4747
4748 Convenience function that calls glGetObjectPtrLabel(\a ptr, \a bufSize, \a length, \a label).
4749
4750 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4751 with plain OpenGL, the function is only usable when the given profile and version contains the
4752 function either in core or as an extension.
4753
4754 For more information, see the OpenGL ES 3.X documentation for
4755 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetObjectPtrLabel.xhtml}{glGetObjectPtrLabe()}.
4756*/
4757
4758/*!
4759 \fn void QOpenGLExtraFunctions::glGetPointerv(GLenum pname, void ** params)
4760
4761 Convenience function that calls glGetPointerv(\a pname, \a params).
4762
4763 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4764 with plain OpenGL, the function is only usable when the given profile and version contains the
4765 function either in core or as an extension.
4766
4767 For more information, see the OpenGL ES 3.X documentation for
4768 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetPointerv.xhtml}{glGetPointerv()}.
4769*/
4770
4771/*!
4772 \fn void QOpenGLExtraFunctions::glGetSamplerParameterIiv(GLuint sampler, GLenum pname, GLint* params)
4773
4774 Convenience function that calls glGetSamplerParameterIiv(\a sampler, \a pname, \a params).
4775
4776 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4777 with plain OpenGL, the function is only usable when the given profile and version contains the
4778 function either in core or as an extension.
4779
4780 For more information, see the OpenGL ES 3.X documentation for
4781 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetSamplerParameter.xhtml}{glGetSamplerParameterIiv()}.
4782*/
4783
4784/*!
4785 \fn void QOpenGLExtraFunctions::glGetSamplerParameterIuiv(GLuint sampler, GLenum pname, GLuint* params)
4786
4787 Convenience function that calls glGetSamplerParameterIuiv(\a sampler, \a pname, \a params).
4788
4789 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4790 with plain OpenGL, the function is only usable when the given profile and version contains the
4791 function either in core or as an extension.
4792
4793 For more information, see the OpenGL ES 3.X documentation for
4794 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetSamplerParameter.xhtml}{glGetSamplerParameterIuiv()}.
4795*/
4796
4797/*!
4798 \fn void QOpenGLExtraFunctions::glGetTexParameterIiv(GLenum target, GLenum pname, GLint* params)
4799
4800 Convenience function that calls glGetTexParameterIiv(\a target, \a pname, \a params).
4801
4802 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4803 with plain OpenGL, the function is only usable when the given profile and version contains the
4804 function either in core or as an extension.
4805
4806 For more information, see the OpenGL ES 3.X documentation for
4807 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetTexParameter.xhtml}{glGetTexParameterIiv()}.
4808*/
4809
4810/*!
4811 \fn void QOpenGLExtraFunctions::glGetTexParameterIuiv(GLenum target, GLenum pname, GLuint* params)
4812
4813 Convenience function that calls glGetTexParameterIuiv(\a target, \a pname, \a params).
4814
4815 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4816 with plain OpenGL, the function is only usable when the given profile and version contains the
4817 function either in core or as an extension.
4818
4819 For more information, see the OpenGL ES 3.X documentation for
4820 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetTexParameter.xhtml}{glGetTexParameterIuiv()}.
4821*/
4822
4823/*!
4824 \fn void QOpenGLExtraFunctions::glGetnUniformfv(GLuint program, GLint location, GLsizei bufSize, GLfloat* params)
4825
4826 Convenience function that calls glGetnUniformfv(\a program, \a location, \a bufSize, \a params).
4827
4828 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4829 with plain OpenGL, the function is only usable when the given profile and version contains the
4830 function either in core or as an extension.
4831
4832 For more information, see the OpenGL ES 3.X documentation for
4833 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetUniform.xhtml}{glGetnUniformfv()}.
4834*/
4835
4836/*!
4837 \fn void QOpenGLExtraFunctions::glGetnUniformiv(GLuint program, GLint location, GLsizei bufSize, GLint* params)
4838
4839 Convenience function that calls glGetnUniformiv(\a program, \a location, \a bufSize, \a params).
4840
4841 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4842 with plain OpenGL, the function is only usable when the given profile and version contains the
4843 function either in core or as an extension.
4844
4845 For more information, see the OpenGL ES 3.X documentation for
4846 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetUniform.xhtml}{glGetnUniformiv()}.
4847*/
4848
4849/*!
4850 \fn void QOpenGLExtraFunctions::glGetnUniformuiv(GLuint program, GLint location, GLsizei bufSize, GLuint* params)
4851
4852 Convenience function that calls glGetnUniformuiv(\a program, \a location, \a bufSize, \a params).
4853
4854 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4855 with plain OpenGL, the function is only usable when the given profile and version contains the
4856 function either in core or as an extension.
4857
4858 For more information, see the OpenGL ES 3.X documentation for
4859 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glGetUniform.xhtml}{glGetnUniformuiv()}.
4860*/
4861
4862/*!
4863 \fn void QOpenGLExtraFunctions::glIsEnabledi(GLenum target, GLuint index)
4864
4865 Convenience function that calls glIsEnabledi(\a target, \a index).
4866
4867 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4868 with plain OpenGL, the function is only usable when the given profile and version contains the
4869 function either in core or as an extension.
4870
4871 For more information, see the OpenGL ES 3.X documentation for
4872 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glIsEnabled.xhtml}{glIsEnabledi()}.
4873*/
4874
4875/*!
4876 \fn void QOpenGLExtraFunctions::glMinSampleShading(GLfloat value)
4877
4878 Convenience function that calls glMinSampleShading(\a value).
4879
4880 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4881 with plain OpenGL, the function is only usable when the given profile and version contains the
4882 function either in core or as an extension.
4883
4884 For more information, see the OpenGL ES 3.X documentation for
4885 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glMinSampleShading.xhtml}{glMinSampleShading()}.
4886*/
4887
4888/*!
4889 \fn void QOpenGLExtraFunctions::glObjectLabel(GLenum identifier, GLuint name, GLsizei length, const GLchar * label)
4890
4891 Convenience function that calls glObjectLabel(\a identifier, \a name, \a length, \a label).
4892
4893 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4894 with plain OpenGL, the function is only usable when the given profile and version contains the
4895 function either in core or as an extension.
4896
4897 For more information, see the OpenGL ES 3.X documentation for
4898 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glObjectLabel.xhtml}{glObjectLabe()}.
4899*/
4900
4901/*!
4902 \fn void QOpenGLExtraFunctions::glObjectPtrLabel(const void * ptr, GLsizei length, const GLchar * label)
4903
4904 Convenience function that calls glObjectPtrLabel(\a ptr, \a length, \a label).
4905
4906 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4907 with plain OpenGL, the function is only usable when the given profile and version contains the
4908 function either in core or as an extension.
4909
4910 For more information, see the OpenGL ES 3.X documentation for
4911 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glObjectPtrLabel.xhtml}{glObjectPtrLabe()}.
4912*/
4913
4914/*!
4915 \fn void QOpenGLExtraFunctions::glPatchParameteri(GLenum pname, GLint value)
4916
4917 Convenience function that calls glPatchParameteri(\a pname, \a value).
4918
4919 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4920 with plain OpenGL, the function is only usable when the given profile and version contains the
4921 function either in core or as an extension.
4922
4923 For more information, see the OpenGL ES 3.X documentation for
4924 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glPatchParameteri.xhtml}{glPatchParameteri()}.
4925*/
4926
4927/*!
4928 \fn void QOpenGLExtraFunctions::glPopDebugGroup(void)
4929
4930 Convenience function that calls glPopDebugGroup().
4931
4932 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4933 with plain OpenGL, the function is only usable when the given profile and version contains the
4934 function either in core or as an extension.
4935
4936 For more information, see the OpenGL ES 3.X documentation for
4937 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glPopDebugGroup.xhtml}{glPopDebugGroup()}.
4938*/
4939
4940/*!
4941 \fn void QOpenGLExtraFunctions::glPrimitiveBoundingBox(GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW)
4942
4943 Convenience function that calls glPrimitiveBoundingBox(\a minX, \a minY, \a minZ, \a minW, \a maxX, \a maxY, \a maxZ, \a maxW).
4944
4945 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4946 with plain OpenGL, the function is only usable when the given profile and version contains the
4947 function either in core or as an extension.
4948
4949 For more information, see the OpenGL ES 3.X documentation for
4950 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glPrimitiveBoundingBox.xhtml}{glPrimitiveBoundingBo()}.
4951*/
4952
4953/*!
4954 \fn void QOpenGLExtraFunctions::glPushDebugGroup(GLenum source, GLuint id, GLsizei length, const GLchar * message)
4955
4956 Convenience function that calls glPushDebugGroup(\a source, \a id, \a length, \a message).
4957
4958 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4959 with plain OpenGL, the function is only usable when the given profile and version contains the
4960 function either in core or as an extension.
4961
4962 For more information, see the OpenGL ES 3.X documentation for
4963 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glPushDebugGroup.xhtml}{glPushDebugGroup()}.
4964*/
4965
4966/*!
4967 \fn void QOpenGLExtraFunctions::glReadnPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void * data)
4968
4969 Convenience function that calls glReadnPixels(\a x, \a y, \a width, \a height, \a format, \a type, \a bufSize, \a data).
4970
4971 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4972 with plain OpenGL, the function is only usable when the given profile and version contains the
4973 function either in core or as an extension.
4974
4975 For more information, see the OpenGL ES 3.X documentation for
4976 \l{https://registry.khronos.org/OpenGL-Refpages/gl4/html/glReadPixels.xhtml}{glReadnPixels()}.
4977*/
4978
4979/*!
4980 \fn void QOpenGLExtraFunctions::glSamplerParameterIiv(GLuint sampler, GLenum pname, const GLint * param)
4981
4982 Convenience function that calls glSamplerParameterIiv(\a sampler, \a pname, \a param).
4983
4984 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4985 with plain OpenGL, the function is only usable when the given profile and version contains the
4986 function either in core or as an extension.
4987
4988 For more information, see the OpenGL ES 3.X documentation for
4989 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glSamplerParameter.xhtml}{glSamplerParameterIiv()}.
4990*/
4991
4992/*!
4993 \fn void QOpenGLExtraFunctions::glSamplerParameterIuiv(GLuint sampler, GLenum pname, const GLuint * param)
4994
4995 Convenience function that calls glSamplerParameterIuiv(\a sampler, \a pname, \a param).
4996
4997 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
4998 with plain OpenGL, the function is only usable when the given profile and version contains the
4999 function either in core or as an extension.
5000
5001 For more information, see the OpenGL ES 3.X documentation for
5002 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glSamplerParameter.xhtml}{glSamplerParameterIuiv()}.
5003*/
5004
5005/*!
5006 \fn void QOpenGLExtraFunctions::glTexBuffer(GLenum target, GLenum internalformat, GLuint buffer)
5007
5008 Convenience function that calls glTexBuffer(\a target, \a internalformat, \a buffer).
5009
5010 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
5011 with plain OpenGL, the function is only usable when the given profile and version contains the
5012 function either in core or as an extension.
5013
5014 For more information, see the OpenGL ES 3.X documentation for
5015 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glTexBuffer.xhtml}{glTexBuffer()}.
5016*/
5017
5018/*!
5019 \fn void QOpenGLExtraFunctions::glTexBufferRange(GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size)
5020
5021 Convenience function that calls glTexBufferRange(\a target, \a internalformat, \a buffer, \a offset, \a size).
5022
5023 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
5024 with plain OpenGL, the function is only usable when the given profile and version contains the
5025 function either in core or as an extension.
5026
5027 For more information, see the OpenGL ES 3.X documentation for
5028 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glTexBufferRange.xhtml}{glTexBufferRange()}.
5029*/
5030
5031/*!
5032 \fn void QOpenGLExtraFunctions::glTexParameterIiv(GLenum target, GLenum pname, const GLint * params)
5033
5034 Convenience function that calls glTexParameterIiv(\a target, \a pname, \a params).
5035
5036 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
5037 with plain OpenGL, the function is only usable when the given profile and version contains the
5038 function either in core or as an extension.
5039
5040 For more information, see the OpenGL ES 3.X documentation for
5041 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glTexParameter.xhtml}{glTexParameterIiv()}.
5042*/
5043
5044/*!
5045 \fn void QOpenGLExtraFunctions::glTexParameterIuiv(GLenum target, GLenum pname, const GLuint * params)
5046
5047 Convenience function that calls glTexParameterIuiv(\a target, \a pname, \a params).
5048
5049 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
5050 with plain OpenGL, the function is only usable when the given profile and version contains the
5051 function either in core or as an extension.
5052
5053 For more information, see the OpenGL ES 3.X documentation for
5054 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glTexParameter.xhtml}{glTexParameterIuiv()}.
5055*/
5056
5057/*!
5058 \fn void QOpenGLExtraFunctions::glTexStorage3DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations)
5059
5060 Convenience function that calls glTexStorage3DMultisample(\a target, \a samples, \a internalformat, \a width, \a height, \a depth, \a fixedsamplelocations).
5061
5062 This function is only available in OpenGL ES 3.x, or OpenGL 3.x or 4.x contexts. When running
5063 with plain OpenGL, the function is only usable when the given profile and version contains the
5064 function either in core or as an extension.
5065
5066 For more information, see the OpenGL ES 3.X documentation for
5067 \l{https://registry.khronos.org/OpenGL-Refpages/es3/html/glTexStorage3DMultisample.xhtml}{glTexStorage3DMultisample()}.
5068*/
5069
5070/*!
5071 \fn bool QOpenGLExtraFunctions::isInitialized(const QOpenGLExtraFunctionsPrivate *d)
5072 \internal
5073*/
5074
5075
5076/*!
5077 Constructs a default function resolver. The resolver cannot be used until
5078 \l {QOpenGLFunctions::}{initializeOpenGLFunctions()} is called to specify
5079 the context.
5080*/
5081QOpenGLExtraFunctions::QOpenGLExtraFunctions()
5082{
5083}
5084
5085/*!
5086 Constructs a function resolver for context. If \a context is \nullptr,
5087 then the resolver will be created for the current QOpenGLContext.
5088
5089 The context or another context in the group must be current.
5090
5091 An object constructed in this way can only be used with context and other
5092 contexts that share with it. Use \l {QOpenGLFunctions::}
5093 {initializeOpenGLFunctions()} to change the object's context association.
5094*/
5095QOpenGLExtraFunctions::QOpenGLExtraFunctions(QOpenGLContext *context)
5096 : QOpenGLFunctions(context)
5097{
5098}
5099
5102{
5103 init(ctx);
5104}
5105
5106QT_OPENGL_IMPLEMENT(QOpenGLExtraFunctionsPrivate, QT_OPENGL_EXTRA_FUNCTIONS)
5107
5108QOpenGLExtensionsPrivate::QOpenGLExtensionsPrivate(QOpenGLContext *ctx)
5109 : QOpenGLExtraFunctionsPrivate(ctx),
5110 flushVendorChecked(false)
5111{
5112 QOpenGLContext *context = QOpenGLContext::currentContext();
5113
5114 MapBuffer = RESOLVE(MapBuffer);
5115 GetBufferSubData = RESOLVE(GetBufferSubData);
5116 DiscardFramebuffer = RESOLVE(DiscardFramebuffer);
5117}
5118
5119void QOpenGLExtensions::discardFramebuffer(GLenum target, GLsizei numAttachments, const GLenum *attachments)
5120{
5121 Q_D(QOpenGLExtensions);
5122 Q_ASSERT(QOpenGLExtensions::isInitialized(d));
5123 Q_ASSERT(d->f.InvalidateFramebuffer || d->DiscardFramebuffer);
5124
5125 // On GLES >= 3 we prefer glInvalidateFramebuffer, even if the
5126 // discard extension is present
5127 if (d->f.InvalidateFramebuffer)
5128 d->f.InvalidateFramebuffer(target, numAttachments, attachments);
5129 else
5130 d->DiscardFramebuffer(target, numAttachments, attachments);
5131
5133}
5134
5135void QOpenGLExtensions::flushShared()
5136{
5137 Q_D(QOpenGLExtensions);
5138
5139 if (!d->flushVendorChecked) {
5140 d->flushVendorChecked = true;
5141 // It is not quite clear if glFlush() is sufficient to synchronize access to
5142 // resources between sharing contexts in the same thread. On most platforms this
5143 // is enough (e.g. iOS explicitly documents it), while certain drivers only work
5144 // properly when doing glFinish().
5145 d->flushIsSufficientToSyncContexts = false; // default to false, not guaranteed by the spec
5146 const char *vendor = (const char *) glGetString(GL_VENDOR);
5147 if (vendor) {
5148 static const char *const flushEnough[] = { "Apple", "ATI", "Intel", "NVIDIA" };
5149 for (size_t i = 0; i < sizeof(flushEnough) / sizeof(const char *); ++i) {
5150 if (strstr(vendor, flushEnough[i])) {
5151 d->flushIsSufficientToSyncContexts = true;
5152 break;
5153 }
5154 }
5155 }
5156 }
5157
5158 if (d->flushIsSufficientToSyncContexts)
5159 glFlush();
5160 else
5161 glFinish();
5162}
5163
5164QT_END_NAMESPACE
QOpenGLExtraFunctionsPrivate(QOpenGLContext *ctx)
Combined button and popup list for selecting options.
Q_GLOBAL_STATIC(QReadWriteLock, g_updateMutex)
#define GL_FRAMEBUFFER_SRGB_CAPABLE_EXT
#define QT_OPENGL_COUNT_FUNCTIONS(ret, name, args)
#define RESOLVE(name)
#define QT_OPENGL_IMPLEMENT(CLASS, FUNCTIONS)
static int qt_gl_resolve_extensions()
static QOpenGLFunctionsPrivateEx * qt_gl_functions(QOpenGLContext *context=nullptr)
static int qt_gl_resolve_features()
#define QT_OPENGL_FUNCTION_NAMES(ret, name, args)
#define Q_OPENGL_FUNCTIONS_DEBUG
void freeResource(QOpenGLContext *) override
QOpenGLFunctionsPrivateEx(QOpenGLContext *context)