diff options
Diffstat (limited to 'src/gui/opengl/qopenglfunctions.cpp')
-rw-r--r-- | src/gui/opengl/qopenglfunctions.cpp | 506 |
1 files changed, 253 insertions, 253 deletions
diff --git a/src/gui/opengl/qopenglfunctions.cpp b/src/gui/opengl/qopenglfunctions.cpp index 11ca802ee6..c9352fbc31 100644 --- a/src/gui/opengl/qopenglfunctions.cpp +++ b/src/gui/opengl/qopenglfunctions.cpp @@ -1,41 +1,5 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the QtGui module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ +// Copyright (C) 2021 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only #include "qopenglfunctions.h" #include "qopenglextrafunctions.h" @@ -57,6 +21,8 @@ QT_BEGIN_NAMESPACE +using namespace Qt::StringLiterals; + #define QT_OPENGL_COUNT_FUNCTIONS(ret, name, args) +1 #define QT_OPENGL_FUNCTION_NAMES(ret, name, args) \ "gl"#name"\0" @@ -364,6 +330,8 @@ static int qt_gl_resolve_extensions() extensions |= QOpenGLExtensions::ETC1TextureCompression; if (extensionMatcher.match("GL_IMG_texture_compression_pvrtc")) extensions |= QOpenGLExtensions::PVRTCTextureCompression; + if (extensionMatcher.match("GL_KHR_texture_compression_astc_ldr")) + extensions |= QOpenGLExtensions::ASTCTextureCompression; if (extensionMatcher.match("GL_ARB_texture_mirrored_repeat")) extensions |= QOpenGLExtensions::MirroredRepeat; if (extensionMatcher.match("GL_EXT_stencil_two_side")) @@ -376,6 +344,14 @@ static int qt_gl_resolve_extensions() extensions |= QOpenGLExtensions::PixelBufferObject; if (extensionMatcher.match("GL_ARB_texture_swizzle") || extensionMatcher.match("GL_EXT_texture_swizzle")) extensions |= QOpenGLExtensions::TextureSwizzle; + if (extensionMatcher.match("GL_OES_standard_derivatives")) + extensions |= QOpenGLExtensions::StandardDerivatives; + if (extensionMatcher.match("GL_ARB_half_float_vertex")) + extensions |= QOpenGLExtensions::HalfFloatVertex; + if (extensionMatcher.match("GL_OVR_multiview")) + extensions |= QOpenGLExtensions::MultiView; + if (extensionMatcher.match("GL_OVR_multiview2")) + extensions |= QOpenGLExtensions::MultiViewExtended; if (ctx->isOpenGLES()) { if (format.majorVersion() >= 2) @@ -388,7 +364,11 @@ static int qt_gl_resolve_extensions() | QOpenGLExtensions::MapBufferRange | QOpenGLExtensions::FramebufferBlit | QOpenGLExtensions::FramebufferMultisample - | QOpenGLExtensions::Sized8Formats; + | QOpenGLExtensions::Sized8Formats + | QOpenGLExtensions::DiscardFramebuffer + | QOpenGLExtensions::StandardDerivatives + | QOpenGLExtensions::ETC2TextureCompression + | QOpenGLExtensions::HalfFloatVertex; #ifndef Q_OS_WASM // WebGL 2.0 specification explicitly does not support texture swizzles // https://www.khronos.org/registry/webgl/specs/latest/2.0/#5.19 @@ -410,6 +390,8 @@ static int qt_gl_resolve_extensions() extensions |= QOpenGLExtensions::FramebufferMultisample; if (extensionMatcher.match("GL_OES_rgb8_rgba8")) extensions |= QOpenGLExtensions::Sized8Formats; + if (extensionMatcher.match("GL_OES_compressed_ETC2_RGB8_texture")) + extensions |= QOpenGLExtensions::ETC2TextureCompression; } if (extensionMatcher.match("GL_OES_mapbuffer")) @@ -419,13 +401,13 @@ static int qt_gl_resolve_extensions() // We don't match GL_APPLE_texture_format_BGRA8888 here because it has different semantics. if (extensionMatcher.match("GL_IMG_texture_format_BGRA8888") || extensionMatcher.match("GL_EXT_texture_format_BGRA8888")) extensions |= QOpenGLExtensions::BGRATextureFormat; -#if defined(Q_OS_ANDROID) && !defined(Q_OS_ANDROID_EMBEDDED) +#ifdef Q_OS_ANDROID QString *deviceName = static_cast<QString *>(QGuiApplication::platformNativeInterface()->nativeResourceForIntegration("AndroidDeviceName")); static bool wrongfullyReportsBgra8888Support = deviceName != 0 - && (deviceName->compare(QLatin1String("samsung SM-T211"), Qt::CaseInsensitive) == 0 - || deviceName->compare(QLatin1String("samsung SM-T210"), Qt::CaseInsensitive) == 0 - || deviceName->compare(QLatin1String("samsung SM-T215"), Qt::CaseInsensitive) == 0); + && (deviceName->compare("samsung SM-T211"_L1, Qt::CaseInsensitive) == 0 + || deviceName->compare("samsung SM-T210"_L1, Qt::CaseInsensitive) == 0 + || deviceName->compare("samsung SM-T215"_L1, Qt::CaseInsensitive) == 0); if (wrongfullyReportsBgra8888Support) extensions &= ~QOpenGLExtensions::BGRATextureFormat; #endif @@ -445,6 +427,9 @@ static int qt_gl_resolve_extensions() if (format.version() >= qMakePair(1, 4) || extensionMatcher.match("GL_SGIS_generate_mipmap")) extensions |= QOpenGLExtensions::GenerateMipmap; + if (format.majorVersion() >= 2) + extensions |= QOpenGLExtensions::StandardDerivatives; + if (format.majorVersion() >= 3 || extensionMatcher.match("GL_ARB_framebuffer_object")) { extensions |= QOpenGLExtensions::FramebufferMultisample | QOpenGLExtensions::FramebufferBlit @@ -466,6 +451,9 @@ static int qt_gl_resolve_extensions() if (format.version() >= qMakePair(3, 3)) extensions |= QOpenGLExtensions::TextureSwizzle; + if (format.version() >= qMakePair(4, 3) || extensionMatcher.match("GL_ARB_invalidate_subdata")) + extensions |= QOpenGLExtensions::DiscardFramebuffer; + if (extensionMatcher.match("GL_ARB_map_buffer_range")) extensions |= QOpenGLExtensions::MapBufferRange; @@ -475,6 +463,9 @@ static int qt_gl_resolve_extensions() if (srgbCapableFramebuffers) extensions |= QOpenGLExtensions::SRGBFrameBuffer; } + + if (extensionMatcher.match("GL_ARB_ES3_compatibility")) + extensions |= QOpenGLExtensions::ETC2TextureCompression; } return extensions; @@ -557,13 +548,6 @@ bool QOpenGLExtensions::hasOpenGLExtension(QOpenGLExtensions::OpenGLExtension ex } /*! - \fn void QOpenGLFunctions::initializeGLFunctions() - \obsolete - - Use initializeOpenGLFunctions() instead. -*/ - -/*! Initializes OpenGL function resolution for the current context. After calling this function, the QOpenGLFunctions object can only be @@ -581,7 +565,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glBindTexture(\a target, \a texture). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBindTexture.xhtml}{glBindTexture()}. \since 5.3 @@ -592,7 +576,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glBlendFunc(\a sfactor, \a dfactor). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBlendFunc.xhtml}{glBlendFunc()}. \since 5.3 @@ -603,7 +587,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glClear(\a mask). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glClear.xhtml}{glClear()}. \since 5.3 @@ -614,7 +598,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glClearColor(\a red, \a green, \a blue, \a alpha). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glClearColor.xhtml}{glClearColor()}. \since 5.3 @@ -625,7 +609,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glClearStencil(\a s). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glClearStencil.xhtml}{glClearStencil()}. \since 5.3 @@ -636,7 +620,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glColorMask(\a red, \a green, \a blue, \a alpha). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glColorMask.xhtml}{glColorMask()}. \since 5.3 @@ -647,7 +631,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glCopyTexImage2D(\a target, \a level, \a internalformat, \a x, \a y, \a width, \a height, \a border). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glCopyTexImage2D.xhtml}{glCopyTexImage2D()}. \since 5.3 @@ -658,7 +642,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glCopyTexSubImage2D(\a target, \a level, \a xoffset, \a yoffset, \a x, \a y, \a width, \a height). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glCopyTexSubImage2D.xhtml}{glCopyTexSubImage2D()}. \since 5.3 @@ -669,7 +653,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glCullFace(\a mode). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glCullFace.xhtml}{glCullFace()}. \since 5.3 @@ -680,7 +664,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glDeleteTextures(\a n, \a textures). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDeleteTextures.xhtml}{glDeleteTextures()}. \since 5.3 @@ -691,7 +675,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glDepthFunc(\a func). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDepthFunc.xhtml}{glDepthFunc()}. \since 5.3 @@ -702,7 +686,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glDepthMask(\a flag). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDepthMask.xhtml}{glDepthMask()}. \since 5.3 @@ -713,8 +697,8 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glDisable(\a cap). - For more information, see the OpenGL ES 2.0 documentation for - \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDisable.xhtml}{glDisable()}. + For more information, see the OpenGL ES 3.X documentation for + \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glEnable.xhtml}{glDisable()}. \since 5.3 */ @@ -724,7 +708,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glDrawArrays(\a mode, \a first, \a count). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDrawArrays.xhtml}{glDrawArrays()}. \since 5.3 @@ -735,7 +719,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glDrawElements(\a mode, \a count, \a type, \a indices). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDrawElements.xhtml}{glDrawElements()}. \since 5.3 @@ -746,7 +730,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glEnable(\a cap). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glEnable.xhtml}{glEnable()}. \since 5.3 @@ -757,7 +741,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glFinish(). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glFinish.xhtml}{glFinish()}. \since 5.3 @@ -768,7 +752,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glFlush(). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glFlush.xhtml}{glFlush()}. \since 5.3 @@ -779,7 +763,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glFrontFace(\a mode). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glFrontFace.xhtml}{glFrontFace()}. \since 5.3 @@ -790,7 +774,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGenTextures(\a n, \a textures). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGenTextures.xhtml}{glGenTextures()}. \since 5.3 @@ -801,7 +785,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetBooleanv(\a pname, \a params). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGet.xhtml}{glGetBooleanv()}. \since 5.3 @@ -812,7 +796,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetError(). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetError.xhtml}{glGetError()}. \since 5.3 @@ -823,7 +807,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetFloatv(\a pname, \a params). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGet.xhtml}{glGetFloatv()}. \since 5.3 @@ -834,7 +818,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetIntegerv(\a pname, \a params). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGet.xhtml}{glGetIntegerv()}. \since 5.3 @@ -845,7 +829,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetString(\a name). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetString.xhtml}{glGetString()}. \since 5.3 @@ -856,7 +840,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetTexParameterfv(\a target, \a pname, \a params). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetTexParameter.xhtml}{glGetTexParameterfv()}. \since 5.3 @@ -867,7 +851,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetTexParameteriv(\a target, \a pname, \a params). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetTexParameter.xhtml}{glGetTexParameteriv()}. \since 5.3 @@ -878,7 +862,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glHint(\a target, \a mode). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glHint.xhtml}{glHint()}. \since 5.3 @@ -889,7 +873,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glIsEnabled(\a cap). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glIsEnabled.xhtml}{glIsEnabled()}. \since 5.3 @@ -900,7 +884,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glIsTexture(\a texture). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glIsTexture.xhtml}{glIsTexture()}. \since 5.3 @@ -911,7 +895,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glLineWidth(\a width). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glLineWidth.xhtml}{glLineWidth()}. \since 5.3 @@ -922,7 +906,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glPixelStorei(\a pname, \a param). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glPixelStorei.xhtml}{glPixelStorei()}. \since 5.3 @@ -933,7 +917,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glPolygonOffset(\a factor, \a units). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glPolygonOffset.xhtml}{glPolygonOffset()}. \since 5.3 @@ -944,7 +928,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glReadPixels(\a x, \a y, \a width, \a height, \a format, \a type, \a pixels). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glReadPixels.xhtml}{glReadPixels()}. \since 5.3 @@ -955,7 +939,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glScissor(\a x, \a y, \a width, \a height). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glScissor.xhtml}{glScissor()}. \since 5.3 @@ -966,7 +950,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glStencilFunc(\a func, \a ref, \a mask). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glStencilFunc.xhtml}{glStencilFunc()}. \since 5.3 @@ -977,7 +961,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glStencilMask(\a mask). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glStencilMask.xhtml}{glStencilMask()}. \since 5.3 @@ -988,7 +972,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glStencilOp(\a fail, \a zfail, \a zpass). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glStencilOp.xhtml}{glStencilOp()}. \since 5.3 @@ -999,7 +983,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glTexImage2D(\a target, \a level, \a internalformat, \a width, \a height, \a border, \a format, \a type, \a pixels). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glTexImage2D.xhtml}{glTexImage2D()}. \since 5.3 @@ -1010,7 +994,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glTexParameterf(\a target, \a pname, \a param). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glTexParameter.xhtml}{glTexParameterf()}. \since 5.3 @@ -1021,7 +1005,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glTexParameterfv(\a target, \a pname, \a params). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glTexParameter.xhtml}{glTexParameterfv()}. \since 5.3 @@ -1032,7 +1016,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glTexParameteri(\a target, \a pname, \a param). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glTexParameter.xhtml}{glTexParameteri()}. \since 5.3 @@ -1043,7 +1027,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glTexParameteriv(\a target, \a pname, \a params). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glTexParameter.xhtml}{glTexParameteriv()}. \since 5.3 @@ -1054,7 +1038,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glTexSubImage2D(\a target, \a level, \a xoffset, \a yoffset, \a width, \a height, \a format, \a type, \a pixels). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glTexSubImage2D.xhtml}{glTexSubImage2D()}. \since 5.3 @@ -1065,7 +1049,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glViewport(\a x, \a y, \a width, \a height). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glViewport.xhtml}{glViewport()}. \since 5.3 @@ -1076,7 +1060,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glActiveTexture(\a texture). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glActiveTexture.xhtml}{glActiveTexture()}. */ @@ -1085,7 +1069,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glAttachShader(\a program, \a shader). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glAttachShader.xhtml}{glAttachShader()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1096,7 +1080,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glBindAttribLocation(\a program, \a index, \a name). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBindAttribLocation.xhtml}{glBindAttribLocation()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1107,7 +1091,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glBindBuffer(\a target, \a buffer). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBindBuffer.xhtml}{glBindBuffer()}. */ @@ -1119,7 +1103,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Note that Qt will translate a \a framebuffer argument of 0 to the currently bound QOpenGLContext's defaultFramebufferObject(). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBindFramebuffer.xhtml}{glBindFramebuffer()}. */ @@ -1128,7 +1112,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glBindRenderbuffer(\a target, \a renderbuffer). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBindRenderbuffer.xhtml}{glBindRenderbuffer()}. */ @@ -1137,7 +1121,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glBlendColor(\a red, \a green, \a blue, \a alpha). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBlendColor.xhtml}{glBlendColor()}. */ @@ -1146,7 +1130,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glBlendEquation(\a mode). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBlendEquation.xhtml}{glBlendEquation()}. */ @@ -1155,7 +1139,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glBlendEquationSeparate(\a modeRGB, \a modeAlpha). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBlendEquationSeparate.xhtml}{glBlendEquationSeparate()}. */ @@ -1164,7 +1148,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glBlendFuncSeparate(\a srcRGB, \a dstRGB, \a srcAlpha, \a dstAlpha). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBlendFuncSeparate.xhtml}{glBlendFuncSeparate()}. */ @@ -1173,7 +1157,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glBufferData(\a target, \a size, \a data, \a usage). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBufferData.xhtml}{glBufferData()}. */ @@ -1182,7 +1166,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glBufferSubData(\a target, \a offset, \a size, \a data). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBufferSubData.xhtml}{glBufferSubData()}. */ @@ -1191,7 +1175,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glCheckFramebufferStatus(\a target). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glCheckFramebufferStatus.xhtml}{glCheckFramebufferStatus()}. */ @@ -1202,7 +1186,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() desktop OpenGL systems and glClearDepthf(\a depth) on embedded OpenGL ES systems. - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glClearDepthf.xhtml}{glClearDepthf()}. */ @@ -1211,7 +1195,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glCompileShader(\a shader). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glCompileShader.xhtml}{glCompileShader()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1222,7 +1206,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glCompressedTexImage2D(\a target, \a level, \a internalformat, \a width, \a height, \a border, \a imageSize, \a data). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glCompressedTexImage2D.xhtml}{glCompressedTexImage2D()}. */ @@ -1231,7 +1215,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glCompressedTexSubImage2D(\a target, \a level, \a xoffset, \a yoffset, \a width, \a height, \a format, \a imageSize, \a data). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glCompressedTexSubImage2D.xhtml}{glCompressedTexSubImage2D()}. */ @@ -1240,7 +1224,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glCreateProgram(). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glCreateProgram.xhtml}{glCreateProgram()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1251,7 +1235,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glCreateShader(\a type). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glCreateShader.xhtml}{glCreateShader()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1262,7 +1246,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glDeleteBuffers(\a n, \a buffers). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDeleteBuffers.xhtml}{glDeleteBuffers()}. */ @@ -1271,7 +1255,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glDeleteFramebuffers(\a n, \a framebuffers). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDeleteFramebuffers.xhtml}{glDeleteFramebuffers()}. */ @@ -1280,7 +1264,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glDeleteProgram(\a program). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDeleteProgram.xhtml}{glDeleteProgram()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1291,7 +1275,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glDeleteRenderbuffers(\a n, \a renderbuffers). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDeleteRenderbuffers.xhtml}{glDeleteRenderbuffers()}. */ @@ -1300,7 +1284,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glDeleteShader(\a shader). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDeleteShader.xhtml}{glDeleteShader()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1313,7 +1297,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() desktop OpenGL systems and glDepthRangef(\a zNear, \a zFar) on embedded OpenGL ES systems. - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDepthRangef.xhtml}{glDepthRangef()}. */ @@ -1322,7 +1306,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glDetachShader(\a program, \a shader). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDetachShader.xhtml}{glDetachShader()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1333,8 +1317,8 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glDisableVertexAttribArray(\a index). - For more information, see the OpenGL ES 2.0 documentation for - \l{https://www.khronos.org/registry/OpenGL-Refpages/es2.0/html/glDisableVertexAttribArray.xhtml}{glDisableVertexAttribArray()}. + For more information, see the OpenGL ES 3.X documentation for + \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glEnableVertexAttribArray.xhtml}{glDisableVertexAttribArray()}. This convenience function will do nothing on OpenGL ES 1.x systems. */ @@ -1344,7 +1328,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glEnableVertexAttribArray(\a index). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glEnableVertexAttribArray.xhtml}{glEnableVertexAttribArray()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1355,7 +1339,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glFramebufferRenderbuffer(\a target, \a attachment, \a renderbuffertarget, \a renderbuffer). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glFramebufferRenderbuffer.xhtml}{glFramebufferRenderbuffer()}. */ @@ -1364,7 +1348,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glFramebufferTexture2D(\a target, \a attachment, \a textarget, \a texture, \a level). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glFramebufferTexture2D.xhtml}{glFramebufferTexture2D()}. */ @@ -1373,7 +1357,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGenBuffers(\a n, \a buffers). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGenBuffers.xhtml}{glGenBuffers()}. */ @@ -1382,7 +1366,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGenerateMipmap(\a target). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGenerateMipmap.xhtml}{glGenerateMipmap()}. */ @@ -1391,7 +1375,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGenFramebuffers(\a n, \a framebuffers). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGenFramebuffers.xhtml}{glGenFramebuffers()}. */ @@ -1400,7 +1384,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGenRenderbuffers(\a n, \a renderbuffers). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGenRenderbuffers.xhtml}{glGenRenderbuffers()}. */ @@ -1409,7 +1393,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetActiveAttrib(\a program, \a index, \a bufsize, \a length, \a size, \a type, \a name). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetActiveAttrib.xhtml}{glGetActiveAttrib()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1420,7 +1404,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetActiveUniform(\a program, \a index, \a bufsize, \a length, \a size, \a type, \a name). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetActiveUniform.xhtml}{glGetActiveUniform()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1431,7 +1415,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetAttachedShaders(\a program, \a maxcount, \a count, \a shaders). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetAttachedShaders.xhtml}{glGetAttachedShaders()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1442,7 +1426,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetAttribLocation(\a program, \a name). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetAttribLocation.xhtml}{glGetAttribLocation()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1453,8 +1437,8 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetBufferParameteriv(\a target, \a pname, \a params). - For more information, see the OpenGL ES 2.0 documentation for - \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetBufferParameteriv.xhtml}{glGetBufferParameteriv()}. + For more information, see the OpenGL ES 3.X documentation for + \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetBufferParameter.xhtml}{glGetBufferParameteriv()}. */ /*! @@ -1462,7 +1446,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetFramebufferAttachmentParameteriv(\a target, \a attachment, \a pname, \a params). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetFramebufferAttachmentParameteriv.xhtml}{glGetFramebufferAttachmentParameteriv()}. */ @@ -1471,7 +1455,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetProgramiv(\a program, \a pname, \a params). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetProgramiv.xhtml}{glGetProgramiv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1482,7 +1466,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetProgramInfoLog(\a program, \a bufsize, \a length, \a infolog). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetProgramInfoLog.xhtml}{glGetProgramInfoLog()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1493,7 +1477,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetRenderbufferParameteriv(\a target, \a pname, \a params). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetRenderbufferParameteriv.xhtml}{glGetRenderbufferParameteriv()}. */ @@ -1502,7 +1486,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetShaderiv(\a shader, \a pname, \a params). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetShaderiv.xhtml}{glGetShaderiv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1513,7 +1497,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetShaderInfoLog(\a shader, \a bufsize, \a length, \a infolog). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetShaderInfoLog.xhtml}{glGetShaderInfoLog()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1524,7 +1508,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetShaderPrecisionFormat(\a shadertype, \a precisiontype, \a range, \a precision). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetShaderPrecisionFormat.xhtml}{glGetShaderPrecisionFormat()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1535,7 +1519,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetShaderSource(\a shader, \a bufsize, \a length, \a source). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetShaderSource.xhtml}{glGetShaderSource()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1546,7 +1530,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetUniformfv(\a program, \a location, \a params). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetUniform.xhtml}{glGetUniformfv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1557,7 +1541,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetUniformiv(\a program, \a location, \a params). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetUniform.xhtml}{glGetUniformiv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1568,7 +1552,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetUniformLocation(\a program, \a name). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetUniformLocation.xhtml}{glGetUniformLocation()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1579,8 +1563,8 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetVertexAttribfv(\a index, \a pname, \a params). - For more information, see the OpenGL ES 2.0 documentation for - \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetVertexAttribfv.xhtml}{glGetVertexAttribfv()}. + For more information, see the OpenGL ES 3.X documentation for + \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetVertexAttrib.xhtml}{glGetVertexAttribfv()}. This convenience function will do nothing on OpenGL ES 1.x systems. */ @@ -1590,8 +1574,8 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetVertexAttribiv(\a index, \a pname, \a params). - For more information, see the OpenGL ES 2.0 documentation for - \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetVertexAttribiv.xhtml}{glGetVertexAttribiv()}. + For more information, see the OpenGL ES 3.X documentation for + \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetVertexAttrib.xhtml}{glGetVertexAttribiv()}. This convenience function will do nothing on OpenGL ES 1.x systems. */ @@ -1601,7 +1585,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glGetVertexAttribPointerv(\a index, \a pname, \a pointer). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetVertexAttribPointerv.xhtml}{glGetVertexAttribPointerv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1612,7 +1596,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glIsBuffer(\a buffer). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glIsBuffer.xhtml}{glIsBuffer()}. */ @@ -1621,7 +1605,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glIsFramebuffer(\a framebuffer). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glIsFramebuffer.xhtml}{glIsFramebuffer()}. */ @@ -1630,7 +1614,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glIsProgram(\a program). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glIsProgram.xhtml}{glIsProgram()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1641,7 +1625,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glIsRenderbuffer(\a renderbuffer). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glIsRenderbuffer.xhtml}{glIsRenderbuffer()}. */ @@ -1650,7 +1634,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glIsShader(\a shader). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glIsShader.xhtml}{glIsShader()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1661,7 +1645,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glLinkProgram(\a program). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glLinkProgram.xhtml}{glLinkProgram()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1672,7 +1656,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glReleaseShaderCompiler(). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glReleaseShaderCompiler.xhtml}{glReleaseShaderCompiler()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1683,7 +1667,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glRenderbufferStorage(\a target, \a internalformat, \a width, \a height). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glRenderbufferStorage.xhtml}{glRenderbufferStorage()}. */ @@ -1692,7 +1676,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glSampleCoverage(\a value, \a invert). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glSampleCoverage.xhtml}{glSampleCoverage()}. */ @@ -1701,7 +1685,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glShaderBinary(\a n, \a shaders, \a binaryformat, \a binary, \a length). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glShaderBinary.xhtml}{glShaderBinary()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1712,7 +1696,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glShaderSource(\a shader, \a count, \a string, \a length). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glShaderSource.xhtml}{glShaderSource()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1723,7 +1707,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glStencilFuncSeparate(\a face, \a func, \a ref, \a mask). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glStencilFuncSeparate.xhtml}{glStencilFuncSeparate()}. */ @@ -1732,7 +1716,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glStencilMaskSeparate(\a face, \a mask). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glStencilMaskSeparate.xhtml}{glStencilMaskSeparate()}. */ @@ -1741,7 +1725,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glStencilOpSeparate(\a face, \a fail, \a zfail, \a zpass). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glStencilOpSeparate.xhtml}{glStencilOpSeparate()}. */ @@ -1750,7 +1734,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUniform1f(\a location, \a x). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform1f()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1761,7 +1745,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUniform1fv(\a location, \a count, \a v). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform1fv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1772,7 +1756,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUniform1i(\a location, \a x). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform1i()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1783,7 +1767,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUniform1iv(\a location, \a count, \a v). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform1iv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1794,7 +1778,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUniform2f(\a location, \a x, \a y). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform2f()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1805,7 +1789,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUniform2fv(\a location, \a count, \a v). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform2fv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1816,7 +1800,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUniform2i(\a location, \a x, \a y). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform2i()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1827,7 +1811,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUniform2iv(\a location, \a count, \a v). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform2iv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1838,7 +1822,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUniform3f(\a location, \a x, \a y, \a z). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform3f()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1849,7 +1833,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUniform3fv(\a location, \a count, \a v). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform3fv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1860,7 +1844,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUniform3i(\a location, \a x, \a y, \a z). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform3i()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1871,7 +1855,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUniform3iv(\a location, \a count, \a v). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform3iv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1882,7 +1866,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUniform4f(\a location, \a x, \a y, \a z, \a w). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform4f()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1893,7 +1877,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUniform4fv(\a location, \a count, \a v). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform4fv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1904,7 +1888,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUniform4i(\a location, \a x, \a y, \a z, \a w). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform4i()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1915,7 +1899,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUniform4iv(\a location, \a count, \a v). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniform4iv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1926,7 +1910,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUniformMatrix2fv(\a location, \a count, \a transpose, \a value). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniformMatrix2fv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1937,7 +1921,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUniformMatrix3fv(\a location, \a count, \a transpose, \a value). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniformMatrix3fv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1948,7 +1932,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUniformMatrix4fv(\a location, \a count, \a transpose, \a value). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUniform.xhtml}{glUniformMatrix4fv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1959,7 +1943,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glUseProgram(\a program). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUseProgram.xhtml}{glUseProgram()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1970,7 +1954,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glValidateProgram(\a program). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glValidateProgram.xhtml}{glValidateProgram()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1981,7 +1965,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glVertexAttrib1f(\a indx, \a x). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttrib1f()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -1992,7 +1976,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glVertexAttrib1fv(\a indx, \a values). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttrib1fv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -2003,7 +1987,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glVertexAttrib2f(\a indx, \a x, \a y). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttrib2f()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -2014,7 +1998,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glVertexAttrib2fv(\a indx, \a values). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttrib2fv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -2025,7 +2009,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glVertexAttrib3f(\a indx, \a x, \a y, \a z). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttrib3f()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -2036,7 +2020,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glVertexAttrib3fv(\a indx, \a values). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttrib3fv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -2047,7 +2031,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glVertexAttrib4f(\a indx, \a x, \a y, \a z, \a w). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttrib4f()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -2058,7 +2042,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glVertexAttrib4fv(\a indx, \a values). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glVertexAttrib.xhtml}{glVertexAttrib4fv()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -2069,7 +2053,7 @@ void QOpenGLFunctions::initializeOpenGLFunctions() Convenience function that calls glVertexAttribPointer(\a indx, \a size, \a type, \a normalized, \a stride, \a ptr). - For more information, see the OpenGL ES 2.0 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glVertexAttribPointer.xhtml}{glVertexAttribPointer()}. This convenience function will do nothing on OpenGL ES 1.x systems. @@ -2129,7 +2113,7 @@ Func resolve(QOpenGLContext *context, const char *name, Func) #define RESOLVE(name) \ resolve(context, "gl"#name, name) -#ifndef QT_OPENGL_ES_2 +#if !QT_CONFIG(opengles2) // some fallback functions static void QOPENGLF_APIENTRY qopenglfSpecialClearDepthf(GLclampf depth) @@ -2167,14 +2151,14 @@ static void QOPENGLF_APIENTRY qopenglfSpecialReleaseShaderCompiler() { } -#endif // !QT_OPENGL_ES_2 +#endif // !QT_CONFIG(opengles2) QOpenGLFunctionsPrivate::QOpenGLFunctionsPrivate(QOpenGLContext *c) { init(c); -#ifndef QT_OPENGL_ES_2 +#if !QT_CONFIG(opengles2) // setup fallbacks in case some methods couldn't get resolved bool es = QOpenGLContext::currentContext()->isOpenGLES(); if (!f.ClearDepthf || !es) @@ -2564,7 +2548,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) function either in core or as an extension. For more information, see the OpenGL ES 3.x documentation for - \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glEndQuery.xhtml}{glEndQuery()}. + \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBeginQuery.xhtml}{glEndQuery()}. */ /*! @@ -2577,7 +2561,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) function either in core or as an extension. For more information, see the OpenGL ES 3.x documentation for - \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glEndTransformFeedback.xhtml}{glEndTransformFeedback()}. + \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBeginTransformFeedback.xhtml}{glEndTransformFeedback()}. */ /*! @@ -3474,7 +3458,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) function either in core or as an extension. For more information, see the OpenGL ES 3.x documentation for - \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glUnmapBuffer.xhtml}{glUnmapBuffer()}. + \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glMapBufferRange.xhtml}{glUnmapBuffer()}. */ /*! @@ -3630,7 +3614,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) function either in core or as an extension. For more information, see the OpenGL ES 3.x documentation for - \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glCreateShaderProgramv.xhtml}{glCreateShaderProgramv()}. + \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glCreateShaderProgram.xhtml}{glCreateShaderProgramv()}. */ /*! @@ -4436,7 +4420,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) function either in core or as an extension. For more information, see the OpenGL ES 3.x documentation for - \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glVertexAttribIFormat.xhtml}{glVertexAttribIFormat()}. + \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glVertexAttribFormat.xhtml}{glVertexAttribIFormat()}. */ /*! @@ -4461,7 +4445,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBlendBarrier.xhtml}{glBlendBarrier()}. */ @@ -4474,7 +4458,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBlendEquationSeparate.xhtml}{glBlendEquationSeparatei()}. */ @@ -4487,8 +4471,8 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for - \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBlendEquationi.xhtml}{glBlendEquationi()}. + For more information, see the OpenGL ES 3.X documentation for + \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBlendEquation.xhtml}{glBlendEquationi()}. */ /*! @@ -4500,7 +4484,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBlendFuncSeparate.xhtml}{glBlendFuncSeparatei()}. */ @@ -4513,8 +4497,8 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for - \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBlendFunci.xhtml}{glBlendFunci()}. + For more information, see the OpenGL ES 3.X documentation for + \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glBlendFunc.xhtml}{glBlendFunci()}. */ /*! @@ -4526,7 +4510,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glColorMask.xhtml}{glColorMaski()}. */ @@ -4539,7 +4523,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glCopyImageSubData.xhtml}{glCopyImageSubData()}. */ @@ -4552,7 +4536,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDebugMessageCallback.xhtml}{glDebugMessageCallback()}. */ @@ -4565,7 +4549,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDebugMessageControl.xhtml}{glDebugMessageContro()}. */ @@ -4578,7 +4562,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDebugMessageInsert.xhtml}{glDebugMessageInsert()}. */ @@ -4591,7 +4575,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glEnable.xhtml}{glDisablei()}. */ @@ -4604,7 +4588,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDrawElementsBaseVertex.xhtml}{glDrawElementsBaseVerte()}. */ @@ -4617,7 +4601,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDrawElementsInstancedBaseVertex.xhtml}{glDrawElementsInstancedBaseVerte()}. */ @@ -4630,7 +4614,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDrawRangeElementsBaseVertex.xhtml}{glDrawRangeElementsBaseVerte()}. */ @@ -4643,8 +4627,8 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for - \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glEnablei.xhtml}{glEnablei()}. + For more information, see the OpenGL ES 3.X documentation for + \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glEnable.xhtml}{glEnablei()}. */ /*! @@ -4656,7 +4640,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glFramebufferTexture.xhtml}{glFramebufferTexture()}. */ @@ -4669,7 +4653,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetDebugMessageLog.xhtml}{glGetDebugMessageLog()}. */ @@ -4682,7 +4666,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetGraphicsResetStatus.xhtml}{glGetGraphicsResetStatus()}. */ @@ -4695,7 +4679,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetObjectLabel.xhtml}{glGetObjectLabe()}. */ @@ -4708,7 +4692,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetObjectPtrLabel.xhtml}{glGetObjectPtrLabe()}. */ @@ -4721,7 +4705,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetPointerv.xhtml}{glGetPointerv()}. */ @@ -4734,7 +4718,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetSamplerParameter.xhtml}{glGetSamplerParameterIiv()}. */ @@ -4747,7 +4731,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetSamplerParameter.xhtml}{glGetSamplerParameterIuiv()}. */ @@ -4760,7 +4744,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetTexParameter.xhtml}{glGetTexParameterIiv()}. */ @@ -4773,7 +4757,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetTexParameter.xhtml}{glGetTexParameterIuiv()}. */ @@ -4786,7 +4770,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetUniform.xhtml}{glGetnUniformfv()}. */ @@ -4799,7 +4783,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetUniform.xhtml}{glGetnUniformiv()}. */ @@ -4812,7 +4796,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetUniform.xhtml}{glGetnUniformuiv()}. */ @@ -4825,7 +4809,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glIsEnabled.xhtml}{glIsEnabledi()}. */ @@ -4838,7 +4822,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glMinSampleShading.xhtml}{glMinSampleShading()}. */ @@ -4851,7 +4835,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glObjectLabel.xhtml}{glObjectLabe()}. */ @@ -4864,7 +4848,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glObjectPtrLabel.xhtml}{glObjectPtrLabe()}. */ @@ -4877,7 +4861,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glPatchParameteri.xhtml}{glPatchParameteri()}. */ @@ -4890,7 +4874,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glPopDebugGroup.xhtml}{glPopDebugGroup()}. */ @@ -4903,7 +4887,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glPrimitiveBoundingBox.xhtml}{glPrimitiveBoundingBo()}. */ @@ -4916,7 +4900,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glPushDebugGroup.xhtml}{glPushDebugGroup()}. */ @@ -4929,7 +4913,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glReadPixels.xhtml}{glReadnPixels()}. */ @@ -4942,7 +4926,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glSamplerParameter.xhtml}{glSamplerParameterIiv()}. */ @@ -4955,7 +4939,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glSamplerParameter.xhtml}{glSamplerParameterIuiv()}. */ @@ -4968,7 +4952,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glTexBuffer.xhtml}{glTexBuffer()}. */ @@ -4981,7 +4965,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glTexBufferRange.xhtml}{glTexBufferRange()}. */ @@ -4994,7 +4978,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glTexParameter.xhtml}{glTexParameterIiv()}. */ @@ -5007,7 +4991,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glTexParameter.xhtml}{glTexParameterIuiv()}. */ @@ -5020,7 +5004,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) with plain OpenGL, the function is only usable when the given profile and version contains the function either in core or as an extension. - For more information, see the OpenGL ES 3.2 documentation for + For more information, see the OpenGL ES 3.X documentation for \l{https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glTexStorage3DMultisample.xhtml}{glTexStorage3DMultisample()}. */ @@ -5071,7 +5055,23 @@ QOpenGLExtensionsPrivate::QOpenGLExtensionsPrivate(QOpenGLContext *ctx) MapBuffer = RESOLVE(MapBuffer); GetBufferSubData = RESOLVE(GetBufferSubData); DiscardFramebuffer = RESOLVE(DiscardFramebuffer); - } +} + +void QOpenGLExtensions::discardFramebuffer(GLenum target, GLsizei numAttachments, const GLenum *attachments) +{ + Q_D(QOpenGLExtensions); + Q_ASSERT(QOpenGLExtensions::isInitialized(d)); + Q_ASSERT(d->f.InvalidateFramebuffer || d->DiscardFramebuffer); + + // On GLES >= 3 we prefer glInvalidateFramebuffer, even if the + // discard extension is present + if (d->f.InvalidateFramebuffer) + d->f.InvalidateFramebuffer(target, numAttachments, attachments); + else + d->DiscardFramebuffer(target, numAttachments, attachments); + + Q_OPENGL_FUNCTIONS_DEBUG +} void QOpenGLExtensions::flushShared() { |