/**************************************************************************** ** ** Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB) ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtGui module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** 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 Digia. For licensing terms and ** conditions see http://qt.digia.com/licensing. For further information ** use the contact form at http://qt.digia.com/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 2.1 or version 3 as published by the Free ** Software Foundation and appearing in the file LICENSE.LGPLv21 and ** LICENSE.LGPLv3 included in the packaging of this file. Please review the ** following information to ensure the GNU Lesser General Public License ** requirements will be met: https://www.gnu.org/licenses/lgpl.html and ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ** In addition, as a special exception, Digia gives you certain additional ** rights. These rights are described in the Digia Qt LGPL Exception ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. ** ** $QT_END_LICENSE$ ** ** ** This file was generated by glgen version 0.1 ** Command line was: glgen ** ** glgen is Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB) ** ** This is an auto-generated file. ** Do not edit! All changes made to it will be lost. ** ****************************************************************************/ #include "qopenglversionfunctions.h" #include "qopenglcontext.h" #include "qdebug.h" QT_BEGIN_NAMESPACE QOpenGLVersionFunctionsBackend *QAbstractOpenGLFunctionsPrivate::functionsBackend(QOpenGLContext *context, const QOpenGLVersionStatus &v) { Q_ASSERT(context); return context->functionsBackend(v); } void QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(QOpenGLContext *context, const QOpenGLVersionStatus &v, QOpenGLVersionFunctionsBackend *backend) { Q_ASSERT(context); context->insertFunctionsBackend(v, backend); } void QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(QOpenGLContext *context, const QOpenGLVersionStatus &v) { Q_ASSERT(context); context->removeFunctionsBackend(v); } /*! \class QAbstractOpenGLFunctions \inmodule QtGui \since 5.1 \brief The QAbstractOpenGLFunctions class is the base class of a family of classes that expose all functions for each OpenGL version and profile. OpenGL implementations on different platforms are able to link to a variable number of OpenGL functions depending upon the OpenGL ABI on that platform. For example, on Microsoft Windows only functions up to those in OpenGL 1.1 can be linked to at build time. All other functions must be resolved at runtime. The traditional solution to this has been to use either QOpenGLContext::getProcAddress() or QOpenGLFunctions. The former is tedious and error prone and means dealing directly with function pointers. The latter only exposes those functions common to OpenGL ES 2 and desktop OpenGL. There is however much new OpenGL functionality that is useful when writing real world OpenGL applications. Qt now provides a family of classes which all inherit from QAbstractOpenGLFunctions which expose every core OpenGL function by way of a corresponding member function. There is a class for every valid combination of OpenGL version and profile. Each class follows the naming convention: \badcode QOpenGLFunctions__[_PROFILE] \endcode For OpenGL versions 1.0 through to 3.0 there are no profiles, leading to the classes: \list \li QOpenGLFunctions_1_0 \li QOpenGLFunctions_1_1 \li QOpenGLFunctions_1_2 \li QOpenGLFunctions_1_3 \li QOpenGLFunctions_1_4 \li QOpenGLFunctions_1_5 \li QOpenGLFunctions_2_0 \li QOpenGLFunctions_2_1 \li QOpenGLFunctions_3_0 \endlist where each class inherits from QAbstractOpenGLFunctions. OpenGL version 3.1 removed many deprecated functions leading to a much simpler and generic API. With OpenGL 3.2 the concept of profiles was introduced. Two profiles are currently defined for OpenGL: Core and Compatibility. The Core profile does not include any of the functions that were removed in OpenGL 3.1. The Compatibility profile contains all functions in the Core profile of the same version plus all of the functions that were removed in OpenGL 3.1. In this way the Compatibility profile classes allow use of newer OpenGL functionality but also allows you to keep using your legacy OpenGL code. For new OpenGL code the Core profile should be preferred. Please note that some vendors, notably Apple, do not implement the Compatibility profile. Therefore if you wish to target new OpenGL features on OS X then you should ensure that you request a Core profile context via QSurfaceFormat::setProfile(). Qt provides classes for all version and Core and Compatibility profile combinations. The classes for OpenGL versions 3.1 through to 4.3 are: \list \li QOpenGLFunctions_3_1 \li QOpenGLFunctions_3_2_Core \li QOpenGLFunctions_3_2_Compatibility \li QOpenGLFunctions_3_3_Core \li QOpenGLFunctions_3_3_Compatibility \li QOpenGLFunctions_4_0_Core \li QOpenGLFunctions_4_0_Compatibility \li QOpenGLFunctions_4_1_Core \li QOpenGLFunctions_4_1_Compatibility \li QOpenGLFunctions_4_2_Core \li QOpenGLFunctions_4_2_Compatibility \li QOpenGLFunctions_4_3_Core \li QOpenGLFunctions_4_3_Compatibility \endlist where each class inherits from QAbstractOpenGLFunctions. A pointer to an object of the class corresponding to the version and profile of OpenGL in use can be obtained from QOpenGLContext::versionFunctions(). If obtained in this way, note that the QOpenGLContext retains ownership of the object. This is so that only one instance need be created. Before calling any of the exposed OpenGL functions you must ensure that the object has resolved the function pointers to the OpenGL functions. This only needs to be done once per instance with initializeOpenGLFunctions(). Once initialized, the object can be used to call any OpenGL function for the corresponding version and profile. Note that initializeOpenGLFunctions() can fail in some circumstances so check the return value. Situations in which initialization can fail are if you have a functions object for a version or profile that contains functions that are not part of the context being used to resolve the function pointers. If you exclusively use function objects then you will get compile time errors if you attempt to use a function not included in that version and profile. This is obviously a lot easier to debug than undefined behavior at run time. \sa QOpenGLContext::versionFunctions() */ QAbstractOpenGLFunctions::QAbstractOpenGLFunctions() : d_ptr(new QAbstractOpenGLFunctionsPrivate) { } QAbstractOpenGLFunctions::~QAbstractOpenGLFunctions() { delete d_ptr; } /*! \internal */ bool QAbstractOpenGLFunctions::initializeOpenGLFunctions() { Q_D(QAbstractOpenGLFunctions); d->initialized = true; return true; } /*! \internal */ bool QAbstractOpenGLFunctions::isInitialized() const { Q_D(const QAbstractOpenGLFunctions); return d->initialized; } void QAbstractOpenGLFunctions::setOwningContext(const QOpenGLContext *context) { Q_D(QAbstractOpenGLFunctions); d->owningContext = const_cast(context); } QOpenGLContext *QAbstractOpenGLFunctions::owningContext() const { Q_D(const QAbstractOpenGLFunctions); return d->owningContext; } #if !defined(QT_OPENGL_ES_2) QOpenGLFunctions_1_0_CoreBackend::QOpenGLFunctions_1_0_CoreBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 1.0 core functions #if defined(Q_OS_WIN) HMODULE handle = static_cast(QOpenGLContext::openGLModuleHandle()); if (!handle) handle = GetModuleHandleA("opengl32.dll"); Viewport = reinterpret_cast(GetProcAddress(handle, "glViewport")); DepthRange = reinterpret_cast(GetProcAddress(handle, "glDepthRange")); IsEnabled = reinterpret_cast(GetProcAddress(handle, "glIsEnabled")); GetTexLevelParameteriv = reinterpret_cast(GetProcAddress(handle, "glGetTexLevelParameteriv")); GetTexLevelParameterfv = reinterpret_cast(GetProcAddress(handle, "glGetTexLevelParameterfv")); GetTexParameteriv = reinterpret_cast(GetProcAddress(handle, "glGetTexParameteriv")); GetTexParameterfv = reinterpret_cast(GetProcAddress(handle, "glGetTexParameterfv")); GetTexImage = reinterpret_cast(GetProcAddress(handle, "glGetTexImage")); GetString = reinterpret_cast(GetProcAddress(handle, "glGetString")); GetIntegerv = reinterpret_cast(GetProcAddress(handle, "glGetIntegerv")); GetFloatv = reinterpret_cast(GetProcAddress(handle, "glGetFloatv")); GetError = reinterpret_cast(GetProcAddress(handle, "glGetError")); GetDoublev = reinterpret_cast(GetProcAddress(handle, "glGetDoublev")); GetBooleanv = reinterpret_cast(GetProcAddress(handle, "glGetBooleanv")); ReadPixels = reinterpret_cast(GetProcAddress(handle, "glReadPixels")); ReadBuffer = reinterpret_cast(GetProcAddress(handle, "glReadBuffer")); PixelStorei = reinterpret_cast(GetProcAddress(handle, "glPixelStorei")); PixelStoref = reinterpret_cast(GetProcAddress(handle, "glPixelStoref")); DepthFunc = reinterpret_cast(GetProcAddress(handle, "glDepthFunc")); StencilOp = reinterpret_cast(GetProcAddress(handle, "glStencilOp")); StencilFunc = reinterpret_cast(GetProcAddress(handle, "glStencilFunc")); LogicOp = reinterpret_cast(GetProcAddress(handle, "glLogicOp")); BlendFunc = reinterpret_cast(GetProcAddress(handle, "glBlendFunc")); Flush = reinterpret_cast(GetProcAddress(handle, "glFlush")); Finish = reinterpret_cast(GetProcAddress(handle, "glFinish")); Enable = reinterpret_cast(GetProcAddress(handle, "glEnable")); Disable = reinterpret_cast(GetProcAddress(handle, "glDisable")); DepthMask = reinterpret_cast(GetProcAddress(handle, "glDepthMask")); ColorMask = reinterpret_cast(GetProcAddress(handle, "glColorMask")); StencilMask = reinterpret_cast(GetProcAddress(handle, "glStencilMask")); ClearDepth = reinterpret_cast(GetProcAddress(handle, "glClearDepth")); ClearStencil = reinterpret_cast(GetProcAddress(handle, "glClearStencil")); ClearColor = reinterpret_cast(GetProcAddress(handle, "glClearColor")); Clear = reinterpret_cast(GetProcAddress(handle, "glClear")); DrawBuffer = reinterpret_cast(GetProcAddress(handle, "glDrawBuffer")); TexImage2D = reinterpret_cast(GetProcAddress(handle, "glTexImage2D")); TexImage1D = reinterpret_cast(GetProcAddress(handle, "glTexImage1D")); TexParameteriv = reinterpret_cast(GetProcAddress(handle, "glTexParameteriv")); TexParameteri = reinterpret_cast(GetProcAddress(handle, "glTexParameteri")); TexParameterfv = reinterpret_cast(GetProcAddress(handle, "glTexParameterfv")); TexParameterf = reinterpret_cast(GetProcAddress(handle, "glTexParameterf")); Scissor = reinterpret_cast(GetProcAddress(handle, "glScissor")); PolygonMode = reinterpret_cast(GetProcAddress(handle, "glPolygonMode")); PointSize = reinterpret_cast(GetProcAddress(handle, "glPointSize")); LineWidth = reinterpret_cast(GetProcAddress(handle, "glLineWidth")); Hint = reinterpret_cast(GetProcAddress(handle, "glHint")); FrontFace = reinterpret_cast(GetProcAddress(handle, "glFrontFace")); CullFace = reinterpret_cast(GetProcAddress(handle, "glCullFace")); #else Viewport = reinterpret_cast(context->getProcAddress("glViewport")); DepthRange = reinterpret_cast(context->getProcAddress("glDepthRange")); IsEnabled = reinterpret_cast(context->getProcAddress("glIsEnabled")); GetTexLevelParameteriv = reinterpret_cast(context->getProcAddress("glGetTexLevelParameteriv")); GetTexLevelParameterfv = reinterpret_cast(context->getProcAddress("glGetTexLevelParameterfv")); GetTexParameteriv = reinterpret_cast(context->getProcAddress("glGetTexParameteriv")); GetTexParameterfv = reinterpret_cast(context->getProcAddress("glGetTexParameterfv")); GetTexImage = reinterpret_cast(context->getProcAddress("glGetTexImage")); GetString = reinterpret_cast(context->getProcAddress("glGetString")); GetIntegerv = reinterpret_cast(context->getProcAddress("glGetIntegerv")); GetFloatv = reinterpret_cast(context->getProcAddress("glGetFloatv")); GetError = reinterpret_cast(context->getProcAddress("glGetError")); GetDoublev = reinterpret_cast(context->getProcAddress("glGetDoublev")); GetBooleanv = reinterpret_cast(context->getProcAddress("glGetBooleanv")); ReadPixels = reinterpret_cast(context->getProcAddress("glReadPixels")); ReadBuffer = reinterpret_cast(context->getProcAddress("glReadBuffer")); PixelStorei = reinterpret_cast(context->getProcAddress("glPixelStorei")); PixelStoref = reinterpret_cast(context->getProcAddress("glPixelStoref")); DepthFunc = reinterpret_cast(context->getProcAddress("glDepthFunc")); StencilOp = reinterpret_cast(context->getProcAddress("glStencilOp")); StencilFunc = reinterpret_cast(context->getProcAddress("glStencilFunc")); LogicOp = reinterpret_cast(context->getProcAddress("glLogicOp")); BlendFunc = reinterpret_cast(context->getProcAddress("glBlendFunc")); Flush = reinterpret_cast(context->getProcAddress("glFlush")); Finish = reinterpret_cast(context->getProcAddress("glFinish")); Enable = reinterpret_cast(context->getProcAddress("glEnable")); Disable = reinterpret_cast(context->getProcAddress("glDisable")); DepthMask = reinterpret_cast(context->getProcAddress("glDepthMask")); ColorMask = reinterpret_cast(context->getProcAddress("glColorMask")); StencilMask = reinterpret_cast(context->getProcAddress("glStencilMask")); ClearDepth = reinterpret_cast(context->getProcAddress("glClearDepth")); ClearStencil = reinterpret_cast(context->getProcAddress("glClearStencil")); ClearColor = reinterpret_cast(context->getProcAddress("glClearColor")); Clear = reinterpret_cast(context->getProcAddress("glClear")); DrawBuffer = reinterpret_cast(context->getProcAddress("glDrawBuffer")); TexImage2D = reinterpret_cast(context->getProcAddress("glTexImage2D")); TexImage1D = reinterpret_cast(context->getProcAddress("glTexImage1D")); TexParameteriv = reinterpret_cast(context->getProcAddress("glTexParameteriv")); TexParameteri = reinterpret_cast(context->getProcAddress("glTexParameteri")); TexParameterfv = reinterpret_cast(context->getProcAddress("glTexParameterfv")); TexParameterf = reinterpret_cast(context->getProcAddress("glTexParameterf")); Scissor = reinterpret_cast(context->getProcAddress("glScissor")); PolygonMode = reinterpret_cast(context->getProcAddress("glPolygonMode")); PointSize = reinterpret_cast(context->getProcAddress("glPointSize")); LineWidth = reinterpret_cast(context->getProcAddress("glLineWidth")); Hint = reinterpret_cast(context->getProcAddress("glHint")); FrontFace = reinterpret_cast(context->getProcAddress("glFrontFace")); CullFace = reinterpret_cast(context->getProcAddress("glCullFace")); #endif } QOpenGLVersionStatus QOpenGLFunctions_1_0_CoreBackend::versionStatus() { return QOpenGLVersionStatus(1, 0, QOpenGLVersionStatus::CoreStatus); } QOpenGLFunctions_1_1_CoreBackend::QOpenGLFunctions_1_1_CoreBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 1.1 core functions #if defined(Q_OS_WIN) HMODULE handle = static_cast(QOpenGLContext::openGLModuleHandle()); if (!handle) handle = GetModuleHandleA("opengl32.dll"); IsTexture = reinterpret_cast(GetProcAddress(handle, "glIsTexture")); GenTextures = reinterpret_cast(GetProcAddress(handle, "glGenTextures")); DeleteTextures = reinterpret_cast(GetProcAddress(handle, "glDeleteTextures")); BindTexture = reinterpret_cast(GetProcAddress(handle, "glBindTexture")); TexSubImage2D = reinterpret_cast(GetProcAddress(handle, "glTexSubImage2D")); TexSubImage1D = reinterpret_cast(GetProcAddress(handle, "glTexSubImage1D")); CopyTexSubImage2D = reinterpret_cast(GetProcAddress(handle, "glCopyTexSubImage2D")); CopyTexSubImage1D = reinterpret_cast(GetProcAddress(handle, "glCopyTexSubImage1D")); CopyTexImage2D = reinterpret_cast(GetProcAddress(handle, "glCopyTexImage2D")); CopyTexImage1D = reinterpret_cast(GetProcAddress(handle, "glCopyTexImage1D")); PolygonOffset = reinterpret_cast(GetProcAddress(handle, "glPolygonOffset")); DrawElements = reinterpret_cast(GetProcAddress(handle, "glDrawElements")); DrawArrays = reinterpret_cast(GetProcAddress(handle, "glDrawArrays")); #else IsTexture = reinterpret_cast(context->getProcAddress("glIsTexture")); GenTextures = reinterpret_cast(context->getProcAddress("glGenTextures")); DeleteTextures = reinterpret_cast(context->getProcAddress("glDeleteTextures")); BindTexture = reinterpret_cast(context->getProcAddress("glBindTexture")); TexSubImage2D = reinterpret_cast(context->getProcAddress("glTexSubImage2D")); TexSubImage1D = reinterpret_cast(context->getProcAddress("glTexSubImage1D")); CopyTexSubImage2D = reinterpret_cast(context->getProcAddress("glCopyTexSubImage2D")); CopyTexSubImage1D = reinterpret_cast(context->getProcAddress("glCopyTexSubImage1D")); CopyTexImage2D = reinterpret_cast(context->getProcAddress("glCopyTexImage2D")); CopyTexImage1D = reinterpret_cast(context->getProcAddress("glCopyTexImage1D")); PolygonOffset = reinterpret_cast(context->getProcAddress("glPolygonOffset")); DrawElements = reinterpret_cast(context->getProcAddress("glDrawElements")); DrawArrays = reinterpret_cast(context->getProcAddress("glDrawArrays")); #endif } QOpenGLVersionStatus QOpenGLFunctions_1_1_CoreBackend::versionStatus() { return QOpenGLVersionStatus(1, 1, QOpenGLVersionStatus::CoreStatus); } QOpenGLFunctions_1_2_CoreBackend::QOpenGLFunctions_1_2_CoreBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 1.2 core functions CopyTexSubImage3D = reinterpret_cast(context->getProcAddress("glCopyTexSubImage3D")); TexSubImage3D = reinterpret_cast(context->getProcAddress("glTexSubImage3D")); TexImage3D = reinterpret_cast(context->getProcAddress("glTexImage3D")); DrawRangeElements = reinterpret_cast(context->getProcAddress("glDrawRangeElements")); BlendEquation = reinterpret_cast(context->getProcAddress("glBlendEquation")); BlendColor = reinterpret_cast(context->getProcAddress("glBlendColor")); } QOpenGLVersionStatus QOpenGLFunctions_1_2_CoreBackend::versionStatus() { return QOpenGLVersionStatus(1, 2, QOpenGLVersionStatus::CoreStatus); } QOpenGLFunctions_1_3_CoreBackend::QOpenGLFunctions_1_3_CoreBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 1.3 core functions GetCompressedTexImage = reinterpret_cast(context->getProcAddress("glGetCompressedTexImage")); CompressedTexSubImage1D = reinterpret_cast(context->getProcAddress("glCompressedTexSubImage1D")); CompressedTexSubImage2D = reinterpret_cast(context->getProcAddress("glCompressedTexSubImage2D")); CompressedTexSubImage3D = reinterpret_cast(context->getProcAddress("glCompressedTexSubImage3D")); CompressedTexImage1D = reinterpret_cast(context->getProcAddress("glCompressedTexImage1D")); CompressedTexImage2D = reinterpret_cast(context->getProcAddress("glCompressedTexImage2D")); CompressedTexImage3D = reinterpret_cast(context->getProcAddress("glCompressedTexImage3D")); SampleCoverage = reinterpret_cast(context->getProcAddress("glSampleCoverage")); ActiveTexture = reinterpret_cast(context->getProcAddress("glActiveTexture")); } QOpenGLVersionStatus QOpenGLFunctions_1_3_CoreBackend::versionStatus() { return QOpenGLVersionStatus(1, 3, QOpenGLVersionStatus::CoreStatus); } QOpenGLFunctions_1_4_CoreBackend::QOpenGLFunctions_1_4_CoreBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 1.4 core functions PointParameteriv = reinterpret_cast(context->getProcAddress("glPointParameteriv")); PointParameteri = reinterpret_cast(context->getProcAddress("glPointParameteri")); PointParameterfv = reinterpret_cast(context->getProcAddress("glPointParameterfv")); PointParameterf = reinterpret_cast(context->getProcAddress("glPointParameterf")); MultiDrawElements = reinterpret_cast(context->getProcAddress("glMultiDrawElements")); MultiDrawArrays = reinterpret_cast(context->getProcAddress("glMultiDrawArrays")); BlendFuncSeparate = reinterpret_cast(context->getProcAddress("glBlendFuncSeparate")); } QOpenGLVersionStatus QOpenGLFunctions_1_4_CoreBackend::versionStatus() { return QOpenGLVersionStatus(1, 4, QOpenGLVersionStatus::CoreStatus); } QOpenGLFunctions_1_5_CoreBackend::QOpenGLFunctions_1_5_CoreBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 1.5 core functions GetBufferPointerv = reinterpret_cast(context->getProcAddress("glGetBufferPointerv")); GetBufferParameteriv = reinterpret_cast(context->getProcAddress("glGetBufferParameteriv")); UnmapBuffer = reinterpret_cast(context->getProcAddress("glUnmapBuffer")); MapBuffer = reinterpret_cast(context->getProcAddress("glMapBuffer")); GetBufferSubData = reinterpret_cast(context->getProcAddress("glGetBufferSubData")); BufferSubData = reinterpret_cast(context->getProcAddress("glBufferSubData")); BufferData = reinterpret_cast(context->getProcAddress("glBufferData")); IsBuffer = reinterpret_cast(context->getProcAddress("glIsBuffer")); GenBuffers = reinterpret_cast(context->getProcAddress("glGenBuffers")); DeleteBuffers = reinterpret_cast(context->getProcAddress("glDeleteBuffers")); BindBuffer = reinterpret_cast(context->getProcAddress("glBindBuffer")); GetQueryObjectuiv = reinterpret_cast(context->getProcAddress("glGetQueryObjectuiv")); GetQueryObjectiv = reinterpret_cast(context->getProcAddress("glGetQueryObjectiv")); GetQueryiv = reinterpret_cast(context->getProcAddress("glGetQueryiv")); EndQuery = reinterpret_cast(context->getProcAddress("glEndQuery")); BeginQuery = reinterpret_cast(context->getProcAddress("glBeginQuery")); IsQuery = reinterpret_cast(context->getProcAddress("glIsQuery")); DeleteQueries = reinterpret_cast(context->getProcAddress("glDeleteQueries")); GenQueries = reinterpret_cast(context->getProcAddress("glGenQueries")); } QOpenGLVersionStatus QOpenGLFunctions_1_5_CoreBackend::versionStatus() { return QOpenGLVersionStatus(1, 5, QOpenGLVersionStatus::CoreStatus); } QOpenGLFunctions_2_0_CoreBackend::QOpenGLFunctions_2_0_CoreBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 2.0 core functions VertexAttribPointer = reinterpret_cast(context->getProcAddress("glVertexAttribPointer")); VertexAttrib4usv = reinterpret_cast(context->getProcAddress("glVertexAttrib4usv")); VertexAttrib4uiv = reinterpret_cast(context->getProcAddress("glVertexAttrib4uiv")); VertexAttrib4ubv = reinterpret_cast(context->getProcAddress("glVertexAttrib4ubv")); VertexAttrib4sv = reinterpret_cast(context->getProcAddress("glVertexAttrib4sv")); VertexAttrib4s = reinterpret_cast(context->getProcAddress("glVertexAttrib4s")); VertexAttrib4iv = reinterpret_cast(context->getProcAddress("glVertexAttrib4iv")); VertexAttrib4fv = reinterpret_cast(context->getProcAddress("glVertexAttrib4fv")); VertexAttrib4f = reinterpret_cast(context->getProcAddress("glVertexAttrib4f")); VertexAttrib4dv = reinterpret_cast(context->getProcAddress("glVertexAttrib4dv")); VertexAttrib4d = reinterpret_cast(context->getProcAddress("glVertexAttrib4d")); VertexAttrib4bv = reinterpret_cast(context->getProcAddress("glVertexAttrib4bv")); VertexAttrib4Nusv = reinterpret_cast(context->getProcAddress("glVertexAttrib4Nusv")); VertexAttrib4Nuiv = reinterpret_cast(context->getProcAddress("glVertexAttrib4Nuiv")); VertexAttrib4Nubv = reinterpret_cast(context->getProcAddress("glVertexAttrib4Nubv")); VertexAttrib4Nub = reinterpret_cast(context->getProcAddress("glVertexAttrib4Nub")); VertexAttrib4Nsv = reinterpret_cast(context->getProcAddress("glVertexAttrib4Nsv")); VertexAttrib4Niv = reinterpret_cast(context->getProcAddress("glVertexAttrib4Niv")); VertexAttrib4Nbv = reinterpret_cast(context->getProcAddress("glVertexAttrib4Nbv")); VertexAttrib3sv = reinterpret_cast(context->getProcAddress("glVertexAttrib3sv")); VertexAttrib3s = reinterpret_cast(context->getProcAddress("glVertexAttrib3s")); VertexAttrib3fv = reinterpret_cast(context->getProcAddress("glVertexAttrib3fv")); VertexAttrib3f = reinterpret_cast(context->getProcAddress("glVertexAttrib3f")); VertexAttrib3dv = reinterpret_cast(context->getProcAddress("glVertexAttrib3dv")); VertexAttrib3d = reinterpret_cast(context->getProcAddress("glVertexAttrib3d")); VertexAttrib2sv = reinterpret_cast(context->getProcAddress("glVertexAttrib2sv")); VertexAttrib2s = reinterpret_cast(context->getProcAddress("glVertexAttrib2s")); VertexAttrib2fv = reinterpret_cast(context->getProcAddress("glVertexAttrib2fv")); VertexAttrib2f = reinterpret_cast(context->getProcAddress("glVertexAttrib2f")); VertexAttrib2dv = reinterpret_cast(context->getProcAddress("glVertexAttrib2dv")); VertexAttrib2d = reinterpret_cast(context->getProcAddress("glVertexAttrib2d")); VertexAttrib1sv = reinterpret_cast(context->getProcAddress("glVertexAttrib1sv")); VertexAttrib1s = reinterpret_cast(context->getProcAddress("glVertexAttrib1s")); VertexAttrib1fv = reinterpret_cast(context->getProcAddress("glVertexAttrib1fv")); VertexAttrib1f = reinterpret_cast(context->getProcAddress("glVertexAttrib1f")); VertexAttrib1dv = reinterpret_cast(context->getProcAddress("glVertexAttrib1dv")); VertexAttrib1d = reinterpret_cast(context->getProcAddress("glVertexAttrib1d")); ValidateProgram = reinterpret_cast(context->getProcAddress("glValidateProgram")); UniformMatrix4fv = reinterpret_cast(context->getProcAddress("glUniformMatrix4fv")); UniformMatrix3fv = reinterpret_cast(context->getProcAddress("glUniformMatrix3fv")); UniformMatrix2fv = reinterpret_cast(context->getProcAddress("glUniformMatrix2fv")); Uniform4iv = reinterpret_cast(context->getProcAddress("glUniform4iv")); Uniform3iv = reinterpret_cast(context->getProcAddress("glUniform3iv")); Uniform2iv = reinterpret_cast(context->getProcAddress("glUniform2iv")); Uniform1iv = reinterpret_cast(context->getProcAddress("glUniform1iv")); Uniform4fv = reinterpret_cast(context->getProcAddress("glUniform4fv")); Uniform3fv = reinterpret_cast(context->getProcAddress("glUniform3fv")); Uniform2fv = reinterpret_cast(context->getProcAddress("glUniform2fv")); Uniform1fv = reinterpret_cast(context->getProcAddress("glUniform1fv")); Uniform4i = reinterpret_cast(context->getProcAddress("glUniform4i")); Uniform3i = reinterpret_cast(context->getProcAddress("glUniform3i")); Uniform2i = reinterpret_cast(context->getProcAddress("glUniform2i")); Uniform1i = reinterpret_cast(context->getProcAddress("glUniform1i")); Uniform4f = reinterpret_cast(context->getProcAddress("glUniform4f")); Uniform3f = reinterpret_cast(context->getProcAddress("glUniform3f")); Uniform2f = reinterpret_cast(context->getProcAddress("glUniform2f")); Uniform1f = reinterpret_cast(context->getProcAddress("glUniform1f")); UseProgram = reinterpret_cast(context->getProcAddress("glUseProgram")); ShaderSource = reinterpret_cast(context->getProcAddress("glShaderSource")); LinkProgram = reinterpret_cast(context->getProcAddress("glLinkProgram")); IsShader = reinterpret_cast(context->getProcAddress("glIsShader")); IsProgram = reinterpret_cast(context->getProcAddress("glIsProgram")); GetVertexAttribPointerv = reinterpret_cast(context->getProcAddress("glGetVertexAttribPointerv")); GetVertexAttribiv = reinterpret_cast(context->getProcAddress("glGetVertexAttribiv")); GetVertexAttribfv = reinterpret_cast(context->getProcAddress("glGetVertexAttribfv")); GetVertexAttribdv = reinterpret_cast(context->getProcAddress("glGetVertexAttribdv")); GetUniformiv = reinterpret_cast(context->getProcAddress("glGetUniformiv")); GetUniformfv = reinterpret_cast(context->getProcAddress("glGetUniformfv")); GetUniformLocation = reinterpret_cast(context->getProcAddress("glGetUniformLocation")); GetShaderSource = reinterpret_cast(context->getProcAddress("glGetShaderSource")); GetShaderInfoLog = reinterpret_cast(context->getProcAddress("glGetShaderInfoLog")); GetShaderiv = reinterpret_cast(context->getProcAddress("glGetShaderiv")); GetProgramInfoLog = reinterpret_cast(context->getProcAddress("glGetProgramInfoLog")); GetProgramiv = reinterpret_cast(context->getProcAddress("glGetProgramiv")); GetAttribLocation = reinterpret_cast(context->getProcAddress("glGetAttribLocation")); GetAttachedShaders = reinterpret_cast(context->getProcAddress("glGetAttachedShaders")); GetActiveUniform = reinterpret_cast(context->getProcAddress("glGetActiveUniform")); GetActiveAttrib = reinterpret_cast(context->getProcAddress("glGetActiveAttrib")); EnableVertexAttribArray = reinterpret_cast(context->getProcAddress("glEnableVertexAttribArray")); DisableVertexAttribArray = reinterpret_cast(context->getProcAddress("glDisableVertexAttribArray")); DetachShader = reinterpret_cast(context->getProcAddress("glDetachShader")); DeleteShader = reinterpret_cast(context->getProcAddress("glDeleteShader")); DeleteProgram = reinterpret_cast(context->getProcAddress("glDeleteProgram")); CreateShader = reinterpret_cast(context->getProcAddress("glCreateShader")); CreateProgram = reinterpret_cast(context->getProcAddress("glCreateProgram")); CompileShader = reinterpret_cast(context->getProcAddress("glCompileShader")); BindAttribLocation = reinterpret_cast(context->getProcAddress("glBindAttribLocation")); AttachShader = reinterpret_cast(context->getProcAddress("glAttachShader")); StencilMaskSeparate = reinterpret_cast(context->getProcAddress("glStencilMaskSeparate")); StencilFuncSeparate = reinterpret_cast(context->getProcAddress("glStencilFuncSeparate")); StencilOpSeparate = reinterpret_cast(context->getProcAddress("glStencilOpSeparate")); DrawBuffers = reinterpret_cast(context->getProcAddress("glDrawBuffers")); BlendEquationSeparate = reinterpret_cast(context->getProcAddress("glBlendEquationSeparate")); } QOpenGLVersionStatus QOpenGLFunctions_2_0_CoreBackend::versionStatus() { return QOpenGLVersionStatus(2, 0, QOpenGLVersionStatus::CoreStatus); } QOpenGLFunctions_2_1_CoreBackend::QOpenGLFunctions_2_1_CoreBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 2.1 core functions UniformMatrix4x3fv = reinterpret_cast(context->getProcAddress("glUniformMatrix4x3fv")); UniformMatrix3x4fv = reinterpret_cast(context->getProcAddress("glUniformMatrix3x4fv")); UniformMatrix4x2fv = reinterpret_cast(context->getProcAddress("glUniformMatrix4x2fv")); UniformMatrix2x4fv = reinterpret_cast(context->getProcAddress("glUniformMatrix2x4fv")); UniformMatrix3x2fv = reinterpret_cast(context->getProcAddress("glUniformMatrix3x2fv")); UniformMatrix2x3fv = reinterpret_cast(context->getProcAddress("glUniformMatrix2x3fv")); } QOpenGLVersionStatus QOpenGLFunctions_2_1_CoreBackend::versionStatus() { return QOpenGLVersionStatus(2, 1, QOpenGLVersionStatus::CoreStatus); } QOpenGLFunctions_3_0_CoreBackend::QOpenGLFunctions_3_0_CoreBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 3.0 core functions IsVertexArray = reinterpret_cast(context->getProcAddress("glIsVertexArray")); GenVertexArrays = reinterpret_cast(context->getProcAddress("glGenVertexArrays")); DeleteVertexArrays = reinterpret_cast(context->getProcAddress("glDeleteVertexArrays")); BindVertexArray = reinterpret_cast(context->getProcAddress("glBindVertexArray")); FlushMappedBufferRange = reinterpret_cast(context->getProcAddress("glFlushMappedBufferRange")); MapBufferRange = reinterpret_cast(context->getProcAddress("glMapBufferRange")); FramebufferTextureLayer = reinterpret_cast(context->getProcAddress("glFramebufferTextureLayer")); RenderbufferStorageMultisample = reinterpret_cast(context->getProcAddress("glRenderbufferStorageMultisample")); BlitFramebuffer = reinterpret_cast(context->getProcAddress("glBlitFramebuffer")); GenerateMipmap = reinterpret_cast(context->getProcAddress("glGenerateMipmap")); GetFramebufferAttachmentParameteriv = reinterpret_cast(context->getProcAddress("glGetFramebufferAttachmentParameteriv")); FramebufferRenderbuffer = reinterpret_cast(context->getProcAddress("glFramebufferRenderbuffer")); FramebufferTexture3D = reinterpret_cast(context->getProcAddress("glFramebufferTexture3D")); FramebufferTexture2D = reinterpret_cast(context->getProcAddress("glFramebufferTexture2D")); FramebufferTexture1D = reinterpret_cast(context->getProcAddress("glFramebufferTexture1D")); CheckFramebufferStatus = reinterpret_cast(context->getProcAddress("glCheckFramebufferStatus")); GenFramebuffers = reinterpret_cast(context->getProcAddress("glGenFramebuffers")); DeleteFramebuffers = reinterpret_cast(context->getProcAddress("glDeleteFramebuffers")); BindFramebuffer = reinterpret_cast(context->getProcAddress("glBindFramebuffer")); IsFramebuffer = reinterpret_cast(context->getProcAddress("glIsFramebuffer")); GetRenderbufferParameteriv = reinterpret_cast(context->getProcAddress("glGetRenderbufferParameteriv")); RenderbufferStorage = reinterpret_cast(context->getProcAddress("glRenderbufferStorage")); GenRenderbuffers = reinterpret_cast(context->getProcAddress("glGenRenderbuffers")); DeleteRenderbuffers = reinterpret_cast(context->getProcAddress("glDeleteRenderbuffers")); BindRenderbuffer = reinterpret_cast(context->getProcAddress("glBindRenderbuffer")); IsRenderbuffer = reinterpret_cast(context->getProcAddress("glIsRenderbuffer")); GetStringi = reinterpret_cast(context->getProcAddress("glGetStringi")); ClearBufferfi = reinterpret_cast(context->getProcAddress("glClearBufferfi")); ClearBufferfv = reinterpret_cast(context->getProcAddress("glClearBufferfv")); ClearBufferuiv = reinterpret_cast(context->getProcAddress("glClearBufferuiv")); ClearBufferiv = reinterpret_cast(context->getProcAddress("glClearBufferiv")); GetTexParameterIuiv = reinterpret_cast(context->getProcAddress("glGetTexParameterIuiv")); GetTexParameterIiv = reinterpret_cast(context->getProcAddress("glGetTexParameterIiv")); TexParameterIuiv = reinterpret_cast(context->getProcAddress("glTexParameterIuiv")); TexParameterIiv = reinterpret_cast(context->getProcAddress("glTexParameterIiv")); Uniform4uiv = reinterpret_cast(context->getProcAddress("glUniform4uiv")); Uniform3uiv = reinterpret_cast(context->getProcAddress("glUniform3uiv")); Uniform2uiv = reinterpret_cast(context->getProcAddress("glUniform2uiv")); Uniform1uiv = reinterpret_cast(context->getProcAddress("glUniform1uiv")); Uniform4ui = reinterpret_cast(context->getProcAddress("glUniform4ui")); Uniform3ui = reinterpret_cast(context->getProcAddress("glUniform3ui")); Uniform2ui = reinterpret_cast(context->getProcAddress("glUniform2ui")); Uniform1ui = reinterpret_cast(context->getProcAddress("glUniform1ui")); GetFragDataLocation = reinterpret_cast(context->getProcAddress("glGetFragDataLocation")); BindFragDataLocation = reinterpret_cast(context->getProcAddress("glBindFragDataLocation")); GetUniformuiv = reinterpret_cast(context->getProcAddress("glGetUniformuiv")); VertexAttribI4usv = reinterpret_cast(context->getProcAddress("glVertexAttribI4usv")); VertexAttribI4ubv = reinterpret_cast(context->getProcAddress("glVertexAttribI4ubv")); VertexAttribI4sv = reinterpret_cast(context->getProcAddress("glVertexAttribI4sv")); VertexAttribI4bv = reinterpret_cast(context->getProcAddress("glVertexAttribI4bv")); VertexAttribI4uiv = reinterpret_cast(context->getProcAddress("glVertexAttribI4uiv")); VertexAttribI3uiv = reinterpret_cast(context->getProcAddress("glVertexAttribI3uiv")); VertexAttribI2uiv = reinterpret_cast(context->getProcAddress("glVertexAttribI2uiv")); VertexAttribI1uiv = reinterpret_cast(context->getProcAddress("glVertexAttribI1uiv")); VertexAttribI4iv = reinterpret_cast(context->getProcAddress("glVertexAttribI4iv")); VertexAttribI3iv = reinterpret_cast(context->getProcAddress("glVertexAttribI3iv")); VertexAttribI2iv = reinterpret_cast(context->getProcAddress("glVertexAttribI2iv")); VertexAttribI1iv = reinterpret_cast(context->getProcAddress("glVertexAttribI1iv")); VertexAttribI4ui = reinterpret_cast(context->getProcAddress("glVertexAttribI4ui")); VertexAttribI3ui = reinterpret_cast(context->getProcAddress("glVertexAttribI3ui")); VertexAttribI2ui = reinterpret_cast(context->getProcAddress("glVertexAttribI2ui")); VertexAttribI1ui = reinterpret_cast(context->getProcAddress("glVertexAttribI1ui")); VertexAttribI4i = reinterpret_cast(context->getProcAddress("glVertexAttribI4i")); VertexAttribI3i = reinterpret_cast(context->getProcAddress("glVertexAttribI3i")); VertexAttribI2i = reinterpret_cast(context->getProcAddress("glVertexAttribI2i")); VertexAttribI1i = reinterpret_cast(context->getProcAddress("glVertexAttribI1i")); GetVertexAttribIuiv = reinterpret_cast(context->getProcAddress("glGetVertexAttribIuiv")); GetVertexAttribIiv = reinterpret_cast(context->getProcAddress("glGetVertexAttribIiv")); VertexAttribIPointer = reinterpret_cast(context->getProcAddress("glVertexAttribIPointer")); EndConditionalRender = reinterpret_cast(context->getProcAddress("glEndConditionalRender")); BeginConditionalRender = reinterpret_cast(context->getProcAddress("glBeginConditionalRender")); ClampColor = reinterpret_cast(context->getProcAddress("glClampColor")); GetTransformFeedbackVarying = reinterpret_cast(context->getProcAddress("glGetTransformFeedbackVarying")); TransformFeedbackVaryings = reinterpret_cast(context->getProcAddress("glTransformFeedbackVaryings")); BindBufferBase = reinterpret_cast(context->getProcAddress("glBindBufferBase")); BindBufferRange = reinterpret_cast(context->getProcAddress("glBindBufferRange")); EndTransformFeedback = reinterpret_cast(context->getProcAddress("glEndTransformFeedback")); BeginTransformFeedback = reinterpret_cast(context->getProcAddress("glBeginTransformFeedback")); IsEnabledi = reinterpret_cast(context->getProcAddress("glIsEnabledi")); Disablei = reinterpret_cast(context->getProcAddress("glDisablei")); Enablei = reinterpret_cast(context->getProcAddress("glEnablei")); GetIntegeri_v = reinterpret_cast(context->getProcAddress("glGetIntegeri_v")); GetBooleani_v = reinterpret_cast(context->getProcAddress("glGetBooleani_v")); ColorMaski = reinterpret_cast(context->getProcAddress("glColorMaski")); } QOpenGLVersionStatus QOpenGLFunctions_3_0_CoreBackend::versionStatus() { return QOpenGLVersionStatus(3, 0, QOpenGLVersionStatus::CoreStatus); } QOpenGLFunctions_3_1_CoreBackend::QOpenGLFunctions_3_1_CoreBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 3.1 core functions CopyBufferSubData = reinterpret_cast(context->getProcAddress("glCopyBufferSubData")); UniformBlockBinding = reinterpret_cast(context->getProcAddress("glUniformBlockBinding")); GetActiveUniformBlockName = reinterpret_cast(context->getProcAddress("glGetActiveUniformBlockName")); GetActiveUniformBlockiv = reinterpret_cast(context->getProcAddress("glGetActiveUniformBlockiv")); GetUniformBlockIndex = reinterpret_cast(context->getProcAddress("glGetUniformBlockIndex")); GetActiveUniformName = reinterpret_cast(context->getProcAddress("glGetActiveUniformName")); GetActiveUniformsiv = reinterpret_cast(context->getProcAddress("glGetActiveUniformsiv")); GetUniformIndices = reinterpret_cast(context->getProcAddress("glGetUniformIndices")); PrimitiveRestartIndex = reinterpret_cast(context->getProcAddress("glPrimitiveRestartIndex")); TexBuffer = reinterpret_cast(context->getProcAddress("glTexBuffer")); DrawElementsInstanced = reinterpret_cast(context->getProcAddress("glDrawElementsInstanced")); DrawArraysInstanced = reinterpret_cast(context->getProcAddress("glDrawArraysInstanced")); } QOpenGLVersionStatus QOpenGLFunctions_3_1_CoreBackend::versionStatus() { return QOpenGLVersionStatus(3, 1, QOpenGLVersionStatus::CoreStatus); } QOpenGLFunctions_3_2_CoreBackend::QOpenGLFunctions_3_2_CoreBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 3.2 core functions SampleMaski = reinterpret_cast(context->getProcAddress("glSampleMaski")); GetMultisamplefv = reinterpret_cast(context->getProcAddress("glGetMultisamplefv")); TexImage3DMultisample = reinterpret_cast(context->getProcAddress("glTexImage3DMultisample")); TexImage2DMultisample = reinterpret_cast(context->getProcAddress("glTexImage2DMultisample")); GetSynciv = reinterpret_cast(context->getProcAddress("glGetSynciv")); GetInteger64v = reinterpret_cast(context->getProcAddress("glGetInteger64v")); WaitSync = reinterpret_cast(context->getProcAddress("glWaitSync")); ClientWaitSync = reinterpret_cast(context->getProcAddress("glClientWaitSync")); DeleteSync = reinterpret_cast(context->getProcAddress("glDeleteSync")); IsSync = reinterpret_cast(context->getProcAddress("glIsSync")); FenceSync = reinterpret_cast(context->getProcAddress("glFenceSync")); ProvokingVertex = reinterpret_cast(context->getProcAddress("glProvokingVertex")); MultiDrawElementsBaseVertex = reinterpret_cast(context->getProcAddress("glMultiDrawElementsBaseVertex")); DrawElementsInstancedBaseVertex = reinterpret_cast(context->getProcAddress("glDrawElementsInstancedBaseVertex")); DrawRangeElementsBaseVertex = reinterpret_cast(context->getProcAddress("glDrawRangeElementsBaseVertex")); DrawElementsBaseVertex = reinterpret_cast(context->getProcAddress("glDrawElementsBaseVertex")); FramebufferTexture = reinterpret_cast(context->getProcAddress("glFramebufferTexture")); GetBufferParameteri64v = reinterpret_cast(context->getProcAddress("glGetBufferParameteri64v")); GetInteger64i_v = reinterpret_cast(context->getProcAddress("glGetInteger64i_v")); } QOpenGLVersionStatus QOpenGLFunctions_3_2_CoreBackend::versionStatus() { return QOpenGLVersionStatus(3, 2, QOpenGLVersionStatus::CoreStatus); } QOpenGLFunctions_3_3_CoreBackend::QOpenGLFunctions_3_3_CoreBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 3.3 core functions VertexAttribP4uiv = reinterpret_cast(context->getProcAddress("glVertexAttribP4uiv")); VertexAttribP4ui = reinterpret_cast(context->getProcAddress("glVertexAttribP4ui")); VertexAttribP3uiv = reinterpret_cast(context->getProcAddress("glVertexAttribP3uiv")); VertexAttribP3ui = reinterpret_cast(context->getProcAddress("glVertexAttribP3ui")); VertexAttribP2uiv = reinterpret_cast(context->getProcAddress("glVertexAttribP2uiv")); VertexAttribP2ui = reinterpret_cast(context->getProcAddress("glVertexAttribP2ui")); VertexAttribP1uiv = reinterpret_cast(context->getProcAddress("glVertexAttribP1uiv")); VertexAttribP1ui = reinterpret_cast(context->getProcAddress("glVertexAttribP1ui")); GetQueryObjectui64v = reinterpret_cast(context->getProcAddress("glGetQueryObjectui64v")); GetQueryObjecti64v = reinterpret_cast(context->getProcAddress("glGetQueryObjecti64v")); QueryCounter = reinterpret_cast(context->getProcAddress("glQueryCounter")); GetSamplerParameterIuiv = reinterpret_cast(context->getProcAddress("glGetSamplerParameterIuiv")); GetSamplerParameterfv = reinterpret_cast(context->getProcAddress("glGetSamplerParameterfv")); GetSamplerParameterIiv = reinterpret_cast(context->getProcAddress("glGetSamplerParameterIiv")); GetSamplerParameteriv = reinterpret_cast(context->getProcAddress("glGetSamplerParameteriv")); SamplerParameterIuiv = reinterpret_cast(context->getProcAddress("glSamplerParameterIuiv")); SamplerParameterIiv = reinterpret_cast(context->getProcAddress("glSamplerParameterIiv")); SamplerParameterfv = reinterpret_cast(context->getProcAddress("glSamplerParameterfv")); SamplerParameterf = reinterpret_cast(context->getProcAddress("glSamplerParameterf")); SamplerParameteriv = reinterpret_cast(context->getProcAddress("glSamplerParameteriv")); SamplerParameteri = reinterpret_cast(context->getProcAddress("glSamplerParameteri")); BindSampler = reinterpret_cast(context->getProcAddress("glBindSampler")); IsSampler = reinterpret_cast(context->getProcAddress("glIsSampler")); DeleteSamplers = reinterpret_cast(context->getProcAddress("glDeleteSamplers")); GenSamplers = reinterpret_cast(context->getProcAddress("glGenSamplers")); GetFragDataIndex = reinterpret_cast(context->getProcAddress("glGetFragDataIndex")); BindFragDataLocationIndexed = reinterpret_cast(context->getProcAddress("glBindFragDataLocationIndexed")); VertexAttribDivisor = reinterpret_cast(context->getProcAddress("glVertexAttribDivisor")); } QOpenGLVersionStatus QOpenGLFunctions_3_3_CoreBackend::versionStatus() { return QOpenGLVersionStatus(3, 3, QOpenGLVersionStatus::CoreStatus); } QOpenGLFunctions_4_0_CoreBackend::QOpenGLFunctions_4_0_CoreBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 4.0 core functions GetQueryIndexediv = reinterpret_cast(context->getProcAddress("glGetQueryIndexediv")); EndQueryIndexed = reinterpret_cast(context->getProcAddress("glEndQueryIndexed")); BeginQueryIndexed = reinterpret_cast(context->getProcAddress("glBeginQueryIndexed")); DrawTransformFeedbackStream = reinterpret_cast(context->getProcAddress("glDrawTransformFeedbackStream")); DrawTransformFeedback = reinterpret_cast(context->getProcAddress("glDrawTransformFeedback")); ResumeTransformFeedback = reinterpret_cast(context->getProcAddress("glResumeTransformFeedback")); PauseTransformFeedback = reinterpret_cast(context->getProcAddress("glPauseTransformFeedback")); IsTransformFeedback = reinterpret_cast(context->getProcAddress("glIsTransformFeedback")); GenTransformFeedbacks = reinterpret_cast(context->getProcAddress("glGenTransformFeedbacks")); DeleteTransformFeedbacks = reinterpret_cast(context->getProcAddress("glDeleteTransformFeedbacks")); BindTransformFeedback = reinterpret_cast(context->getProcAddress("glBindTransformFeedback")); PatchParameterfv = reinterpret_cast(context->getProcAddress("glPatchParameterfv")); PatchParameteri = reinterpret_cast(context->getProcAddress("glPatchParameteri")); GetProgramStageiv = reinterpret_cast(context->getProcAddress("glGetProgramStageiv")); GetUniformSubroutineuiv = reinterpret_cast(context->getProcAddress("glGetUniformSubroutineuiv")); UniformSubroutinesuiv = reinterpret_cast(context->getProcAddress("glUniformSubroutinesuiv")); GetActiveSubroutineName = reinterpret_cast(context->getProcAddress("glGetActiveSubroutineName")); GetActiveSubroutineUniformName = reinterpret_cast(context->getProcAddress("glGetActiveSubroutineUniformName")); GetActiveSubroutineUniformiv = reinterpret_cast(context->getProcAddress("glGetActiveSubroutineUniformiv")); GetSubroutineIndex = reinterpret_cast(context->getProcAddress("glGetSubroutineIndex")); GetSubroutineUniformLocation = reinterpret_cast(context->getProcAddress("glGetSubroutineUniformLocation")); GetUniformdv = reinterpret_cast(context->getProcAddress("glGetUniformdv")); UniformMatrix4x3dv = reinterpret_cast(context->getProcAddress("glUniformMatrix4x3dv")); UniformMatrix4x2dv = reinterpret_cast(context->getProcAddress("glUniformMatrix4x2dv")); UniformMatrix3x4dv = reinterpret_cast(context->getProcAddress("glUniformMatrix3x4dv")); UniformMatrix3x2dv = reinterpret_cast(context->getProcAddress("glUniformMatrix3x2dv")); UniformMatrix2x4dv = reinterpret_cast(context->getProcAddress("glUniformMatrix2x4dv")); UniformMatrix2x3dv = reinterpret_cast(context->getProcAddress("glUniformMatrix2x3dv")); UniformMatrix4dv = reinterpret_cast(context->getProcAddress("glUniformMatrix4dv")); UniformMatrix3dv = reinterpret_cast(context->getProcAddress("glUniformMatrix3dv")); UniformMatrix2dv = reinterpret_cast(context->getProcAddress("glUniformMatrix2dv")); Uniform4dv = reinterpret_cast(context->getProcAddress("glUniform4dv")); Uniform3dv = reinterpret_cast(context->getProcAddress("glUniform3dv")); Uniform2dv = reinterpret_cast(context->getProcAddress("glUniform2dv")); Uniform1dv = reinterpret_cast(context->getProcAddress("glUniform1dv")); Uniform4d = reinterpret_cast(context->getProcAddress("glUniform4d")); Uniform3d = reinterpret_cast(context->getProcAddress("glUniform3d")); Uniform2d = reinterpret_cast(context->getProcAddress("glUniform2d")); Uniform1d = reinterpret_cast(context->getProcAddress("glUniform1d")); DrawElementsIndirect = reinterpret_cast(context->getProcAddress("glDrawElementsIndirect")); DrawArraysIndirect = reinterpret_cast(context->getProcAddress("glDrawArraysIndirect")); BlendFuncSeparatei = reinterpret_cast(context->getProcAddress("glBlendFuncSeparatei")); BlendFunci = reinterpret_cast(context->getProcAddress("glBlendFunci")); BlendEquationSeparatei = reinterpret_cast(context->getProcAddress("glBlendEquationSeparatei")); BlendEquationi = reinterpret_cast(context->getProcAddress("glBlendEquationi")); MinSampleShading = reinterpret_cast(context->getProcAddress("glMinSampleShading")); } QOpenGLVersionStatus QOpenGLFunctions_4_0_CoreBackend::versionStatus() { return QOpenGLVersionStatus(4, 0, QOpenGLVersionStatus::CoreStatus); } QOpenGLFunctions_4_1_CoreBackend::QOpenGLFunctions_4_1_CoreBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 4.1 core functions GetDoublei_v = reinterpret_cast(context->getProcAddress("glGetDoublei_v")); GetFloati_v = reinterpret_cast(context->getProcAddress("glGetFloati_v")); DepthRangeIndexed = reinterpret_cast(context->getProcAddress("glDepthRangeIndexed")); DepthRangeArrayv = reinterpret_cast(context->getProcAddress("glDepthRangeArrayv")); ScissorIndexedv = reinterpret_cast(context->getProcAddress("glScissorIndexedv")); ScissorIndexed = reinterpret_cast(context->getProcAddress("glScissorIndexed")); ScissorArrayv = reinterpret_cast(context->getProcAddress("glScissorArrayv")); ViewportIndexedfv = reinterpret_cast(context->getProcAddress("glViewportIndexedfv")); ViewportIndexedf = reinterpret_cast(context->getProcAddress("glViewportIndexedf")); ViewportArrayv = reinterpret_cast(context->getProcAddress("glViewportArrayv")); GetVertexAttribLdv = reinterpret_cast(context->getProcAddress("glGetVertexAttribLdv")); VertexAttribLPointer = reinterpret_cast(context->getProcAddress("glVertexAttribLPointer")); VertexAttribL4dv = reinterpret_cast(context->getProcAddress("glVertexAttribL4dv")); VertexAttribL3dv = reinterpret_cast(context->getProcAddress("glVertexAttribL3dv")); VertexAttribL2dv = reinterpret_cast(context->getProcAddress("glVertexAttribL2dv")); VertexAttribL1dv = reinterpret_cast(context->getProcAddress("glVertexAttribL1dv")); VertexAttribL4d = reinterpret_cast(context->getProcAddress("glVertexAttribL4d")); VertexAttribL3d = reinterpret_cast(context->getProcAddress("glVertexAttribL3d")); VertexAttribL2d = reinterpret_cast(context->getProcAddress("glVertexAttribL2d")); VertexAttribL1d = reinterpret_cast(context->getProcAddress("glVertexAttribL1d")); GetProgramPipelineInfoLog = reinterpret_cast(context->getProcAddress("glGetProgramPipelineInfoLog")); ValidateProgramPipeline = reinterpret_cast(context->getProcAddress("glValidateProgramPipeline")); ProgramUniformMatrix4x3dv = reinterpret_cast(context->getProcAddress("glProgramUniformMatrix4x3dv")); ProgramUniformMatrix3x4dv = reinterpret_cast(context->getProcAddress("glProgramUniformMatrix3x4dv")); ProgramUniformMatrix4x2dv = reinterpret_cast(context->getProcAddress("glProgramUniformMatrix4x2dv")); ProgramUniformMatrix2x4dv = reinterpret_cast(context->getProcAddress("glProgramUniformMatrix2x4dv")); ProgramUniformMatrix3x2dv = reinterpret_cast(context->getProcAddress("glProgramUniformMatrix3x2dv")); ProgramUniformMatrix2x3dv = reinterpret_cast(context->getProcAddress("glProgramUniformMatrix2x3dv")); ProgramUniformMatrix4x3fv = reinterpret_cast(context->getProcAddress("glProgramUniformMatrix4x3fv")); ProgramUniformMatrix3x4fv = reinterpret_cast(context->getProcAddress("glProgramUniformMatrix3x4fv")); ProgramUniformMatrix4x2fv = reinterpret_cast(context->getProcAddress("glProgramUniformMatrix4x2fv")); ProgramUniformMatrix2x4fv = reinterpret_cast(context->getProcAddress("glProgramUniformMatrix2x4fv")); ProgramUniformMatrix3x2fv = reinterpret_cast(context->getProcAddress("glProgramUniformMatrix3x2fv")); ProgramUniformMatrix2x3fv = reinterpret_cast(context->getProcAddress("glProgramUniformMatrix2x3fv")); ProgramUniformMatrix4dv = reinterpret_cast(context->getProcAddress("glProgramUniformMatrix4dv")); ProgramUniformMatrix3dv = reinterpret_cast(context->getProcAddress("glProgramUniformMatrix3dv")); ProgramUniformMatrix2dv = reinterpret_cast(context->getProcAddress("glProgramUniformMatrix2dv")); ProgramUniformMatrix4fv = reinterpret_cast(context->getProcAddress("glProgramUniformMatrix4fv")); ProgramUniformMatrix3fv = reinterpret_cast(context->getProcAddress("glProgramUniformMatrix3fv")); ProgramUniformMatrix2fv = reinterpret_cast(context->getProcAddress("glProgramUniformMatrix2fv")); ProgramUniform4uiv = reinterpret_cast(context->getProcAddress("glProgramUniform4uiv")); ProgramUniform4ui = reinterpret_cast(context->getProcAddress("glProgramUniform4ui")); ProgramUniform4dv = reinterpret_cast(context->getProcAddress("glProgramUniform4dv")); ProgramUniform4d = reinterpret_cast(context->getProcAddress("glProgramUniform4d")); ProgramUniform4fv = reinterpret_cast(context->getProcAddress("glProgramUniform4fv")); ProgramUniform4f = reinterpret_cast(context->getProcAddress("glProgramUniform4f")); ProgramUniform4iv = reinterpret_cast(context->getProcAddress("glProgramUniform4iv")); ProgramUniform4i = reinterpret_cast(context->getProcAddress("glProgramUniform4i")); ProgramUniform3uiv = reinterpret_cast(context->getProcAddress("glProgramUniform3uiv")); ProgramUniform3ui = reinterpret_cast(context->getProcAddress("glProgramUniform3ui")); ProgramUniform3dv = reinterpret_cast(context->getProcAddress("glProgramUniform3dv")); ProgramUniform3d = reinterpret_cast(context->getProcAddress("glProgramUniform3d")); ProgramUniform3fv = reinterpret_cast(context->getProcAddress("glProgramUniform3fv")); ProgramUniform3f = reinterpret_cast(context->getProcAddress("glProgramUniform3f")); ProgramUniform3iv = reinterpret_cast(context->getProcAddress("glProgramUniform3iv")); ProgramUniform3i = reinterpret_cast(context->getProcAddress("glProgramUniform3i")); ProgramUniform2uiv = reinterpret_cast(context->getProcAddress("glProgramUniform2uiv")); ProgramUniform2ui = reinterpret_cast(context->getProcAddress("glProgramUniform2ui")); ProgramUniform2dv = reinterpret_cast(context->getProcAddress("glProgramUniform2dv")); ProgramUniform2d = reinterpret_cast(context->getProcAddress("glProgramUniform2d")); ProgramUniform2fv = reinterpret_cast(context->getProcAddress("glProgramUniform2fv")); ProgramUniform2f = reinterpret_cast(context->getProcAddress("glProgramUniform2f")); ProgramUniform2iv = reinterpret_cast(context->getProcAddress("glProgramUniform2iv")); ProgramUniform2i = reinterpret_cast(context->getProcAddress("glProgramUniform2i")); ProgramUniform1uiv = reinterpret_cast(context->getProcAddress("glProgramUniform1uiv")); ProgramUniform1ui = reinterpret_cast(context->getProcAddress("glProgramUniform1ui")); ProgramUniform1dv = reinterpret_cast(context->getProcAddress("glProgramUniform1dv")); ProgramUniform1d = reinterpret_cast(context->getProcAddress("glProgramUniform1d")); ProgramUniform1fv = reinterpret_cast(context->getProcAddress("glProgramUniform1fv")); ProgramUniform1f = reinterpret_cast(context->getProcAddress("glProgramUniform1f")); ProgramUniform1iv = reinterpret_cast(context->getProcAddress("glProgramUniform1iv")); ProgramUniform1i = reinterpret_cast(context->getProcAddress("glProgramUniform1i")); GetProgramPipelineiv = reinterpret_cast(context->getProcAddress("glGetProgramPipelineiv")); IsProgramPipeline = reinterpret_cast(context->getProcAddress("glIsProgramPipeline")); GenProgramPipelines = reinterpret_cast(context->getProcAddress("glGenProgramPipelines")); DeleteProgramPipelines = reinterpret_cast(context->getProcAddress("glDeleteProgramPipelines")); BindProgramPipeline = reinterpret_cast(context->getProcAddress("glBindProgramPipeline")); CreateShaderProgramv = reinterpret_cast(context->getProcAddress("glCreateShaderProgramv")); ActiveShaderProgram = reinterpret_cast(context->getProcAddress("glActiveShaderProgram")); UseProgramStages = reinterpret_cast(context->getProcAddress("glUseProgramStages")); ProgramParameteri = reinterpret_cast(context->getProcAddress("glProgramParameteri")); ProgramBinary = reinterpret_cast(context->getProcAddress("glProgramBinary")); GetProgramBinary = reinterpret_cast(context->getProcAddress("glGetProgramBinary")); ClearDepthf = reinterpret_cast(context->getProcAddress("glClearDepthf")); DepthRangef = reinterpret_cast(context->getProcAddress("glDepthRangef")); GetShaderPrecisionFormat = reinterpret_cast(context->getProcAddress("glGetShaderPrecisionFormat")); ShaderBinary = reinterpret_cast(context->getProcAddress("glShaderBinary")); ReleaseShaderCompiler = reinterpret_cast(context->getProcAddress("glReleaseShaderCompiler")); } QOpenGLVersionStatus QOpenGLFunctions_4_1_CoreBackend::versionStatus() { return QOpenGLVersionStatus(4, 1, QOpenGLVersionStatus::CoreStatus); } QOpenGLFunctions_4_2_CoreBackend::QOpenGLFunctions_4_2_CoreBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 4.2 core functions TexStorage3D = reinterpret_cast(context->getProcAddress("glTexStorage3D")); TexStorage2D = reinterpret_cast(context->getProcAddress("glTexStorage2D")); TexStorage1D = reinterpret_cast(context->getProcAddress("glTexStorage1D")); MemoryBarrier = reinterpret_cast(context->getProcAddress("glMemoryBarrier")); BindImageTexture = reinterpret_cast(context->getProcAddress("glBindImageTexture")); GetActiveAtomicCounterBufferiv = reinterpret_cast(context->getProcAddress("glGetActiveAtomicCounterBufferiv")); GetInternalformativ = reinterpret_cast(context->getProcAddress("glGetInternalformativ")); DrawTransformFeedbackStreamInstanced = reinterpret_cast(context->getProcAddress("glDrawTransformFeedbackStreamInstanced")); DrawTransformFeedbackInstanced = reinterpret_cast(context->getProcAddress("glDrawTransformFeedbackInstanced")); DrawElementsInstancedBaseVertexBaseInstance = reinterpret_cast(context->getProcAddress("glDrawElementsInstancedBaseVertexBaseInstance")); DrawElementsInstancedBaseInstance = reinterpret_cast(context->getProcAddress("glDrawElementsInstancedBaseInstance")); DrawArraysInstancedBaseInstance = reinterpret_cast(context->getProcAddress("glDrawArraysInstancedBaseInstance")); } QOpenGLVersionStatus QOpenGLFunctions_4_2_CoreBackend::versionStatus() { return QOpenGLVersionStatus(4, 2, QOpenGLVersionStatus::CoreStatus); } QOpenGLFunctions_4_3_CoreBackend::QOpenGLFunctions_4_3_CoreBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 4.3 core functions GetObjectPtrLabel = reinterpret_cast(context->getProcAddress("glGetObjectPtrLabel")); ObjectPtrLabel = reinterpret_cast(context->getProcAddress("glObjectPtrLabel")); GetObjectLabel = reinterpret_cast(context->getProcAddress("glGetObjectLabel")); ObjectLabel = reinterpret_cast(context->getProcAddress("glObjectLabel")); PopDebugGroup = reinterpret_cast(context->getProcAddress("glPopDebugGroup")); PushDebugGroup = reinterpret_cast(context->getProcAddress("glPushDebugGroup")); GetDebugMessageLog = reinterpret_cast(context->getProcAddress("glGetDebugMessageLog")); DebugMessageCallback = reinterpret_cast(context->getProcAddress("glDebugMessageCallback")); DebugMessageInsert = reinterpret_cast(context->getProcAddress("glDebugMessageInsert")); DebugMessageControl = reinterpret_cast(context->getProcAddress("glDebugMessageControl")); TexStorage3DMultisample = reinterpret_cast(context->getProcAddress("glTexStorage3DMultisample")); TexStorage2DMultisample = reinterpret_cast(context->getProcAddress("glTexStorage2DMultisample")); TexBufferRange = reinterpret_cast(context->getProcAddress("glTexBufferRange")); ShaderStorageBlockBinding = reinterpret_cast(context->getProcAddress("glShaderStorageBlockBinding")); GetProgramResourceLocationIndex = reinterpret_cast(context->getProcAddress("glGetProgramResourceLocationIndex")); GetProgramResourceLocation = reinterpret_cast(context->getProcAddress("glGetProgramResourceLocation")); GetProgramResourceiv = reinterpret_cast(context->getProcAddress("glGetProgramResourceiv")); GetProgramResourceName = reinterpret_cast(context->getProcAddress("glGetProgramResourceName")); GetProgramResourceIndex = reinterpret_cast(context->getProcAddress("glGetProgramResourceIndex")); GetProgramInterfaceiv = reinterpret_cast(context->getProcAddress("glGetProgramInterfaceiv")); MultiDrawElementsIndirect = reinterpret_cast(context->getProcAddress("glMultiDrawElementsIndirect")); MultiDrawArraysIndirect = reinterpret_cast(context->getProcAddress("glMultiDrawArraysIndirect")); InvalidateSubFramebuffer = reinterpret_cast(context->getProcAddress("glInvalidateSubFramebuffer")); InvalidateFramebuffer = reinterpret_cast(context->getProcAddress("glInvalidateFramebuffer")); InvalidateBufferData = reinterpret_cast(context->getProcAddress("glInvalidateBufferData")); InvalidateBufferSubData = reinterpret_cast(context->getProcAddress("glInvalidateBufferSubData")); InvalidateTexImage = reinterpret_cast(context->getProcAddress("glInvalidateTexImage")); InvalidateTexSubImage = reinterpret_cast(context->getProcAddress("glInvalidateTexSubImage")); GetInternalformati64v = reinterpret_cast(context->getProcAddress("glGetInternalformati64v")); GetFramebufferParameteriv = reinterpret_cast(context->getProcAddress("glGetFramebufferParameteriv")); FramebufferParameteri = reinterpret_cast(context->getProcAddress("glFramebufferParameteri")); VertexBindingDivisor = reinterpret_cast(context->getProcAddress("glVertexBindingDivisor")); VertexAttribBinding = reinterpret_cast(context->getProcAddress("glVertexAttribBinding")); VertexAttribLFormat = reinterpret_cast(context->getProcAddress("glVertexAttribLFormat")); VertexAttribIFormat = reinterpret_cast(context->getProcAddress("glVertexAttribIFormat")); VertexAttribFormat = reinterpret_cast(context->getProcAddress("glVertexAttribFormat")); BindVertexBuffer = reinterpret_cast(context->getProcAddress("glBindVertexBuffer")); TextureView = reinterpret_cast(context->getProcAddress("glTextureView")); CopyImageSubData = reinterpret_cast(context->getProcAddress("glCopyImageSubData")); DispatchComputeIndirect = reinterpret_cast(context->getProcAddress("glDispatchComputeIndirect")); DispatchCompute = reinterpret_cast(context->getProcAddress("glDispatchCompute")); ClearBufferSubData = reinterpret_cast(context->getProcAddress("glClearBufferSubData")); ClearBufferData = reinterpret_cast(context->getProcAddress("glClearBufferData")); } QOpenGLVersionStatus QOpenGLFunctions_4_3_CoreBackend::versionStatus() { return QOpenGLVersionStatus(4, 3, QOpenGLVersionStatus::CoreStatus); } QOpenGLFunctions_4_4_CoreBackend::QOpenGLFunctions_4_4_CoreBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 4.4 core functions BindVertexBuffers = reinterpret_cast(context->getProcAddress("glBindVertexBuffers")); BindImageTextures = reinterpret_cast(context->getProcAddress("glBindImageTextures")); BindSamplers = reinterpret_cast(context->getProcAddress("glBindSamplers")); BindTextures = reinterpret_cast(context->getProcAddress("glBindTextures")); BindBuffersRange = reinterpret_cast(context->getProcAddress("glBindBuffersRange")); BindBuffersBase = reinterpret_cast(context->getProcAddress("glBindBuffersBase")); ClearTexSubImage = reinterpret_cast(context->getProcAddress("glClearTexSubImage")); ClearTexImage = reinterpret_cast(context->getProcAddress("glClearTexImage")); BufferStorage = reinterpret_cast(context->getProcAddress("glBufferStorage")); } QOpenGLVersionStatus QOpenGLFunctions_4_4_CoreBackend::versionStatus() { return QOpenGLVersionStatus(4, 4, QOpenGLVersionStatus::CoreStatus); } QOpenGLFunctions_4_5_CoreBackend::QOpenGLFunctions_4_5_CoreBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 4.5 core functions TextureBarrier = reinterpret_cast(context->getProcAddress("glTextureBarrier")); ReadnPixels = reinterpret_cast(context->getProcAddress("glReadnPixels")); GetnUniformuiv = reinterpret_cast(context->getProcAddress("glGetnUniformuiv")); GetnUniformiv = reinterpret_cast(context->getProcAddress("glGetnUniformiv")); GetnUniformfv = reinterpret_cast(context->getProcAddress("glGetnUniformfv")); GetnUniformdv = reinterpret_cast(context->getProcAddress("glGetnUniformdv")); GetnTexImage = reinterpret_cast(context->getProcAddress("glGetnTexImage")); GetnCompressedTexImage = reinterpret_cast(context->getProcAddress("glGetnCompressedTexImage")); GetGraphicsResetStatus = reinterpret_cast(context->getProcAddress("glGetGraphicsResetStatus")); GetCompressedTextureSubImage = reinterpret_cast(context->getProcAddress("glGetCompressedTextureSubImage")); GetTextureSubImage = reinterpret_cast(context->getProcAddress("glGetTextureSubImage")); MemoryBarrierByRegion = reinterpret_cast(context->getProcAddress("glMemoryBarrierByRegion")); CreateQueries = reinterpret_cast(context->getProcAddress("glCreateQueries")); CreateProgramPipelines = reinterpret_cast(context->getProcAddress("glCreateProgramPipelines")); CreateSamplers = reinterpret_cast(context->getProcAddress("glCreateSamplers")); GetVertexArrayIndexed64iv = reinterpret_cast(context->getProcAddress("glGetVertexArrayIndexed64iv")); GetVertexArrayIndexediv = reinterpret_cast(context->getProcAddress("glGetVertexArrayIndexediv")); GetVertexArrayiv = reinterpret_cast(context->getProcAddress("glGetVertexArrayiv")); VertexArrayBindingDivisor = reinterpret_cast(context->getProcAddress("glVertexArrayBindingDivisor")); VertexArrayAttribLFormat = reinterpret_cast(context->getProcAddress("glVertexArrayAttribLFormat")); VertexArrayAttribIFormat = reinterpret_cast(context->getProcAddress("glVertexArrayAttribIFormat")); VertexArrayAttribFormat = reinterpret_cast(context->getProcAddress("glVertexArrayAttribFormat")); VertexArrayAttribBinding = reinterpret_cast(context->getProcAddress("glVertexArrayAttribBinding")); VertexArrayVertexBuffers = reinterpret_cast(context->getProcAddress("glVertexArrayVertexBuffers")); VertexArrayVertexBuffer = reinterpret_cast(context->getProcAddress("glVertexArrayVertexBuffer")); VertexArrayElementBuffer = reinterpret_cast(context->getProcAddress("glVertexArrayElementBuffer")); EnableVertexArrayAttrib = reinterpret_cast(context->getProcAddress("glEnableVertexArrayAttrib")); DisableVertexArrayAttrib = reinterpret_cast(context->getProcAddress("glDisableVertexArrayAttrib")); CreateVertexArrays = reinterpret_cast(context->getProcAddress("glCreateVertexArrays")); GetTextureParameteriv = reinterpret_cast(context->getProcAddress("glGetTextureParameteriv")); GetTextureParameterIuiv = reinterpret_cast(context->getProcAddress("glGetTextureParameterIuiv")); GetTextureParameterIiv = reinterpret_cast(context->getProcAddress("glGetTextureParameterIiv")); GetTextureParameterfv = reinterpret_cast(context->getProcAddress("glGetTextureParameterfv")); GetTextureLevelParameteriv = reinterpret_cast(context->getProcAddress("glGetTextureLevelParameteriv")); GetTextureLevelParameterfv = reinterpret_cast(context->getProcAddress("glGetTextureLevelParameterfv")); GetCompressedTextureImage = reinterpret_cast(context->getProcAddress("glGetCompressedTextureImage")); GetTextureImage = reinterpret_cast(context->getProcAddress("glGetTextureImage")); BindTextureUnit = reinterpret_cast(context->getProcAddress("glBindTextureUnit")); GenerateTextureMipmap = reinterpret_cast(context->getProcAddress("glGenerateTextureMipmap")); TextureParameteriv = reinterpret_cast(context->getProcAddress("glTextureParameteriv")); TextureParameterIuiv = reinterpret_cast(context->getProcAddress("glTextureParameterIuiv")); TextureParameterIiv = reinterpret_cast(context->getProcAddress("glTextureParameterIiv")); TextureParameteri = reinterpret_cast(context->getProcAddress("glTextureParameteri")); TextureParameterfv = reinterpret_cast(context->getProcAddress("glTextureParameterfv")); TextureParameterf = reinterpret_cast(context->getProcAddress("glTextureParameterf")); CopyTextureSubImage3D = reinterpret_cast(context->getProcAddress("glCopyTextureSubImage3D")); CopyTextureSubImage2D = reinterpret_cast(context->getProcAddress("glCopyTextureSubImage2D")); CopyTextureSubImage1D = reinterpret_cast(context->getProcAddress("glCopyTextureSubImage1D")); CompressedTextureSubImage3D = reinterpret_cast(context->getProcAddress("glCompressedTextureSubImage3D")); CompressedTextureSubImage2D = reinterpret_cast(context->getProcAddress("glCompressedTextureSubImage2D")); CompressedTextureSubImage1D = reinterpret_cast(context->getProcAddress("glCompressedTextureSubImage1D")); TextureSubImage3D = reinterpret_cast(context->getProcAddress("glTextureSubImage3D")); TextureSubImage2D = reinterpret_cast(context->getProcAddress("glTextureSubImage2D")); TextureSubImage1D = reinterpret_cast(context->getProcAddress("glTextureSubImage1D")); TextureStorage3DMultisample = reinterpret_cast(context->getProcAddress("glTextureStorage3DMultisample")); TextureStorage2DMultisample = reinterpret_cast(context->getProcAddress("glTextureStorage2DMultisample")); TextureStorage3D = reinterpret_cast(context->getProcAddress("glTextureStorage3D")); TextureStorage2D = reinterpret_cast(context->getProcAddress("glTextureStorage2D")); TextureStorage1D = reinterpret_cast(context->getProcAddress("glTextureStorage1D")); TextureBufferRange = reinterpret_cast(context->getProcAddress("glTextureBufferRange")); TextureBuffer = reinterpret_cast(context->getProcAddress("glTextureBuffer")); CreateTextures = reinterpret_cast(context->getProcAddress("glCreateTextures")); GetNamedRenderbufferParameteriv = reinterpret_cast(context->getProcAddress("glGetNamedRenderbufferParameteriv")); NamedRenderbufferStorageMultisample = reinterpret_cast(context->getProcAddress("glNamedRenderbufferStorageMultisample")); NamedRenderbufferStorage = reinterpret_cast(context->getProcAddress("glNamedRenderbufferStorage")); CreateRenderbuffers = reinterpret_cast(context->getProcAddress("glCreateRenderbuffers")); GetNamedFramebufferAttachmentParameteriv = reinterpret_cast(context->getProcAddress("glGetNamedFramebufferAttachmentParameteriv")); GetNamedFramebufferParameteriv = reinterpret_cast(context->getProcAddress("glGetNamedFramebufferParameteriv")); CheckNamedFramebufferStatus = reinterpret_cast(context->getProcAddress("glCheckNamedFramebufferStatus")); BlitNamedFramebuffer = reinterpret_cast(context->getProcAddress("glBlitNamedFramebuffer")); ClearNamedFramebufferfi = reinterpret_cast(context->getProcAddress("glClearNamedFramebufferfi")); ClearNamedFramebufferfv = reinterpret_cast(context->getProcAddress("glClearNamedFramebufferfv")); ClearNamedFramebufferuiv = reinterpret_cast(context->getProcAddress("glClearNamedFramebufferuiv")); ClearNamedFramebufferiv = reinterpret_cast(context->getProcAddress("glClearNamedFramebufferiv")); InvalidateNamedFramebufferSubData = reinterpret_cast(context->getProcAddress("glInvalidateNamedFramebufferSubData")); InvalidateNamedFramebufferData = reinterpret_cast(context->getProcAddress("glInvalidateNamedFramebufferData")); NamedFramebufferReadBuffer = reinterpret_cast(context->getProcAddress("glNamedFramebufferReadBuffer")); NamedFramebufferDrawBuffers = reinterpret_cast(context->getProcAddress("glNamedFramebufferDrawBuffers")); NamedFramebufferDrawBuffer = reinterpret_cast(context->getProcAddress("glNamedFramebufferDrawBuffer")); NamedFramebufferTextureLayer = reinterpret_cast(context->getProcAddress("glNamedFramebufferTextureLayer")); NamedFramebufferTexture = reinterpret_cast(context->getProcAddress("glNamedFramebufferTexture")); NamedFramebufferParameteri = reinterpret_cast(context->getProcAddress("glNamedFramebufferParameteri")); NamedFramebufferRenderbuffer = reinterpret_cast(context->getProcAddress("glNamedFramebufferRenderbuffer")); CreateFramebuffers = reinterpret_cast(context->getProcAddress("glCreateFramebuffers")); GetNamedBufferSubData = reinterpret_cast(context->getProcAddress("glGetNamedBufferSubData")); GetNamedBufferPointerv = reinterpret_cast(context->getProcAddress("glGetNamedBufferPointerv")); GetNamedBufferParameteri64v = reinterpret_cast(context->getProcAddress("glGetNamedBufferParameteri64v")); GetNamedBufferParameteriv = reinterpret_cast(context->getProcAddress("glGetNamedBufferParameteriv")); FlushMappedNamedBufferRange = reinterpret_cast(context->getProcAddress("glFlushMappedNamedBufferRange")); UnmapNamedBuffer = reinterpret_cast(context->getProcAddress("glUnmapNamedBuffer")); MapNamedBufferRange = reinterpret_cast(context->getProcAddress("glMapNamedBufferRange")); MapNamedBuffer = reinterpret_cast(context->getProcAddress("glMapNamedBuffer")); ClearNamedBufferSubData = reinterpret_cast(context->getProcAddress("glClearNamedBufferSubData")); ClearNamedBufferData = reinterpret_cast(context->getProcAddress("glClearNamedBufferData")); CopyNamedBufferSubData = reinterpret_cast(context->getProcAddress("glCopyNamedBufferSubData")); NamedBufferSubData = reinterpret_cast(context->getProcAddress("glNamedBufferSubData")); NamedBufferData = reinterpret_cast(context->getProcAddress("glNamedBufferData")); NamedBufferStorage = reinterpret_cast(context->getProcAddress("glNamedBufferStorage")); CreateBuffers = reinterpret_cast(context->getProcAddress("glCreateBuffers")); GetTransformFeedbacki64_v = reinterpret_cast(context->getProcAddress("glGetTransformFeedbacki64_v")); GetTransformFeedbacki_v = reinterpret_cast(context->getProcAddress("glGetTransformFeedbacki_v")); GetTransformFeedbackiv = reinterpret_cast(context->getProcAddress("glGetTransformFeedbackiv")); TransformFeedbackBufferRange = reinterpret_cast(context->getProcAddress("glTransformFeedbackBufferRange")); TransformFeedbackBufferBase = reinterpret_cast(context->getProcAddress("glTransformFeedbackBufferBase")); CreateTransformFeedbacks = reinterpret_cast(context->getProcAddress("glCreateTransformFeedbacks")); ClipControl = reinterpret_cast(context->getProcAddress("glClipControl")); } QOpenGLVersionStatus QOpenGLFunctions_4_5_CoreBackend::versionStatus() { return QOpenGLVersionStatus(4, 5, QOpenGLVersionStatus::CoreStatus); } QOpenGLFunctions_1_0_DeprecatedBackend::QOpenGLFunctions_1_0_DeprecatedBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 1.0 deprecated functions #if defined(Q_OS_WIN) HMODULE handle = static_cast(QOpenGLContext::openGLModuleHandle()); if (!handle) handle = GetModuleHandleA("opengl32.dll"); Translatef = reinterpret_cast(GetProcAddress(handle, "glTranslatef")); Translated = reinterpret_cast(GetProcAddress(handle, "glTranslated")); Scalef = reinterpret_cast(GetProcAddress(handle, "glScalef")); Scaled = reinterpret_cast(GetProcAddress(handle, "glScaled")); Rotatef = reinterpret_cast(GetProcAddress(handle, "glRotatef")); Rotated = reinterpret_cast(GetProcAddress(handle, "glRotated")); PushMatrix = reinterpret_cast(GetProcAddress(handle, "glPushMatrix")); PopMatrix = reinterpret_cast(GetProcAddress(handle, "glPopMatrix")); Ortho = reinterpret_cast(GetProcAddress(handle, "glOrtho")); MultMatrixd = reinterpret_cast(GetProcAddress(handle, "glMultMatrixd")); MultMatrixf = reinterpret_cast(GetProcAddress(handle, "glMultMatrixf")); MatrixMode = reinterpret_cast(GetProcAddress(handle, "glMatrixMode")); LoadMatrixd = reinterpret_cast(GetProcAddress(handle, "glLoadMatrixd")); LoadMatrixf = reinterpret_cast(GetProcAddress(handle, "glLoadMatrixf")); LoadIdentity = reinterpret_cast(GetProcAddress(handle, "glLoadIdentity")); Frustum = reinterpret_cast(GetProcAddress(handle, "glFrustum")); IsList = reinterpret_cast(GetProcAddress(handle, "glIsList")); GetTexGeniv = reinterpret_cast(GetProcAddress(handle, "glGetTexGeniv")); GetTexGenfv = reinterpret_cast(GetProcAddress(handle, "glGetTexGenfv")); GetTexGendv = reinterpret_cast(GetProcAddress(handle, "glGetTexGendv")); GetTexEnviv = reinterpret_cast(GetProcAddress(handle, "glGetTexEnviv")); GetTexEnvfv = reinterpret_cast(GetProcAddress(handle, "glGetTexEnvfv")); GetPolygonStipple = reinterpret_cast(GetProcAddress(handle, "glGetPolygonStipple")); GetPixelMapusv = reinterpret_cast(GetProcAddress(handle, "glGetPixelMapusv")); GetPixelMapuiv = reinterpret_cast(GetProcAddress(handle, "glGetPixelMapuiv")); GetPixelMapfv = reinterpret_cast(GetProcAddress(handle, "glGetPixelMapfv")); GetMaterialiv = reinterpret_cast(GetProcAddress(handle, "glGetMaterialiv")); GetMaterialfv = reinterpret_cast(GetProcAddress(handle, "glGetMaterialfv")); GetMapiv = reinterpret_cast(GetProcAddress(handle, "glGetMapiv")); GetMapfv = reinterpret_cast(GetProcAddress(handle, "glGetMapfv")); GetMapdv = reinterpret_cast(GetProcAddress(handle, "glGetMapdv")); GetLightiv = reinterpret_cast(GetProcAddress(handle, "glGetLightiv")); GetLightfv = reinterpret_cast(GetProcAddress(handle, "glGetLightfv")); GetClipPlane = reinterpret_cast(GetProcAddress(handle, "glGetClipPlane")); DrawPixels = reinterpret_cast(GetProcAddress(handle, "glDrawPixels")); CopyPixels = reinterpret_cast(GetProcAddress(handle, "glCopyPixels")); PixelMapusv = reinterpret_cast(GetProcAddress(handle, "glPixelMapusv")); PixelMapuiv = reinterpret_cast(GetProcAddress(handle, "glPixelMapuiv")); PixelMapfv = reinterpret_cast(GetProcAddress(handle, "glPixelMapfv")); PixelTransferi = reinterpret_cast(GetProcAddress(handle, "glPixelTransferi")); PixelTransferf = reinterpret_cast(GetProcAddress(handle, "glPixelTransferf")); PixelZoom = reinterpret_cast(GetProcAddress(handle, "glPixelZoom")); AlphaFunc = reinterpret_cast(GetProcAddress(handle, "glAlphaFunc")); EvalPoint2 = reinterpret_cast(GetProcAddress(handle, "glEvalPoint2")); EvalMesh2 = reinterpret_cast(GetProcAddress(handle, "glEvalMesh2")); EvalPoint1 = reinterpret_cast(GetProcAddress(handle, "glEvalPoint1")); EvalMesh1 = reinterpret_cast(GetProcAddress(handle, "glEvalMesh1")); EvalCoord2fv = reinterpret_cast(GetProcAddress(handle, "glEvalCoord2fv")); EvalCoord2f = reinterpret_cast(GetProcAddress(handle, "glEvalCoord2f")); EvalCoord2dv = reinterpret_cast(GetProcAddress(handle, "glEvalCoord2dv")); EvalCoord2d = reinterpret_cast(GetProcAddress(handle, "glEvalCoord2d")); EvalCoord1fv = reinterpret_cast(GetProcAddress(handle, "glEvalCoord1fv")); EvalCoord1f = reinterpret_cast(GetProcAddress(handle, "glEvalCoord1f")); EvalCoord1dv = reinterpret_cast(GetProcAddress(handle, "glEvalCoord1dv")); EvalCoord1d = reinterpret_cast(GetProcAddress(handle, "glEvalCoord1d")); MapGrid2f = reinterpret_cast(GetProcAddress(handle, "glMapGrid2f")); MapGrid2d = reinterpret_cast(GetProcAddress(handle, "glMapGrid2d")); MapGrid1f = reinterpret_cast(GetProcAddress(handle, "glMapGrid1f")); MapGrid1d = reinterpret_cast(GetProcAddress(handle, "glMapGrid1d")); Map2f = reinterpret_cast(GetProcAddress(handle, "glMap2f")); Map2d = reinterpret_cast(GetProcAddress(handle, "glMap2d")); Map1f = reinterpret_cast(GetProcAddress(handle, "glMap1f")); Map1d = reinterpret_cast(GetProcAddress(handle, "glMap1d")); PushAttrib = reinterpret_cast(GetProcAddress(handle, "glPushAttrib")); PopAttrib = reinterpret_cast(GetProcAddress(handle, "glPopAttrib")); Accum = reinterpret_cast(GetProcAddress(handle, "glAccum")); IndexMask = reinterpret_cast(GetProcAddress(handle, "glIndexMask")); ClearIndex = reinterpret_cast(GetProcAddress(handle, "glClearIndex")); ClearAccum = reinterpret_cast(GetProcAddress(handle, "glClearAccum")); PushName = reinterpret_cast(GetProcAddress(handle, "glPushName")); PopName = reinterpret_cast(GetProcAddress(handle, "glPopName")); PassThrough = reinterpret_cast(GetProcAddress(handle, "glPassThrough")); LoadName = reinterpret_cast(GetProcAddress(handle, "glLoadName")); InitNames = reinterpret_cast(GetProcAddress(handle, "glInitNames")); RenderMode = reinterpret_cast(GetProcAddress(handle, "glRenderMode")); SelectBuffer = reinterpret_cast(GetProcAddress(handle, "glSelectBuffer")); FeedbackBuffer = reinterpret_cast(GetProcAddress(handle, "glFeedbackBuffer")); TexGeniv = reinterpret_cast(GetProcAddress(handle, "glTexGeniv")); TexGeni = reinterpret_cast(GetProcAddress(handle, "glTexGeni")); TexGenfv = reinterpret_cast(GetProcAddress(handle, "glTexGenfv")); TexGenf = reinterpret_cast(GetProcAddress(handle, "glTexGenf")); TexGendv = reinterpret_cast(GetProcAddress(handle, "glTexGendv")); TexGend = reinterpret_cast(GetProcAddress(handle, "glTexGend")); TexEnviv = reinterpret_cast(GetProcAddress(handle, "glTexEnviv")); TexEnvi = reinterpret_cast(GetProcAddress(handle, "glTexEnvi")); TexEnvfv = reinterpret_cast(GetProcAddress(handle, "glTexEnvfv")); TexEnvf = reinterpret_cast(GetProcAddress(handle, "glTexEnvf")); ShadeModel = reinterpret_cast(GetProcAddress(handle, "glShadeModel")); PolygonStipple = reinterpret_cast(GetProcAddress(handle, "glPolygonStipple")); Materialiv = reinterpret_cast(GetProcAddress(handle, "glMaterialiv")); Materiali = reinterpret_cast(GetProcAddress(handle, "glMateriali")); Materialfv = reinterpret_cast(GetProcAddress(handle, "glMaterialfv")); Materialf = reinterpret_cast(GetProcAddress(handle, "glMaterialf")); LineStipple = reinterpret_cast(GetProcAddress(handle, "glLineStipple")); LightModeliv = reinterpret_cast(GetProcAddress(handle, "glLightModeliv")); LightModeli = reinterpret_cast(GetProcAddress(handle, "glLightModeli")); LightModelfv = reinterpret_cast(GetProcAddress(handle, "glLightModelfv")); LightModelf = reinterpret_cast(GetProcAddress(handle, "glLightModelf")); Lightiv = reinterpret_cast(GetProcAddress(handle, "glLightiv")); Lighti = reinterpret_cast(GetProcAddress(handle, "glLighti")); Lightfv = reinterpret_cast(GetProcAddress(handle, "glLightfv")); Lightf = reinterpret_cast(GetProcAddress(handle, "glLightf")); Fogiv = reinterpret_cast(GetProcAddress(handle, "glFogiv")); Fogi = reinterpret_cast(GetProcAddress(handle, "glFogi")); Fogfv = reinterpret_cast(GetProcAddress(handle, "glFogfv")); Fogf = reinterpret_cast(GetProcAddress(handle, "glFogf")); ColorMaterial = reinterpret_cast(GetProcAddress(handle, "glColorMaterial")); ClipPlane = reinterpret_cast(GetProcAddress(handle, "glClipPlane")); Vertex4sv = reinterpret_cast(GetProcAddress(handle, "glVertex4sv")); Vertex4s = reinterpret_cast(GetProcAddress(handle, "glVertex4s")); Vertex4iv = reinterpret_cast(GetProcAddress(handle, "glVertex4iv")); Vertex4i = reinterpret_cast(GetProcAddress(handle, "glVertex4i")); Vertex4fv = reinterpret_cast(GetProcAddress(handle, "glVertex4fv")); Vertex4f = reinterpret_cast(GetProcAddress(handle, "glVertex4f")); Vertex4dv = reinterpret_cast(GetProcAddress(handle, "glVertex4dv")); Vertex4d = reinterpret_cast(GetProcAddress(handle, "glVertex4d")); Vertex3sv = reinterpret_cast(GetProcAddress(handle, "glVertex3sv")); Vertex3s = reinterpret_cast(GetProcAddress(handle, "glVertex3s")); Vertex3iv = reinterpret_cast(GetProcAddress(handle, "glVertex3iv")); Vertex3i = reinterpret_cast(GetProcAddress(handle, "glVertex3i")); Vertex3fv = reinterpret_cast(GetProcAddress(handle, "glVertex3fv")); Vertex3f = reinterpret_cast(GetProcAddress(handle, "glVertex3f")); Vertex3dv = reinterpret_cast(GetProcAddress(handle, "glVertex3dv")); Vertex3d = reinterpret_cast(GetProcAddress(handle, "glVertex3d")); Vertex2sv = reinterpret_cast(GetProcAddress(handle, "glVertex2sv")); Vertex2s = reinterpret_cast(GetProcAddress(handle, "glVertex2s")); Vertex2iv = reinterpret_cast(GetProcAddress(handle, "glVertex2iv")); Vertex2i = reinterpret_cast(GetProcAddress(handle, "glVertex2i")); Vertex2fv = reinterpret_cast(GetProcAddress(handle, "glVertex2fv")); Vertex2f = reinterpret_cast(GetProcAddress(handle, "glVertex2f")); Vertex2dv = reinterpret_cast(GetProcAddress(handle, "glVertex2dv")); Vertex2d = reinterpret_cast(GetProcAddress(handle, "glVertex2d")); TexCoord4sv = reinterpret_cast(GetProcAddress(handle, "glTexCoord4sv")); TexCoord4s = reinterpret_cast(GetProcAddress(handle, "glTexCoord4s")); TexCoord4iv = reinterpret_cast(GetProcAddress(handle, "glTexCoord4iv")); TexCoord4i = reinterpret_cast(GetProcAddress(handle, "glTexCoord4i")); TexCoord4fv = reinterpret_cast(GetProcAddress(handle, "glTexCoord4fv")); TexCoord4f = reinterpret_cast(GetProcAddress(handle, "glTexCoord4f")); TexCoord4dv = reinterpret_cast(GetProcAddress(handle, "glTexCoord4dv")); TexCoord4d = reinterpret_cast(GetProcAddress(handle, "glTexCoord4d")); TexCoord3sv = reinterpret_cast(GetProcAddress(handle, "glTexCoord3sv")); TexCoord3s = reinterpret_cast(GetProcAddress(handle, "glTexCoord3s")); TexCoord3iv = reinterpret_cast(GetProcAddress(handle, "glTexCoord3iv")); TexCoord3i = reinterpret_cast(GetProcAddress(handle, "glTexCoord3i")); TexCoord3fv = reinterpret_cast(GetProcAddress(handle, "glTexCoord3fv")); TexCoord3f = reinterpret_cast(GetProcAddress(handle, "glTexCoord3f")); TexCoord3dv = reinterpret_cast(GetProcAddress(handle, "glTexCoord3dv")); TexCoord3d = reinterpret_cast(GetProcAddress(handle, "glTexCoord3d")); TexCoord2sv = reinterpret_cast(GetProcAddress(handle, "glTexCoord2sv")); TexCoord2s = reinterpret_cast(GetProcAddress(handle, "glTexCoord2s")); TexCoord2iv = reinterpret_cast(GetProcAddress(handle, "glTexCoord2iv")); TexCoord2i = reinterpret_cast(GetProcAddress(handle, "glTexCoord2i")); TexCoord2fv = reinterpret_cast(GetProcAddress(handle, "glTexCoord2fv")); TexCoord2f = reinterpret_cast(GetProcAddress(handle, "glTexCoord2f")); TexCoord2dv = reinterpret_cast(GetProcAddress(handle, "glTexCoord2dv")); TexCoord2d = reinterpret_cast(GetProcAddress(handle, "glTexCoord2d")); TexCoord1sv = reinterpret_cast(GetProcAddress(handle, "glTexCoord1sv")); TexCoord1s = reinterpret_cast(GetProcAddress(handle, "glTexCoord1s")); TexCoord1iv = reinterpret_cast(GetProcAddress(handle, "glTexCoord1iv")); TexCoord1i = reinterpret_cast(GetProcAddress(handle, "glTexCoord1i")); TexCoord1fv = reinterpret_cast(GetProcAddress(handle, "glTexCoord1fv")); TexCoord1f = reinterpret_cast(GetProcAddress(handle, "glTexCoord1f")); TexCoord1dv = reinterpret_cast(GetProcAddress(handle, "glTexCoord1dv")); TexCoord1d = reinterpret_cast(GetProcAddress(handle, "glTexCoord1d")); Rectsv = reinterpret_cast(GetProcAddress(handle, "glRectsv")); Rects = reinterpret_cast(GetProcAddress(handle, "glRects")); Rectiv = reinterpret_cast(GetProcAddress(handle, "glRectiv")); Recti = reinterpret_cast(GetProcAddress(handle, "glRecti")); Rectfv = reinterpret_cast(GetProcAddress(handle, "glRectfv")); Rectf = reinterpret_cast(GetProcAddress(handle, "glRectf")); Rectdv = reinterpret_cast(GetProcAddress(handle, "glRectdv")); Rectd = reinterpret_cast(GetProcAddress(handle, "glRectd")); RasterPos4sv = reinterpret_cast(GetProcAddress(handle, "glRasterPos4sv")); RasterPos4s = reinterpret_cast(GetProcAddress(handle, "glRasterPos4s")); RasterPos4iv = reinterpret_cast(GetProcAddress(handle, "glRasterPos4iv")); RasterPos4i = reinterpret_cast(GetProcAddress(handle, "glRasterPos4i")); RasterPos4fv = reinterpret_cast(GetProcAddress(handle, "glRasterPos4fv")); RasterPos4f = reinterpret_cast(GetProcAddress(handle, "glRasterPos4f")); RasterPos4dv = reinterpret_cast(GetProcAddress(handle, "glRasterPos4dv")); RasterPos4d = reinterpret_cast(GetProcAddress(handle, "glRasterPos4d")); RasterPos3sv = reinterpret_cast(GetProcAddress(handle, "glRasterPos3sv")); RasterPos3s = reinterpret_cast(GetProcAddress(handle, "glRasterPos3s")); RasterPos3iv = reinterpret_cast(GetProcAddress(handle, "glRasterPos3iv")); RasterPos3i = reinterpret_cast(GetProcAddress(handle, "glRasterPos3i")); RasterPos3fv = reinterpret_cast(GetProcAddress(handle, "glRasterPos3fv")); RasterPos3f = reinterpret_cast(GetProcAddress(handle, "glRasterPos3f")); RasterPos3dv = reinterpret_cast(GetProcAddress(handle, "glRasterPos3dv")); RasterPos3d = reinterpret_cast(GetProcAddress(handle, "glRasterPos3d")); RasterPos2sv = reinterpret_cast(GetProcAddress(handle, "glRasterPos2sv")); RasterPos2s = reinterpret_cast(GetProcAddress(handle, "glRasterPos2s")); RasterPos2iv = reinterpret_cast(GetProcAddress(handle, "glRasterPos2iv")); RasterPos2i = reinterpret_cast(GetProcAddress(handle, "glRasterPos2i")); RasterPos2fv = reinterpret_cast(GetProcAddress(handle, "glRasterPos2fv")); RasterPos2f = reinterpret_cast(GetProcAddress(handle, "glRasterPos2f")); RasterPos2dv = reinterpret_cast(GetProcAddress(handle, "glRasterPos2dv")); RasterPos2d = reinterpret_cast(GetProcAddress(handle, "glRasterPos2d")); Normal3sv = reinterpret_cast(GetProcAddress(handle, "glNormal3sv")); Normal3s = reinterpret_cast(GetProcAddress(handle, "glNormal3s")); Normal3iv = reinterpret_cast(GetProcAddress(handle, "glNormal3iv")); Normal3i = reinterpret_cast(GetProcAddress(handle, "glNormal3i")); Normal3fv = reinterpret_cast(GetProcAddress(handle, "glNormal3fv")); Normal3f = reinterpret_cast(GetProcAddress(handle, "glNormal3f")); Normal3dv = reinterpret_cast(GetProcAddress(handle, "glNormal3dv")); Normal3d = reinterpret_cast(GetProcAddress(handle, "glNormal3d")); Normal3bv = reinterpret_cast(GetProcAddress(handle, "glNormal3bv")); Normal3b = reinterpret_cast(GetProcAddress(handle, "glNormal3b")); Indexsv = reinterpret_cast(GetProcAddress(handle, "glIndexsv")); Indexs = reinterpret_cast(GetProcAddress(handle, "glIndexs")); Indexiv = reinterpret_cast(GetProcAddress(handle, "glIndexiv")); Indexi = reinterpret_cast(GetProcAddress(handle, "glIndexi")); Indexfv = reinterpret_cast(GetProcAddress(handle, "glIndexfv")); Indexf = reinterpret_cast(GetProcAddress(handle, "glIndexf")); Indexdv = reinterpret_cast(GetProcAddress(handle, "glIndexdv")); Indexd = reinterpret_cast(GetProcAddress(handle, "glIndexd")); End = reinterpret_cast(GetProcAddress(handle, "glEnd")); EdgeFlagv = reinterpret_cast(GetProcAddress(handle, "glEdgeFlagv")); EdgeFlag = reinterpret_cast(GetProcAddress(handle, "glEdgeFlag")); Color4usv = reinterpret_cast(GetProcAddress(handle, "glColor4usv")); Color4us = reinterpret_cast(GetProcAddress(handle, "glColor4us")); Color4uiv = reinterpret_cast(GetProcAddress(handle, "glColor4uiv")); Color4ui = reinterpret_cast(GetProcAddress(handle, "glColor4ui")); Color4ubv = reinterpret_cast(GetProcAddress(handle, "glColor4ubv")); Color4ub = reinterpret_cast(GetProcAddress(handle, "glColor4ub")); Color4sv = reinterpret_cast(GetProcAddress(handle, "glColor4sv")); Color4s = reinterpret_cast(GetProcAddress(handle, "glColor4s")); Color4iv = reinterpret_cast(GetProcAddress(handle, "glColor4iv")); Color4i = reinterpret_cast(GetProcAddress(handle, "glColor4i")); Color4fv = reinterpret_cast(GetProcAddress(handle, "glColor4fv")); Color4f = reinterpret_cast(GetProcAddress(handle, "glColor4f")); Color4dv = reinterpret_cast(GetProcAddress(handle, "glColor4dv")); Color4d = reinterpret_cast(GetProcAddress(handle, "glColor4d")); Color4bv = reinterpret_cast(GetProcAddress(handle, "glColor4bv")); Color4b = reinterpret_cast(GetProcAddress(handle, "glColor4b")); Color3usv = reinterpret_cast(GetProcAddress(handle, "glColor3usv")); Color3us = reinterpret_cast(GetProcAddress(handle, "glColor3us")); Color3uiv = reinterpret_cast(GetProcAddress(handle, "glColor3uiv")); Color3ui = reinterpret_cast(GetProcAddress(handle, "glColor3ui")); Color3ubv = reinterpret_cast(GetProcAddress(handle, "glColor3ubv")); Color3ub = reinterpret_cast(GetProcAddress(handle, "glColor3ub")); Color3sv = reinterpret_cast(GetProcAddress(handle, "glColor3sv")); Color3s = reinterpret_cast(GetProcAddress(handle, "glColor3s")); Color3iv = reinterpret_cast(GetProcAddress(handle, "glColor3iv")); Color3i = reinterpret_cast(GetProcAddress(handle, "glColor3i")); Color3fv = reinterpret_cast(GetProcAddress(handle, "glColor3fv")); Color3f = reinterpret_cast(GetProcAddress(handle, "glColor3f")); Color3dv = reinterpret_cast(GetProcAddress(handle, "glColor3dv")); Color3d = reinterpret_cast(GetProcAddress(handle, "glColor3d")); Color3bv = reinterpret_cast(GetProcAddress(handle, "glColor3bv")); Color3b = reinterpret_cast(GetProcAddress(handle, "glColor3b")); Bitmap = reinterpret_cast(GetProcAddress(handle, "glBitmap")); Begin = reinterpret_cast(GetProcAddress(handle, "glBegin")); ListBase = reinterpret_cast(GetProcAddress(handle, "glListBase")); GenLists = reinterpret_cast(GetProcAddress(handle, "glGenLists")); DeleteLists = reinterpret_cast(GetProcAddress(handle, "glDeleteLists")); CallLists = reinterpret_cast(GetProcAddress(handle, "glCallLists")); CallList = reinterpret_cast(GetProcAddress(handle, "glCallList")); EndList = reinterpret_cast(GetProcAddress(handle, "glEndList")); NewList = reinterpret_cast(GetProcAddress(handle, "glNewList")); #else Translatef = reinterpret_cast(context->getProcAddress("glTranslatef")); Translated = reinterpret_cast(context->getProcAddress("glTranslated")); Scalef = reinterpret_cast(context->getProcAddress("glScalef")); Scaled = reinterpret_cast(context->getProcAddress("glScaled")); Rotatef = reinterpret_cast(context->getProcAddress("glRotatef")); Rotated = reinterpret_cast(context->getProcAddress("glRotated")); PushMatrix = reinterpret_cast(context->getProcAddress("glPushMatrix")); PopMatrix = reinterpret_cast(context->getProcAddress("glPopMatrix")); Ortho = reinterpret_cast(context->getProcAddress("glOrtho")); MultMatrixd = reinterpret_cast(context->getProcAddress("glMultMatrixd")); MultMatrixf = reinterpret_cast(context->getProcAddress("glMultMatrixf")); MatrixMode = reinterpret_cast(context->getProcAddress("glMatrixMode")); LoadMatrixd = reinterpret_cast(context->getProcAddress("glLoadMatrixd")); LoadMatrixf = reinterpret_cast(context->getProcAddress("glLoadMatrixf")); LoadIdentity = reinterpret_cast(context->getProcAddress("glLoadIdentity")); Frustum = reinterpret_cast(context->getProcAddress("glFrustum")); IsList = reinterpret_cast(context->getProcAddress("glIsList")); GetTexGeniv = reinterpret_cast(context->getProcAddress("glGetTexGeniv")); GetTexGenfv = reinterpret_cast(context->getProcAddress("glGetTexGenfv")); GetTexGendv = reinterpret_cast(context->getProcAddress("glGetTexGendv")); GetTexEnviv = reinterpret_cast(context->getProcAddress("glGetTexEnviv")); GetTexEnvfv = reinterpret_cast(context->getProcAddress("glGetTexEnvfv")); GetPolygonStipple = reinterpret_cast(context->getProcAddress("glGetPolygonStipple")); GetPixelMapusv = reinterpret_cast(context->getProcAddress("glGetPixelMapusv")); GetPixelMapuiv = reinterpret_cast(context->getProcAddress("glGetPixelMapuiv")); GetPixelMapfv = reinterpret_cast(context->getProcAddress("glGetPixelMapfv")); GetMaterialiv = reinterpret_cast(context->getProcAddress("glGetMaterialiv")); GetMaterialfv = reinterpret_cast(context->getProcAddress("glGetMaterialfv")); GetMapiv = reinterpret_cast(context->getProcAddress("glGetMapiv")); GetMapfv = reinterpret_cast(context->getProcAddress("glGetMapfv")); GetMapdv = reinterpret_cast(context->getProcAddress("glGetMapdv")); GetLightiv = reinterpret_cast(context->getProcAddress("glGetLightiv")); GetLightfv = reinterpret_cast(context->getProcAddress("glGetLightfv")); GetClipPlane = reinterpret_cast(context->getProcAddress("glGetClipPlane")); DrawPixels = reinterpret_cast(context->getProcAddress("glDrawPixels")); CopyPixels = reinterpret_cast(context->getProcAddress("glCopyPixels")); PixelMapusv = reinterpret_cast(context->getProcAddress("glPixelMapusv")); PixelMapuiv = reinterpret_cast(context->getProcAddress("glPixelMapuiv")); PixelMapfv = reinterpret_cast(context->getProcAddress("glPixelMapfv")); PixelTransferi = reinterpret_cast(context->getProcAddress("glPixelTransferi")); PixelTransferf = reinterpret_cast(context->getProcAddress("glPixelTransferf")); PixelZoom = reinterpret_cast(context->getProcAddress("glPixelZoom")); AlphaFunc = reinterpret_cast(context->getProcAddress("glAlphaFunc")); EvalPoint2 = reinterpret_cast(context->getProcAddress("glEvalPoint2")); EvalMesh2 = reinterpret_cast(context->getProcAddress("glEvalMesh2")); EvalPoint1 = reinterpret_cast(context->getProcAddress("glEvalPoint1")); EvalMesh1 = reinterpret_cast(context->getProcAddress("glEvalMesh1")); EvalCoord2fv = reinterpret_cast(context->getProcAddress("glEvalCoord2fv")); EvalCoord2f = reinterpret_cast(context->getProcAddress("glEvalCoord2f")); EvalCoord2dv = reinterpret_cast(context->getProcAddress("glEvalCoord2dv")); EvalCoord2d = reinterpret_cast(context->getProcAddress("glEvalCoord2d")); EvalCoord1fv = reinterpret_cast(context->getProcAddress("glEvalCoord1fv")); EvalCoord1f = reinterpret_cast(context->getProcAddress("glEvalCoord1f")); EvalCoord1dv = reinterpret_cast(context->getProcAddress("glEvalCoord1dv")); EvalCoord1d = reinterpret_cast(context->getProcAddress("glEvalCoord1d")); MapGrid2f = reinterpret_cast(context->getProcAddress("glMapGrid2f")); MapGrid2d = reinterpret_cast(context->getProcAddress("glMapGrid2d")); MapGrid1f = reinterpret_cast(context->getProcAddress("glMapGrid1f")); MapGrid1d = reinterpret_cast(context->getProcAddress("glMapGrid1d")); Map2f = reinterpret_cast(context->getProcAddress("glMap2f")); Map2d = reinterpret_cast(context->getProcAddress("glMap2d")); Map1f = reinterpret_cast(context->getProcAddress("glMap1f")); Map1d = reinterpret_cast(context->getProcAddress("glMap1d")); PushAttrib = reinterpret_cast(context->getProcAddress("glPushAttrib")); PopAttrib = reinterpret_cast(context->getProcAddress("glPopAttrib")); Accum = reinterpret_cast(context->getProcAddress("glAccum")); IndexMask = reinterpret_cast(context->getProcAddress("glIndexMask")); ClearIndex = reinterpret_cast(context->getProcAddress("glClearIndex")); ClearAccum = reinterpret_cast(context->getProcAddress("glClearAccum")); PushName = reinterpret_cast(context->getProcAddress("glPushName")); PopName = reinterpret_cast(context->getProcAddress("glPopName")); PassThrough = reinterpret_cast(context->getProcAddress("glPassThrough")); LoadName = reinterpret_cast(context->getProcAddress("glLoadName")); InitNames = reinterpret_cast(context->getProcAddress("glInitNames")); RenderMode = reinterpret_cast(context->getProcAddress("glRenderMode")); SelectBuffer = reinterpret_cast(context->getProcAddress("glSelectBuffer")); FeedbackBuffer = reinterpret_cast(context->getProcAddress("glFeedbackBuffer")); TexGeniv = reinterpret_cast(context->getProcAddress("glTexGeniv")); TexGeni = reinterpret_cast(context->getProcAddress("glTexGeni")); TexGenfv = reinterpret_cast(context->getProcAddress("glTexGenfv")); TexGenf = reinterpret_cast(context->getProcAddress("glTexGenf")); TexGendv = reinterpret_cast(context->getProcAddress("glTexGendv")); TexGend = reinterpret_cast(context->getProcAddress("glTexGend")); TexEnviv = reinterpret_cast(context->getProcAddress("glTexEnviv")); TexEnvi = reinterpret_cast(context->getProcAddress("glTexEnvi")); TexEnvfv = reinterpret_cast(context->getProcAddress("glTexEnvfv")); TexEnvf = reinterpret_cast(context->getProcAddress("glTexEnvf")); ShadeModel = reinterpret_cast(context->getProcAddress("glShadeModel")); PolygonStipple = reinterpret_cast(context->getProcAddress("glPolygonStipple")); Materialiv = reinterpret_cast(context->getProcAddress("glMaterialiv")); Materiali = reinterpret_cast(context->getProcAddress("glMateriali")); Materialfv = reinterpret_cast(context->getProcAddress("glMaterialfv")); Materialf = reinterpret_cast(context->getProcAddress("glMaterialf")); LineStipple = reinterpret_cast(context->getProcAddress("glLineStipple")); LightModeliv = reinterpret_cast(context->getProcAddress("glLightModeliv")); LightModeli = reinterpret_cast(context->getProcAddress("glLightModeli")); LightModelfv = reinterpret_cast(context->getProcAddress("glLightModelfv")); LightModelf = reinterpret_cast(context->getProcAddress("glLightModelf")); Lightiv = reinterpret_cast(context->getProcAddress("glLightiv")); Lighti = reinterpret_cast(context->getProcAddress("glLighti")); Lightfv = reinterpret_cast(context->getProcAddress("glLightfv")); Lightf = reinterpret_cast(context->getProcAddress("glLightf")); Fogiv = reinterpret_cast(context->getProcAddress("glFogiv")); Fogi = reinterpret_cast(context->getProcAddress("glFogi")); Fogfv = reinterpret_cast(context->getProcAddress("glFogfv")); Fogf = reinterpret_cast(context->getProcAddress("glFogf")); ColorMaterial = reinterpret_cast(context->getProcAddress("glColorMaterial")); ClipPlane = reinterpret_cast(context->getProcAddress("glClipPlane")); Vertex4sv = reinterpret_cast(context->getProcAddress("glVertex4sv")); Vertex4s = reinterpret_cast(context->getProcAddress("glVertex4s")); Vertex4iv = reinterpret_cast(context->getProcAddress("glVertex4iv")); Vertex4i = reinterpret_cast(context->getProcAddress("glVertex4i")); Vertex4fv = reinterpret_cast(context->getProcAddress("glVertex4fv")); Vertex4f = reinterpret_cast(context->getProcAddress("glVertex4f")); Vertex4dv = reinterpret_cast(context->getProcAddress("glVertex4dv")); Vertex4d = reinterpret_cast(context->getProcAddress("glVertex4d")); Vertex3sv = reinterpret_cast(context->getProcAddress("glVertex3sv")); Vertex3s = reinterpret_cast(context->getProcAddress("glVertex3s")); Vertex3iv = reinterpret_cast(context->getProcAddress("glVertex3iv")); Vertex3i = reinterpret_cast(context->getProcAddress("glVertex3i")); Vertex3fv = reinterpret_cast(context->getProcAddress("glVertex3fv")); Vertex3f = reinterpret_cast(context->getProcAddress("glVertex3f")); Vertex3dv = reinterpret_cast(context->getProcAddress("glVertex3dv")); Vertex3d = reinterpret_cast(context->getProcAddress("glVertex3d")); Vertex2sv = reinterpret_cast(context->getProcAddress("glVertex2sv")); Vertex2s = reinterpret_cast(context->getProcAddress("glVertex2s")); Vertex2iv = reinterpret_cast(context->getProcAddress("glVertex2iv")); Vertex2i = reinterpret_cast(context->getProcAddress("glVertex2i")); Vertex2fv = reinterpret_cast(context->getProcAddress("glVertex2fv")); Vertex2f = reinterpret_cast(context->getProcAddress("glVertex2f")); Vertex2dv = reinterpret_cast(context->getProcAddress("glVertex2dv")); Vertex2d = reinterpret_cast(context->getProcAddress("glVertex2d")); TexCoord4sv = reinterpret_cast(context->getProcAddress("glTexCoord4sv")); TexCoord4s = reinterpret_cast(context->getProcAddress("glTexCoord4s")); TexCoord4iv = reinterpret_cast(context->getProcAddress("glTexCoord4iv")); TexCoord4i = reinterpret_cast(context->getProcAddress("glTexCoord4i")); TexCoord4fv = reinterpret_cast(context->getProcAddress("glTexCoord4fv")); TexCoord4f = reinterpret_cast(context->getProcAddress("glTexCoord4f")); TexCoord4dv = reinterpret_cast(context->getProcAddress("glTexCoord4dv")); TexCoord4d = reinterpret_cast(context->getProcAddress("glTexCoord4d")); TexCoord3sv = reinterpret_cast(context->getProcAddress("glTexCoord3sv")); TexCoord3s = reinterpret_cast(context->getProcAddress("glTexCoord3s")); TexCoord3iv = reinterpret_cast(context->getProcAddress("glTexCoord3iv")); TexCoord3i = reinterpret_cast(context->getProcAddress("glTexCoord3i")); TexCoord3fv = reinterpret_cast(context->getProcAddress("glTexCoord3fv")); TexCoord3f = reinterpret_cast(context->getProcAddress("glTexCoord3f")); TexCoord3dv = reinterpret_cast(context->getProcAddress("glTexCoord3dv")); TexCoord3d = reinterpret_cast(context->getProcAddress("glTexCoord3d")); TexCoord2sv = reinterpret_cast(context->getProcAddress("glTexCoord2sv")); TexCoord2s = reinterpret_cast(context->getProcAddress("glTexCoord2s")); TexCoord2iv = reinterpret_cast(context->getProcAddress("glTexCoord2iv")); TexCoord2i = reinterpret_cast(context->getProcAddress("glTexCoord2i")); TexCoord2fv = reinterpret_cast(context->getProcAddress("glTexCoord2fv")); TexCoord2f = reinterpret_cast(context->getProcAddress("glTexCoord2f")); TexCoord2dv = reinterpret_cast(context->getProcAddress("glTexCoord2dv")); TexCoord2d = reinterpret_cast(context->getProcAddress("glTexCoord2d")); TexCoord1sv = reinterpret_cast(context->getProcAddress("glTexCoord1sv")); TexCoord1s = reinterpret_cast(context->getProcAddress("glTexCoord1s")); TexCoord1iv = reinterpret_cast(context->getProcAddress("glTexCoord1iv")); TexCoord1i = reinterpret_cast(context->getProcAddress("glTexCoord1i")); TexCoord1fv = reinterpret_cast(context->getProcAddress("glTexCoord1fv")); TexCoord1f = reinterpret_cast(context->getProcAddress("glTexCoord1f")); TexCoord1dv = reinterpret_cast(context->getProcAddress("glTexCoord1dv")); TexCoord1d = reinterpret_cast(context->getProcAddress("glTexCoord1d")); Rectsv = reinterpret_cast(context->getProcAddress("glRectsv")); Rects = reinterpret_cast(context->getProcAddress("glRects")); Rectiv = reinterpret_cast(context->getProcAddress("glRectiv")); Recti = reinterpret_cast(context->getProcAddress("glRecti")); Rectfv = reinterpret_cast(context->getProcAddress("glRectfv")); Rectf = reinterpret_cast(context->getProcAddress("glRectf")); Rectdv = reinterpret_cast(context->getProcAddress("glRectdv")); Rectd = reinterpret_cast(context->getProcAddress("glRectd")); RasterPos4sv = reinterpret_cast(context->getProcAddress("glRasterPos4sv")); RasterPos4s = reinterpret_cast(context->getProcAddress("glRasterPos4s")); RasterPos4iv = reinterpret_cast(context->getProcAddress("glRasterPos4iv")); RasterPos4i = reinterpret_cast(context->getProcAddress("glRasterPos4i")); RasterPos4fv = reinterpret_cast(context->getProcAddress("glRasterPos4fv")); RasterPos4f = reinterpret_cast(context->getProcAddress("glRasterPos4f")); RasterPos4dv = reinterpret_cast(context->getProcAddress("glRasterPos4dv")); RasterPos4d = reinterpret_cast(context->getProcAddress("glRasterPos4d")); RasterPos3sv = reinterpret_cast(context->getProcAddress("glRasterPos3sv")); RasterPos3s = reinterpret_cast(context->getProcAddress("glRasterPos3s")); RasterPos3iv = reinterpret_cast(context->getProcAddress("glRasterPos3iv")); RasterPos3i = reinterpret_cast(context->getProcAddress("glRasterPos3i")); RasterPos3fv = reinterpret_cast(context->getProcAddress("glRasterPos3fv")); RasterPos3f = reinterpret_cast(context->getProcAddress("glRasterPos3f")); RasterPos3dv = reinterpret_cast(context->getProcAddress("glRasterPos3dv")); RasterPos3d = reinterpret_cast(context->getProcAddress("glRasterPos3d")); RasterPos2sv = reinterpret_cast(context->getProcAddress("glRasterPos2sv")); RasterPos2s = reinterpret_cast(context->getProcAddress("glRasterPos2s")); RasterPos2iv = reinterpret_cast(context->getProcAddress("glRasterPos2iv")); RasterPos2i = reinterpret_cast(context->getProcAddress("glRasterPos2i")); RasterPos2fv = reinterpret_cast(context->getProcAddress("glRasterPos2fv")); RasterPos2f = reinterpret_cast(context->getProcAddress("glRasterPos2f")); RasterPos2dv = reinterpret_cast(context->getProcAddress("glRasterPos2dv")); RasterPos2d = reinterpret_cast(context->getProcAddress("glRasterPos2d")); Normal3sv = reinterpret_cast(context->getProcAddress("glNormal3sv")); Normal3s = reinterpret_cast(context->getProcAddress("glNormal3s")); Normal3iv = reinterpret_cast(context->getProcAddress("glNormal3iv")); Normal3i = reinterpret_cast(context->getProcAddress("glNormal3i")); Normal3fv = reinterpret_cast(context->getProcAddress("glNormal3fv")); Normal3f = reinterpret_cast(context->getProcAddress("glNormal3f")); Normal3dv = reinterpret_cast(context->getProcAddress("glNormal3dv")); Normal3d = reinterpret_cast(context->getProcAddress("glNormal3d")); Normal3bv = reinterpret_cast(context->getProcAddress("glNormal3bv")); Normal3b = reinterpret_cast(context->getProcAddress("glNormal3b")); Indexsv = reinterpret_cast(context->getProcAddress("glIndexsv")); Indexs = reinterpret_cast(context->getProcAddress("glIndexs")); Indexiv = reinterpret_cast(context->getProcAddress("glIndexiv")); Indexi = reinterpret_cast(context->getProcAddress("glIndexi")); Indexfv = reinterpret_cast(context->getProcAddress("glIndexfv")); Indexf = reinterpret_cast(context->getProcAddress("glIndexf")); Indexdv = reinterpret_cast(context->getProcAddress("glIndexdv")); Indexd = reinterpret_cast(context->getProcAddress("glIndexd")); End = reinterpret_cast(context->getProcAddress("glEnd")); EdgeFlagv = reinterpret_cast(context->getProcAddress("glEdgeFlagv")); EdgeFlag = reinterpret_cast(context->getProcAddress("glEdgeFlag")); Color4usv = reinterpret_cast(context->getProcAddress("glColor4usv")); Color4us = reinterpret_cast(context->getProcAddress("glColor4us")); Color4uiv = reinterpret_cast(context->getProcAddress("glColor4uiv")); Color4ui = reinterpret_cast(context->getProcAddress("glColor4ui")); Color4ubv = reinterpret_cast(context->getProcAddress("glColor4ubv")); Color4ub = reinterpret_cast(context->getProcAddress("glColor4ub")); Color4sv = reinterpret_cast(context->getProcAddress("glColor4sv")); Color4s = reinterpret_cast(context->getProcAddress("glColor4s")); Color4iv = reinterpret_cast(context->getProcAddress("glColor4iv")); Color4i = reinterpret_cast(context->getProcAddress("glColor4i")); Color4fv = reinterpret_cast(context->getProcAddress("glColor4fv")); Color4f = reinterpret_cast(context->getProcAddress("glColor4f")); Color4dv = reinterpret_cast(context->getProcAddress("glColor4dv")); Color4d = reinterpret_cast(context->getProcAddress("glColor4d")); Color4bv = reinterpret_cast(context->getProcAddress("glColor4bv")); Color4b = reinterpret_cast(context->getProcAddress("glColor4b")); Color3usv = reinterpret_cast(context->getProcAddress("glColor3usv")); Color3us = reinterpret_cast(context->getProcAddress("glColor3us")); Color3uiv = reinterpret_cast(context->getProcAddress("glColor3uiv")); Color3ui = reinterpret_cast(context->getProcAddress("glColor3ui")); Color3ubv = reinterpret_cast(context->getProcAddress("glColor3ubv")); Color3ub = reinterpret_cast(context->getProcAddress("glColor3ub")); Color3sv = reinterpret_cast(context->getProcAddress("glColor3sv")); Color3s = reinterpret_cast(context->getProcAddress("glColor3s")); Color3iv = reinterpret_cast(context->getProcAddress("glColor3iv")); Color3i = reinterpret_cast(context->getProcAddress("glColor3i")); Color3fv = reinterpret_cast(context->getProcAddress("glColor3fv")); Color3f = reinterpret_cast(context->getProcAddress("glColor3f")); Color3dv = reinterpret_cast(context->getProcAddress("glColor3dv")); Color3d = reinterpret_cast(context->getProcAddress("glColor3d")); Color3bv = reinterpret_cast(context->getProcAddress("glColor3bv")); Color3b = reinterpret_cast(context->getProcAddress("glColor3b")); Bitmap = reinterpret_cast(context->getProcAddress("glBitmap")); Begin = reinterpret_cast(context->getProcAddress("glBegin")); ListBase = reinterpret_cast(context->getProcAddress("glListBase")); GenLists = reinterpret_cast(context->getProcAddress("glGenLists")); DeleteLists = reinterpret_cast(context->getProcAddress("glDeleteLists")); CallLists = reinterpret_cast(context->getProcAddress("glCallLists")); CallList = reinterpret_cast(context->getProcAddress("glCallList")); EndList = reinterpret_cast(context->getProcAddress("glEndList")); NewList = reinterpret_cast(context->getProcAddress("glNewList")); #endif } QOpenGLVersionStatus QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus() { return QOpenGLVersionStatus(1, 0, QOpenGLVersionStatus::DeprecatedStatus); } QOpenGLFunctions_1_1_DeprecatedBackend::QOpenGLFunctions_1_1_DeprecatedBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 1.1 deprecated functions #if defined(Q_OS_WIN) HMODULE handle = static_cast(QOpenGLContext::openGLModuleHandle()); if (!handle) handle = GetModuleHandleA("opengl32.dll"); PushClientAttrib = reinterpret_cast(GetProcAddress(handle, "glPushClientAttrib")); PopClientAttrib = reinterpret_cast(GetProcAddress(handle, "glPopClientAttrib")); Indexubv = reinterpret_cast(GetProcAddress(handle, "glIndexubv")); Indexub = reinterpret_cast(GetProcAddress(handle, "glIndexub")); PrioritizeTextures = reinterpret_cast(GetProcAddress(handle, "glPrioritizeTextures")); AreTexturesResident = reinterpret_cast(GetProcAddress(handle, "glAreTexturesResident")); VertexPointer = reinterpret_cast(GetProcAddress(handle, "glVertexPointer")); TexCoordPointer = reinterpret_cast(GetProcAddress(handle, "glTexCoordPointer")); NormalPointer = reinterpret_cast(GetProcAddress(handle, "glNormalPointer")); InterleavedArrays = reinterpret_cast(GetProcAddress(handle, "glInterleavedArrays")); GetPointerv = reinterpret_cast(GetProcAddress(handle, "glGetPointerv")); IndexPointer = reinterpret_cast(GetProcAddress(handle, "glIndexPointer")); EnableClientState = reinterpret_cast(GetProcAddress(handle, "glEnableClientState")); EdgeFlagPointer = reinterpret_cast(GetProcAddress(handle, "glEdgeFlagPointer")); DisableClientState = reinterpret_cast(GetProcAddress(handle, "glDisableClientState")); ColorPointer = reinterpret_cast(GetProcAddress(handle, "glColorPointer")); ArrayElement = reinterpret_cast(GetProcAddress(handle, "glArrayElement")); #else PushClientAttrib = reinterpret_cast(context->getProcAddress("glPushClientAttrib")); PopClientAttrib = reinterpret_cast(context->getProcAddress("glPopClientAttrib")); Indexubv = reinterpret_cast(context->getProcAddress("glIndexubv")); Indexub = reinterpret_cast(context->getProcAddress("glIndexub")); PrioritizeTextures = reinterpret_cast(context->getProcAddress("glPrioritizeTextures")); AreTexturesResident = reinterpret_cast(context->getProcAddress("glAreTexturesResident")); VertexPointer = reinterpret_cast(context->getProcAddress("glVertexPointer")); TexCoordPointer = reinterpret_cast(context->getProcAddress("glTexCoordPointer")); NormalPointer = reinterpret_cast(context->getProcAddress("glNormalPointer")); InterleavedArrays = reinterpret_cast(context->getProcAddress("glInterleavedArrays")); GetPointerv = reinterpret_cast(context->getProcAddress("glGetPointerv")); IndexPointer = reinterpret_cast(context->getProcAddress("glIndexPointer")); EnableClientState = reinterpret_cast(context->getProcAddress("glEnableClientState")); EdgeFlagPointer = reinterpret_cast(context->getProcAddress("glEdgeFlagPointer")); DisableClientState = reinterpret_cast(context->getProcAddress("glDisableClientState")); ColorPointer = reinterpret_cast(context->getProcAddress("glColorPointer")); ArrayElement = reinterpret_cast(context->getProcAddress("glArrayElement")); #endif } QOpenGLVersionStatus QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus() { return QOpenGLVersionStatus(1, 1, QOpenGLVersionStatus::DeprecatedStatus); } QOpenGLFunctions_1_2_DeprecatedBackend::QOpenGLFunctions_1_2_DeprecatedBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 1.2 deprecated functions ResetMinmax = reinterpret_cast(context->getProcAddress("glResetMinmax")); ResetHistogram = reinterpret_cast(context->getProcAddress("glResetHistogram")); Minmax = reinterpret_cast(context->getProcAddress("glMinmax")); Histogram = reinterpret_cast(context->getProcAddress("glHistogram")); GetMinmaxParameteriv = reinterpret_cast(context->getProcAddress("glGetMinmaxParameteriv")); GetMinmaxParameterfv = reinterpret_cast(context->getProcAddress("glGetMinmaxParameterfv")); GetMinmax = reinterpret_cast(context->getProcAddress("glGetMinmax")); GetHistogramParameteriv = reinterpret_cast(context->getProcAddress("glGetHistogramParameteriv")); GetHistogramParameterfv = reinterpret_cast(context->getProcAddress("glGetHistogramParameterfv")); GetHistogram = reinterpret_cast(context->getProcAddress("glGetHistogram")); SeparableFilter2D = reinterpret_cast(context->getProcAddress("glSeparableFilter2D")); GetSeparableFilter = reinterpret_cast(context->getProcAddress("glGetSeparableFilter")); GetConvolutionParameteriv = reinterpret_cast(context->getProcAddress("glGetConvolutionParameteriv")); GetConvolutionParameterfv = reinterpret_cast(context->getProcAddress("glGetConvolutionParameterfv")); GetConvolutionFilter = reinterpret_cast(context->getProcAddress("glGetConvolutionFilter")); CopyConvolutionFilter2D = reinterpret_cast(context->getProcAddress("glCopyConvolutionFilter2D")); CopyConvolutionFilter1D = reinterpret_cast(context->getProcAddress("glCopyConvolutionFilter1D")); ConvolutionParameteriv = reinterpret_cast(context->getProcAddress("glConvolutionParameteriv")); ConvolutionParameteri = reinterpret_cast(context->getProcAddress("glConvolutionParameteri")); ConvolutionParameterfv = reinterpret_cast(context->getProcAddress("glConvolutionParameterfv")); ConvolutionParameterf = reinterpret_cast(context->getProcAddress("glConvolutionParameterf")); ConvolutionFilter2D = reinterpret_cast(context->getProcAddress("glConvolutionFilter2D")); ConvolutionFilter1D = reinterpret_cast(context->getProcAddress("glConvolutionFilter1D")); CopyColorSubTable = reinterpret_cast(context->getProcAddress("glCopyColorSubTable")); ColorSubTable = reinterpret_cast(context->getProcAddress("glColorSubTable")); GetColorTableParameteriv = reinterpret_cast(context->getProcAddress("glGetColorTableParameteriv")); GetColorTableParameterfv = reinterpret_cast(context->getProcAddress("glGetColorTableParameterfv")); GetColorTable = reinterpret_cast(context->getProcAddress("glGetColorTable")); CopyColorTable = reinterpret_cast(context->getProcAddress("glCopyColorTable")); ColorTableParameteriv = reinterpret_cast(context->getProcAddress("glColorTableParameteriv")); ColorTableParameterfv = reinterpret_cast(context->getProcAddress("glColorTableParameterfv")); ColorTable = reinterpret_cast(context->getProcAddress("glColorTable")); } QOpenGLVersionStatus QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus() { return QOpenGLVersionStatus(1, 2, QOpenGLVersionStatus::DeprecatedStatus); } QOpenGLFunctions_1_3_DeprecatedBackend::QOpenGLFunctions_1_3_DeprecatedBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 1.3 deprecated functions MultTransposeMatrixd = reinterpret_cast(context->getProcAddress("glMultTransposeMatrixd")); MultTransposeMatrixf = reinterpret_cast(context->getProcAddress("glMultTransposeMatrixf")); LoadTransposeMatrixd = reinterpret_cast(context->getProcAddress("glLoadTransposeMatrixd")); LoadTransposeMatrixf = reinterpret_cast(context->getProcAddress("glLoadTransposeMatrixf")); MultiTexCoord4sv = reinterpret_cast(context->getProcAddress("glMultiTexCoord4sv")); MultiTexCoord4s = reinterpret_cast(context->getProcAddress("glMultiTexCoord4s")); MultiTexCoord4iv = reinterpret_cast(context->getProcAddress("glMultiTexCoord4iv")); MultiTexCoord4i = reinterpret_cast(context->getProcAddress("glMultiTexCoord4i")); MultiTexCoord4fv = reinterpret_cast(context->getProcAddress("glMultiTexCoord4fv")); MultiTexCoord4f = reinterpret_cast(context->getProcAddress("glMultiTexCoord4f")); MultiTexCoord4dv = reinterpret_cast(context->getProcAddress("glMultiTexCoord4dv")); MultiTexCoord4d = reinterpret_cast(context->getProcAddress("glMultiTexCoord4d")); MultiTexCoord3sv = reinterpret_cast(context->getProcAddress("glMultiTexCoord3sv")); MultiTexCoord3s = reinterpret_cast(context->getProcAddress("glMultiTexCoord3s")); MultiTexCoord3iv = reinterpret_cast(context->getProcAddress("glMultiTexCoord3iv")); MultiTexCoord3i = reinterpret_cast(context->getProcAddress("glMultiTexCoord3i")); MultiTexCoord3fv = reinterpret_cast(context->getProcAddress("glMultiTexCoord3fv")); MultiTexCoord3f = reinterpret_cast(context->getProcAddress("glMultiTexCoord3f")); MultiTexCoord3dv = reinterpret_cast(context->getProcAddress("glMultiTexCoord3dv")); MultiTexCoord3d = reinterpret_cast(context->getProcAddress("glMultiTexCoord3d")); MultiTexCoord2sv = reinterpret_cast(context->getProcAddress("glMultiTexCoord2sv")); MultiTexCoord2s = reinterpret_cast(context->getProcAddress("glMultiTexCoord2s")); MultiTexCoord2iv = reinterpret_cast(context->getProcAddress("glMultiTexCoord2iv")); MultiTexCoord2i = reinterpret_cast(context->getProcAddress("glMultiTexCoord2i")); MultiTexCoord2fv = reinterpret_cast(context->getProcAddress("glMultiTexCoord2fv")); MultiTexCoord2f = reinterpret_cast(context->getProcAddress("glMultiTexCoord2f")); MultiTexCoord2dv = reinterpret_cast(context->getProcAddress("glMultiTexCoord2dv")); MultiTexCoord2d = reinterpret_cast(context->getProcAddress("glMultiTexCoord2d")); MultiTexCoord1sv = reinterpret_cast(context->getProcAddress("glMultiTexCoord1sv")); MultiTexCoord1s = reinterpret_cast(context->getProcAddress("glMultiTexCoord1s")); MultiTexCoord1iv = reinterpret_cast(context->getProcAddress("glMultiTexCoord1iv")); MultiTexCoord1i = reinterpret_cast(context->getProcAddress("glMultiTexCoord1i")); MultiTexCoord1fv = reinterpret_cast(context->getProcAddress("glMultiTexCoord1fv")); MultiTexCoord1f = reinterpret_cast(context->getProcAddress("glMultiTexCoord1f")); MultiTexCoord1dv = reinterpret_cast(context->getProcAddress("glMultiTexCoord1dv")); MultiTexCoord1d = reinterpret_cast(context->getProcAddress("glMultiTexCoord1d")); ClientActiveTexture = reinterpret_cast(context->getProcAddress("glClientActiveTexture")); } QOpenGLVersionStatus QOpenGLFunctions_1_3_DeprecatedBackend::versionStatus() { return QOpenGLVersionStatus(1, 3, QOpenGLVersionStatus::DeprecatedStatus); } QOpenGLFunctions_1_4_DeprecatedBackend::QOpenGLFunctions_1_4_DeprecatedBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 1.4 deprecated functions WindowPos3sv = reinterpret_cast(context->getProcAddress("glWindowPos3sv")); WindowPos3s = reinterpret_cast(context->getProcAddress("glWindowPos3s")); WindowPos3iv = reinterpret_cast(context->getProcAddress("glWindowPos3iv")); WindowPos3i = reinterpret_cast(context->getProcAddress("glWindowPos3i")); WindowPos3fv = reinterpret_cast(context->getProcAddress("glWindowPos3fv")); WindowPos3f = reinterpret_cast(context->getProcAddress("glWindowPos3f")); WindowPos3dv = reinterpret_cast(context->getProcAddress("glWindowPos3dv")); WindowPos3d = reinterpret_cast(context->getProcAddress("glWindowPos3d")); WindowPos2sv = reinterpret_cast(context->getProcAddress("glWindowPos2sv")); WindowPos2s = reinterpret_cast(context->getProcAddress("glWindowPos2s")); WindowPos2iv = reinterpret_cast(context->getProcAddress("glWindowPos2iv")); WindowPos2i = reinterpret_cast(context->getProcAddress("glWindowPos2i")); WindowPos2fv = reinterpret_cast(context->getProcAddress("glWindowPos2fv")); WindowPos2f = reinterpret_cast(context->getProcAddress("glWindowPos2f")); WindowPos2dv = reinterpret_cast(context->getProcAddress("glWindowPos2dv")); WindowPos2d = reinterpret_cast(context->getProcAddress("glWindowPos2d")); SecondaryColorPointer = reinterpret_cast(context->getProcAddress("glSecondaryColorPointer")); SecondaryColor3usv = reinterpret_cast(context->getProcAddress("glSecondaryColor3usv")); SecondaryColor3us = reinterpret_cast(context->getProcAddress("glSecondaryColor3us")); SecondaryColor3uiv = reinterpret_cast(context->getProcAddress("glSecondaryColor3uiv")); SecondaryColor3ui = reinterpret_cast(context->getProcAddress("glSecondaryColor3ui")); SecondaryColor3ubv = reinterpret_cast(context->getProcAddress("glSecondaryColor3ubv")); SecondaryColor3ub = reinterpret_cast(context->getProcAddress("glSecondaryColor3ub")); SecondaryColor3sv = reinterpret_cast(context->getProcAddress("glSecondaryColor3sv")); SecondaryColor3s = reinterpret_cast(context->getProcAddress("glSecondaryColor3s")); SecondaryColor3iv = reinterpret_cast(context->getProcAddress("glSecondaryColor3iv")); SecondaryColor3i = reinterpret_cast(context->getProcAddress("glSecondaryColor3i")); SecondaryColor3fv = reinterpret_cast(context->getProcAddress("glSecondaryColor3fv")); SecondaryColor3f = reinterpret_cast(context->getProcAddress("glSecondaryColor3f")); SecondaryColor3dv = reinterpret_cast(context->getProcAddress("glSecondaryColor3dv")); SecondaryColor3d = reinterpret_cast(context->getProcAddress("glSecondaryColor3d")); SecondaryColor3bv = reinterpret_cast(context->getProcAddress("glSecondaryColor3bv")); SecondaryColor3b = reinterpret_cast(context->getProcAddress("glSecondaryColor3b")); FogCoordPointer = reinterpret_cast(context->getProcAddress("glFogCoordPointer")); FogCoorddv = reinterpret_cast(context->getProcAddress("glFogCoorddv")); FogCoordd = reinterpret_cast(context->getProcAddress("glFogCoordd")); FogCoordfv = reinterpret_cast(context->getProcAddress("glFogCoordfv")); FogCoordf = reinterpret_cast(context->getProcAddress("glFogCoordf")); } QOpenGLVersionStatus QOpenGLFunctions_1_4_DeprecatedBackend::versionStatus() { return QOpenGLVersionStatus(1, 4, QOpenGLVersionStatus::DeprecatedStatus); } QOpenGLFunctions_3_3_DeprecatedBackend::QOpenGLFunctions_3_3_DeprecatedBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 3.3 deprecated functions SecondaryColorP3uiv = reinterpret_cast(context->getProcAddress("glSecondaryColorP3uiv")); SecondaryColorP3ui = reinterpret_cast(context->getProcAddress("glSecondaryColorP3ui")); ColorP4uiv = reinterpret_cast(context->getProcAddress("glColorP4uiv")); ColorP4ui = reinterpret_cast(context->getProcAddress("glColorP4ui")); ColorP3uiv = reinterpret_cast(context->getProcAddress("glColorP3uiv")); ColorP3ui = reinterpret_cast(context->getProcAddress("glColorP3ui")); NormalP3uiv = reinterpret_cast(context->getProcAddress("glNormalP3uiv")); NormalP3ui = reinterpret_cast(context->getProcAddress("glNormalP3ui")); MultiTexCoordP4uiv = reinterpret_cast(context->getProcAddress("glMultiTexCoordP4uiv")); MultiTexCoordP4ui = reinterpret_cast(context->getProcAddress("glMultiTexCoordP4ui")); MultiTexCoordP3uiv = reinterpret_cast(context->getProcAddress("glMultiTexCoordP3uiv")); MultiTexCoordP3ui = reinterpret_cast(context->getProcAddress("glMultiTexCoordP3ui")); MultiTexCoordP2uiv = reinterpret_cast(context->getProcAddress("glMultiTexCoordP2uiv")); MultiTexCoordP2ui = reinterpret_cast(context->getProcAddress("glMultiTexCoordP2ui")); MultiTexCoordP1uiv = reinterpret_cast(context->getProcAddress("glMultiTexCoordP1uiv")); MultiTexCoordP1ui = reinterpret_cast(context->getProcAddress("glMultiTexCoordP1ui")); TexCoordP4uiv = reinterpret_cast(context->getProcAddress("glTexCoordP4uiv")); TexCoordP4ui = reinterpret_cast(context->getProcAddress("glTexCoordP4ui")); TexCoordP3uiv = reinterpret_cast(context->getProcAddress("glTexCoordP3uiv")); TexCoordP3ui = reinterpret_cast(context->getProcAddress("glTexCoordP3ui")); TexCoordP2uiv = reinterpret_cast(context->getProcAddress("glTexCoordP2uiv")); TexCoordP2ui = reinterpret_cast(context->getProcAddress("glTexCoordP2ui")); TexCoordP1uiv = reinterpret_cast(context->getProcAddress("glTexCoordP1uiv")); TexCoordP1ui = reinterpret_cast(context->getProcAddress("glTexCoordP1ui")); VertexP4uiv = reinterpret_cast(context->getProcAddress("glVertexP4uiv")); VertexP4ui = reinterpret_cast(context->getProcAddress("glVertexP4ui")); VertexP3uiv = reinterpret_cast(context->getProcAddress("glVertexP3uiv")); VertexP3ui = reinterpret_cast(context->getProcAddress("glVertexP3ui")); VertexP2uiv = reinterpret_cast(context->getProcAddress("glVertexP2uiv")); VertexP2ui = reinterpret_cast(context->getProcAddress("glVertexP2ui")); } QOpenGLVersionStatus QOpenGLFunctions_3_3_DeprecatedBackend::versionStatus() { return QOpenGLVersionStatus(3, 3, QOpenGLVersionStatus::DeprecatedStatus); } QOpenGLFunctions_4_5_DeprecatedBackend::QOpenGLFunctions_4_5_DeprecatedBackend(QOpenGLContext *context) : QOpenGLVersionFunctionsBackend(context) { // OpenGL 4.5 deprecated functions GetnMinmax = reinterpret_cast(context->getProcAddress("glGetnMinmax")); GetnHistogram = reinterpret_cast(context->getProcAddress("glGetnHistogram")); GetnSeparableFilter = reinterpret_cast(context->getProcAddress("glGetnSeparableFilter")); GetnConvolutionFilter = reinterpret_cast(context->getProcAddress("glGetnConvolutionFilter")); GetnColorTable = reinterpret_cast(context->getProcAddress("glGetnColorTable")); GetnPolygonStipple = reinterpret_cast(context->getProcAddress("glGetnPolygonStipple")); GetnPixelMapusv = reinterpret_cast(context->getProcAddress("glGetnPixelMapusv")); GetnPixelMapuiv = reinterpret_cast(context->getProcAddress("glGetnPixelMapuiv")); GetnPixelMapfv = reinterpret_cast(context->getProcAddress("glGetnPixelMapfv")); GetnMapiv = reinterpret_cast(context->getProcAddress("glGetnMapiv")); GetnMapfv = reinterpret_cast(context->getProcAddress("glGetnMapfv")); GetnMapdv = reinterpret_cast(context->getProcAddress("glGetnMapdv")); } QOpenGLVersionStatus QOpenGLFunctions_4_5_DeprecatedBackend::versionStatus() { return QOpenGLVersionStatus(4, 5, QOpenGLVersionStatus::DeprecatedStatus); } #else // No backends for OpenGL ES 2 #endif // !QT_OPENGL_ES_2 QT_END_NAMESPACE