| 1 | /**************************************************************************** |
| 2 | ** |
| 3 | ** Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB) |
| 4 | ** Copyright (C) 2016 The Qt Company Ltd. |
| 5 | ** Contact: https://www.qt.io/licensing/ |
| 6 | ** |
| 7 | ** This file is part of the QtGui module of the Qt Toolkit. |
| 8 | ** |
| 9 | ** $QT_BEGIN_LICENSE:LGPL$ |
| 10 | ** Commercial License Usage |
| 11 | ** Licensees holding valid commercial Qt licenses may use this file in |
| 12 | ** accordance with the commercial license agreement provided with the |
| 13 | ** Software or, alternatively, in accordance with the terms contained in |
| 14 | ** a written agreement between you and The Qt Company. For licensing terms |
| 15 | ** and conditions see https://www.qt.io/terms-conditions. For further |
| 16 | ** information use the contact form at https://www.qt.io/contact-us. |
| 17 | ** |
| 18 | ** GNU Lesser General Public License Usage |
| 19 | ** Alternatively, this file may be used under the terms of the GNU Lesser |
| 20 | ** General Public License version 3 as published by the Free Software |
| 21 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the |
| 22 | ** packaging of this file. Please review the following information to |
| 23 | ** ensure the GNU Lesser General Public License version 3 requirements |
| 24 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. |
| 25 | ** |
| 26 | ** GNU General Public License Usage |
| 27 | ** Alternatively, this file may be used under the terms of the GNU |
| 28 | ** General Public License version 2.0 or (at your option) the GNU General |
| 29 | ** Public license version 3 or any later version approved by the KDE Free |
| 30 | ** Qt Foundation. The licenses are as published by the Free Software |
| 31 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 |
| 32 | ** included in the packaging of this file. Please review the following |
| 33 | ** information to ensure the GNU General Public License requirements will |
| 34 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and |
| 35 | ** https://www.gnu.org/licenses/gpl-3.0.html. |
| 36 | ** |
| 37 | ** $QT_END_LICENSE$ |
| 38 | ** |
| 39 | ** |
| 40 | ** This file was generated by glgen version 0.1 |
| 41 | ** Command line was: glgen |
| 42 | ** |
| 43 | ** glgen is Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB) |
| 44 | ** |
| 45 | ** This is an auto-generated file. |
| 46 | ** Do not edit! All changes made to it will be lost. |
| 47 | ** |
| 48 | ****************************************************************************/ |
| 49 | |
| 50 | #ifndef QOPENGLVERSIONFUNCTIONS_3_2_CORE_H |
| 51 | #define QOPENGLVERSIONFUNCTIONS_3_2_CORE_H |
| 52 | |
| 53 | #include <QtGui/qtguiglobal.h> |
| 54 | |
| 55 | #if !defined(QT_NO_OPENGL) && !defined(QT_OPENGL_ES_2) |
| 56 | |
| 57 | #include <QtGui/QOpenGLVersionFunctions> |
| 58 | #include <QtGui/qopenglcontext.h> |
| 59 | |
| 60 | QT_BEGIN_NAMESPACE |
| 61 | |
| 62 | class Q_GUI_EXPORT QOpenGLFunctions_3_2_Core : public QAbstractOpenGLFunctions |
| 63 | { |
| 64 | public: |
| 65 | QOpenGLFunctions_3_2_Core(); |
| 66 | ~QOpenGLFunctions_3_2_Core(); |
| 67 | |
| 68 | bool initializeOpenGLFunctions() override; |
| 69 | |
| 70 | // OpenGL 1.0 core functions |
| 71 | void glViewport(GLint x, GLint y, GLsizei width, GLsizei height); |
| 72 | void glDepthRange(GLdouble nearVal, GLdouble farVal); |
| 73 | GLboolean glIsEnabled(GLenum cap); |
| 74 | void glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params); |
| 75 | void glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params); |
| 76 | void glGetTexParameteriv(GLenum target, GLenum pname, GLint *params); |
| 77 | void glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params); |
| 78 | void glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); |
| 79 | const GLubyte * glGetString(GLenum name); |
| 80 | void glGetIntegerv(GLenum pname, GLint *params); |
| 81 | void glGetFloatv(GLenum pname, GLfloat *params); |
| 82 | GLenum glGetError(); |
| 83 | void glGetDoublev(GLenum pname, GLdouble *params); |
| 84 | void glGetBooleanv(GLenum pname, GLboolean *params); |
| 85 | void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); |
| 86 | void glReadBuffer(GLenum mode); |
| 87 | void glPixelStorei(GLenum pname, GLint param); |
| 88 | void glPixelStoref(GLenum pname, GLfloat param); |
| 89 | void glDepthFunc(GLenum func); |
| 90 | void glStencilOp(GLenum fail, GLenum zfail, GLenum zpass); |
| 91 | void glStencilFunc(GLenum func, GLint ref, GLuint mask); |
| 92 | void glLogicOp(GLenum opcode); |
| 93 | void glBlendFunc(GLenum sfactor, GLenum dfactor); |
| 94 | void glFlush(); |
| 95 | void glFinish(); |
| 96 | void glEnable(GLenum cap); |
| 97 | void glDisable(GLenum cap); |
| 98 | void glDepthMask(GLboolean flag); |
| 99 | void glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); |
| 100 | void glStencilMask(GLuint mask); |
| 101 | void glClearDepth(GLdouble depth); |
| 102 | void glClearStencil(GLint s); |
| 103 | void glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); |
| 104 | void glClear(GLbitfield mask); |
| 105 | void glDrawBuffer(GLenum mode); |
| 106 | void glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); |
| 107 | void glTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); |
| 108 | void glTexParameteriv(GLenum target, GLenum pname, const GLint *params); |
| 109 | void glTexParameteri(GLenum target, GLenum pname, GLint param); |
| 110 | void glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params); |
| 111 | void glTexParameterf(GLenum target, GLenum pname, GLfloat param); |
| 112 | void glScissor(GLint x, GLint y, GLsizei width, GLsizei height); |
| 113 | void glPolygonMode(GLenum face, GLenum mode); |
| 114 | void glPointSize(GLfloat size); |
| 115 | void glLineWidth(GLfloat width); |
| 116 | void glHint(GLenum target, GLenum mode); |
| 117 | void glFrontFace(GLenum mode); |
| 118 | void glCullFace(GLenum mode); |
| 119 | |
| 120 | // OpenGL 1.1 core functions |
| 121 | void glIndexubv(const GLubyte *c); |
| 122 | void glIndexub(GLubyte c); |
| 123 | GLboolean glIsTexture(GLuint texture); |
| 124 | void glGenTextures(GLsizei n, GLuint *textures); |
| 125 | void glDeleteTextures(GLsizei n, const GLuint *textures); |
| 126 | void glBindTexture(GLenum target, GLuint texture); |
| 127 | void glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); |
| 128 | void glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); |
| 129 | void glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); |
| 130 | void glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); |
| 131 | void glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); |
| 132 | void glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); |
| 133 | void glPolygonOffset(GLfloat factor, GLfloat units); |
| 134 | void glGetPointerv(GLenum pname, GLvoid* *params); |
| 135 | void glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); |
| 136 | void glDrawArrays(GLenum mode, GLint first, GLsizei count); |
| 137 | |
| 138 | // OpenGL 1.2 core functions |
| 139 | void glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); |
| 140 | void glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); |
| 141 | void glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); |
| 142 | void glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); |
| 143 | void glBlendEquation(GLenum mode); |
| 144 | void glBlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); |
| 145 | |
| 146 | // OpenGL 1.3 core functions |
| 147 | void glGetCompressedTexImage(GLenum target, GLint level, GLvoid *img); |
| 148 | void glCompressedTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data); |
| 149 | void glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); |
| 150 | void glCompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data); |
| 151 | void glCompressedTexImage1D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data); |
| 152 | void glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); |
| 153 | void glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data); |
| 154 | void glSampleCoverage(GLfloat value, GLboolean invert); |
| 155 | void glActiveTexture(GLenum texture); |
| 156 | |
| 157 | // OpenGL 1.4 core functions |
| 158 | void glPointParameteriv(GLenum pname, const GLint *params); |
| 159 | void glPointParameteri(GLenum pname, GLint param); |
| 160 | void glPointParameterfv(GLenum pname, const GLfloat *params); |
| 161 | void glPointParameterf(GLenum pname, GLfloat param); |
| 162 | void glMultiDrawElements(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount); |
| 163 | void glMultiDrawArrays(GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount); |
| 164 | void glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); |
| 165 | |
| 166 | // OpenGL 1.5 core functions |
| 167 | void glGetBufferPointerv(GLenum target, GLenum pname, GLvoid* *params); |
| 168 | void glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params); |
| 169 | GLboolean glUnmapBuffer(GLenum target); |
| 170 | GLvoid* glMapBuffer(GLenum target, GLenum access); |
| 171 | void glGetBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data); |
| 172 | void glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data); |
| 173 | void glBufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage); |
| 174 | GLboolean glIsBuffer(GLuint buffer); |
| 175 | void glGenBuffers(GLsizei n, GLuint *buffers); |
| 176 | void glDeleteBuffers(GLsizei n, const GLuint *buffers); |
| 177 | void glBindBuffer(GLenum target, GLuint buffer); |
| 178 | void glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params); |
| 179 | void glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params); |
| 180 | void glGetQueryiv(GLenum target, GLenum pname, GLint *params); |
| 181 | void glEndQuery(GLenum target); |
| 182 | void glBeginQuery(GLenum target, GLuint id); |
| 183 | GLboolean glIsQuery(GLuint id); |
| 184 | void glDeleteQueries(GLsizei n, const GLuint *ids); |
| 185 | void glGenQueries(GLsizei n, GLuint *ids); |
| 186 | |
| 187 | // OpenGL 2.0 core functions |
| 188 | void glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer); |
| 189 | void glValidateProgram(GLuint program); |
| 190 | void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| 191 | void glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| 192 | void glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| 193 | void glUniform4iv(GLint location, GLsizei count, const GLint *value); |
| 194 | void glUniform3iv(GLint location, GLsizei count, const GLint *value); |
| 195 | void glUniform2iv(GLint location, GLsizei count, const GLint *value); |
| 196 | void glUniform1iv(GLint location, GLsizei count, const GLint *value); |
| 197 | void glUniform4fv(GLint location, GLsizei count, const GLfloat *value); |
| 198 | void glUniform3fv(GLint location, GLsizei count, const GLfloat *value); |
| 199 | void glUniform2fv(GLint location, GLsizei count, const GLfloat *value); |
| 200 | void glUniform1fv(GLint location, GLsizei count, const GLfloat *value); |
| 201 | void glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3); |
| 202 | void glUniform3i(GLint location, GLint v0, GLint v1, GLint v2); |
| 203 | void glUniform2i(GLint location, GLint v0, GLint v1); |
| 204 | void glUniform1i(GLint location, GLint v0); |
| 205 | void glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); |
| 206 | void glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2); |
| 207 | void glUniform2f(GLint location, GLfloat v0, GLfloat v1); |
| 208 | void glUniform1f(GLint location, GLfloat v0); |
| 209 | void glUseProgram(GLuint program); |
| 210 | void glShaderSource(GLuint shader, GLsizei count, const GLchar* const *string, const GLint *length); |
| 211 | void glLinkProgram(GLuint program); |
| 212 | GLboolean glIsShader(GLuint shader); |
| 213 | GLboolean glIsProgram(GLuint program); |
| 214 | void glGetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid* *pointer); |
| 215 | void glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params); |
| 216 | void glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params); |
| 217 | void glGetVertexAttribdv(GLuint index, GLenum pname, GLdouble *params); |
| 218 | void glGetUniformiv(GLuint program, GLint location, GLint *params); |
| 219 | void glGetUniformfv(GLuint program, GLint location, GLfloat *params); |
| 220 | GLint glGetUniformLocation(GLuint program, const GLchar *name); |
| 221 | void glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source); |
| 222 | void glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); |
| 223 | void glGetShaderiv(GLuint shader, GLenum pname, GLint *params); |
| 224 | void glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); |
| 225 | void glGetProgramiv(GLuint program, GLenum pname, GLint *params); |
| 226 | GLint glGetAttribLocation(GLuint program, const GLchar *name); |
| 227 | void glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj); |
| 228 | void glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); |
| 229 | void glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); |
| 230 | void glEnableVertexAttribArray(GLuint index); |
| 231 | void glDisableVertexAttribArray(GLuint index); |
| 232 | void glDetachShader(GLuint program, GLuint shader); |
| 233 | void glDeleteShader(GLuint shader); |
| 234 | void glDeleteProgram(GLuint program); |
| 235 | GLuint glCreateShader(GLenum type); |
| 236 | GLuint glCreateProgram(); |
| 237 | void glCompileShader(GLuint shader); |
| 238 | void glBindAttribLocation(GLuint program, GLuint index, const GLchar *name); |
| 239 | void glAttachShader(GLuint program, GLuint shader); |
| 240 | void glStencilMaskSeparate(GLenum face, GLuint mask); |
| 241 | void glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask); |
| 242 | void glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); |
| 243 | void glDrawBuffers(GLsizei n, const GLenum *bufs); |
| 244 | void glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha); |
| 245 | |
| 246 | // OpenGL 2.1 core functions |
| 247 | void glUniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| 248 | void glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| 249 | void glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| 250 | void glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| 251 | void glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| 252 | void glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| 253 | |
| 254 | // OpenGL 3.0 core functions |
| 255 | GLboolean glIsVertexArray(GLuint array); |
| 256 | void glGenVertexArrays(GLsizei n, GLuint *arrays); |
| 257 | void glDeleteVertexArrays(GLsizei n, const GLuint *arrays); |
| 258 | void glBindVertexArray(GLuint array); |
| 259 | void glFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length); |
| 260 | GLvoid* glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); |
| 261 | void glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); |
| 262 | void glRenderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); |
| 263 | void glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); |
| 264 | void glGenerateMipmap(GLenum target); |
| 265 | void glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params); |
| 266 | void glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); |
| 267 | void glFramebufferTexture3D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); |
| 268 | void glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); |
| 269 | void glFramebufferTexture1D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); |
| 270 | GLenum glCheckFramebufferStatus(GLenum target); |
| 271 | void glGenFramebuffers(GLsizei n, GLuint *framebuffers); |
| 272 | void glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers); |
| 273 | void glBindFramebuffer(GLenum target, GLuint framebuffer); |
| 274 | GLboolean glIsFramebuffer(GLuint framebuffer); |
| 275 | void glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params); |
| 276 | void glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height); |
| 277 | void glGenRenderbuffers(GLsizei n, GLuint *renderbuffers); |
| 278 | void glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers); |
| 279 | void glBindRenderbuffer(GLenum target, GLuint renderbuffer); |
| 280 | GLboolean glIsRenderbuffer(GLuint renderbuffer); |
| 281 | const GLubyte * glGetStringi(GLenum name, GLuint index); |
| 282 | void glClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); |
| 283 | void glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value); |
| 284 | void glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value); |
| 285 | void glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value); |
| 286 | void glGetTexParameterIuiv(GLenum target, GLenum pname, GLuint *params); |
| 287 | void glGetTexParameterIiv(GLenum target, GLenum pname, GLint *params); |
| 288 | void glTexParameterIuiv(GLenum target, GLenum pname, const GLuint *params); |
| 289 | void glTexParameterIiv(GLenum target, GLenum pname, const GLint *params); |
| 290 | void glUniform4uiv(GLint location, GLsizei count, const GLuint *value); |
| 291 | void glUniform3uiv(GLint location, GLsizei count, const GLuint *value); |
| 292 | void glUniform2uiv(GLint location, GLsizei count, const GLuint *value); |
| 293 | void glUniform1uiv(GLint location, GLsizei count, const GLuint *value); |
| 294 | void glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); |
| 295 | void glUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2); |
| 296 | void glUniform2ui(GLint location, GLuint v0, GLuint v1); |
| 297 | void glUniform1ui(GLint location, GLuint v0); |
| 298 | GLint glGetFragDataLocation(GLuint program, const GLchar *name); |
| 299 | void glBindFragDataLocation(GLuint program, GLuint color, const GLchar *name); |
| 300 | void glGetUniformuiv(GLuint program, GLint location, GLuint *params); |
| 301 | void glGetVertexAttribIuiv(GLuint index, GLenum pname, GLuint *params); |
| 302 | void glGetVertexAttribIiv(GLuint index, GLenum pname, GLint *params); |
| 303 | void glVertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); |
| 304 | void glEndConditionalRender(); |
| 305 | void glBeginConditionalRender(GLuint id, GLenum mode); |
| 306 | void glClampColor(GLenum target, GLenum clamp); |
| 307 | void glGetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); |
| 308 | void glTransformFeedbackVaryings(GLuint program, GLsizei count, const GLchar* const *varyings, GLenum bufferMode); |
| 309 | void glBindBufferBase(GLenum target, GLuint index, GLuint buffer); |
| 310 | void glBindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); |
| 311 | void glEndTransformFeedback(); |
| 312 | void glBeginTransformFeedback(GLenum primitiveMode); |
| 313 | GLboolean glIsEnabledi(GLenum target, GLuint index); |
| 314 | void glDisablei(GLenum target, GLuint index); |
| 315 | void glEnablei(GLenum target, GLuint index); |
| 316 | void glGetIntegeri_v(GLenum target, GLuint index, GLint *data); |
| 317 | void glGetBooleani_v(GLenum target, GLuint index, GLboolean *data); |
| 318 | void glColorMaski(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); |
| 319 | |
| 320 | // OpenGL 3.1 core functions |
| 321 | void glCopyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); |
| 322 | void glUniformBlockBinding(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); |
| 323 | void glGetActiveUniformBlockName(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName); |
| 324 | void glGetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params); |
| 325 | GLuint glGetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName); |
| 326 | void glGetActiveUniformName(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName); |
| 327 | void glGetActiveUniformsiv(GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params); |
| 328 | void glGetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar* const *uniformNames, GLuint *uniformIndices); |
| 329 | void glPrimitiveRestartIndex(GLuint index); |
| 330 | void glTexBuffer(GLenum target, GLenum internalformat, GLuint buffer); |
| 331 | void glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount); |
| 332 | void glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instancecount); |
| 333 | |
| 334 | // OpenGL 3.2 core functions |
| 335 | void glSampleMaski(GLuint index, GLbitfield mask); |
| 336 | void glGetMultisamplefv(GLenum pname, GLuint index, GLfloat *val); |
| 337 | void glTexImage3DMultisample(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); |
| 338 | void glTexImage2DMultisample(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); |
| 339 | void glGetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values); |
| 340 | void glGetInteger64v(GLenum pname, GLint64 *params); |
| 341 | void glWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout); |
| 342 | GLenum glClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout); |
| 343 | void glDeleteSync(GLsync sync); |
| 344 | GLboolean glIsSync(GLsync sync); |
| 345 | GLsync glFenceSync(GLenum condition, GLbitfield flags); |
| 346 | void glProvokingVertex(GLenum mode); |
| 347 | void glMultiDrawElementsBaseVertex(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount, const GLint *basevertex); |
| 348 | void glDrawElementsInstancedBaseVertex(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount, GLint basevertex); |
| 349 | void glDrawRangeElementsBaseVertex(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex); |
| 350 | void glDrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex); |
| 351 | void glFramebufferTexture(GLenum target, GLenum attachment, GLuint texture, GLint level); |
| 352 | void glGetBufferParameteri64v(GLenum target, GLenum pname, GLint64 *params); |
| 353 | void glGetInteger64i_v(GLenum target, GLuint index, GLint64 *data); |
| 354 | |
| 355 | private: |
| 356 | friend class QOpenGLContext; |
| 357 | |
| 358 | static bool isContextCompatible(QOpenGLContext *context); |
| 359 | static QOpenGLVersionProfile versionProfile(); |
| 360 | |
| 361 | QOpenGLFunctions_1_0_CoreBackend* d_1_0_Core; |
| 362 | QOpenGLFunctions_1_1_CoreBackend* d_1_1_Core; |
| 363 | QOpenGLFunctions_1_2_CoreBackend* d_1_2_Core; |
| 364 | QOpenGLFunctions_1_3_CoreBackend* d_1_3_Core; |
| 365 | QOpenGLFunctions_1_4_CoreBackend* d_1_4_Core; |
| 366 | QOpenGLFunctions_1_5_CoreBackend* d_1_5_Core; |
| 367 | QOpenGLFunctions_2_0_CoreBackend* d_2_0_Core; |
| 368 | QOpenGLFunctions_2_1_CoreBackend* d_2_1_Core; |
| 369 | QOpenGLFunctions_3_0_CoreBackend* d_3_0_Core; |
| 370 | QOpenGLFunctions_3_1_CoreBackend* d_3_1_Core; |
| 371 | QOpenGLFunctions_3_2_CoreBackend* d_3_2_Core; |
| 372 | }; |
| 373 | |
| 374 | // OpenGL 1.0 core functions |
| 375 | inline void QOpenGLFunctions_3_2_Core::glViewport(GLint x, GLint y, GLsizei width, GLsizei height) |
| 376 | { |
| 377 | d_1_0_Core->f.Viewport(x, y, width, height); |
| 378 | } |
| 379 | |
| 380 | inline void QOpenGLFunctions_3_2_Core::glDepthRange(GLdouble nearVal, GLdouble farVal) |
| 381 | { |
| 382 | d_1_0_Core->f.DepthRange(nearVal, farVal); |
| 383 | } |
| 384 | |
| 385 | inline GLboolean QOpenGLFunctions_3_2_Core::glIsEnabled(GLenum cap) |
| 386 | { |
| 387 | return d_1_0_Core->f.IsEnabled(cap); |
| 388 | } |
| 389 | |
| 390 | inline void QOpenGLFunctions_3_2_Core::glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params) |
| 391 | { |
| 392 | d_1_0_Core->f.GetTexLevelParameteriv(target, level, pname, params); |
| 393 | } |
| 394 | |
| 395 | inline void QOpenGLFunctions_3_2_Core::glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params) |
| 396 | { |
| 397 | d_1_0_Core->f.GetTexLevelParameterfv(target, level, pname, params); |
| 398 | } |
| 399 | |
| 400 | inline void QOpenGLFunctions_3_2_Core::glGetTexParameteriv(GLenum target, GLenum pname, GLint *params) |
| 401 | { |
| 402 | d_1_0_Core->f.GetTexParameteriv(target, pname, params); |
| 403 | } |
| 404 | |
| 405 | inline void QOpenGLFunctions_3_2_Core::glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params) |
| 406 | { |
| 407 | d_1_0_Core->f.GetTexParameterfv(target, pname, params); |
| 408 | } |
| 409 | |
| 410 | inline void QOpenGLFunctions_3_2_Core::glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels) |
| 411 | { |
| 412 | d_1_0_Core->f.GetTexImage(target, level, format, type, pixels); |
| 413 | } |
| 414 | |
| 415 | inline const GLubyte * QOpenGLFunctions_3_2_Core::glGetString(GLenum name) |
| 416 | { |
| 417 | return d_1_0_Core->f.GetString(name); |
| 418 | } |
| 419 | |
| 420 | inline void QOpenGLFunctions_3_2_Core::glGetIntegerv(GLenum pname, GLint *params) |
| 421 | { |
| 422 | d_1_0_Core->f.GetIntegerv(pname, params); |
| 423 | } |
| 424 | |
| 425 | inline void QOpenGLFunctions_3_2_Core::glGetFloatv(GLenum pname, GLfloat *params) |
| 426 | { |
| 427 | d_1_0_Core->f.GetFloatv(pname, params); |
| 428 | } |
| 429 | |
| 430 | inline GLenum QOpenGLFunctions_3_2_Core::glGetError() |
| 431 | { |
| 432 | return d_1_0_Core->f.GetError(); |
| 433 | } |
| 434 | |
| 435 | inline void QOpenGLFunctions_3_2_Core::glGetDoublev(GLenum pname, GLdouble *params) |
| 436 | { |
| 437 | d_1_0_Core->f.GetDoublev(pname, params); |
| 438 | } |
| 439 | |
| 440 | inline void QOpenGLFunctions_3_2_Core::glGetBooleanv(GLenum pname, GLboolean *params) |
| 441 | { |
| 442 | d_1_0_Core->f.GetBooleanv(pname, params); |
| 443 | } |
| 444 | |
| 445 | inline void QOpenGLFunctions_3_2_Core::glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels) |
| 446 | { |
| 447 | d_1_0_Core->f.ReadPixels(x, y, width, height, format, type, pixels); |
| 448 | } |
| 449 | |
| 450 | inline void QOpenGLFunctions_3_2_Core::glReadBuffer(GLenum mode) |
| 451 | { |
| 452 | d_1_0_Core->f.ReadBuffer(mode); |
| 453 | } |
| 454 | |
| 455 | inline void QOpenGLFunctions_3_2_Core::glPixelStorei(GLenum pname, GLint param) |
| 456 | { |
| 457 | d_1_0_Core->f.PixelStorei(pname, param); |
| 458 | } |
| 459 | |
| 460 | inline void QOpenGLFunctions_3_2_Core::glPixelStoref(GLenum pname, GLfloat param) |
| 461 | { |
| 462 | d_1_0_Core->f.PixelStoref(pname, param); |
| 463 | } |
| 464 | |
| 465 | inline void QOpenGLFunctions_3_2_Core::glDepthFunc(GLenum func) |
| 466 | { |
| 467 | d_1_0_Core->f.DepthFunc(func); |
| 468 | } |
| 469 | |
| 470 | inline void QOpenGLFunctions_3_2_Core::glStencilOp(GLenum fail, GLenum zfail, GLenum zpass) |
| 471 | { |
| 472 | d_1_0_Core->f.StencilOp(fail, zfail, zpass); |
| 473 | } |
| 474 | |
| 475 | inline void QOpenGLFunctions_3_2_Core::glStencilFunc(GLenum func, GLint ref, GLuint mask) |
| 476 | { |
| 477 | d_1_0_Core->f.StencilFunc(func, ref, mask); |
| 478 | } |
| 479 | |
| 480 | inline void QOpenGLFunctions_3_2_Core::glLogicOp(GLenum opcode) |
| 481 | { |
| 482 | d_1_0_Core->f.LogicOp(opcode); |
| 483 | } |
| 484 | |
| 485 | inline void QOpenGLFunctions_3_2_Core::glBlendFunc(GLenum sfactor, GLenum dfactor) |
| 486 | { |
| 487 | d_1_0_Core->f.BlendFunc(sfactor, dfactor); |
| 488 | } |
| 489 | |
| 490 | inline void QOpenGLFunctions_3_2_Core::glFlush() |
| 491 | { |
| 492 | d_1_0_Core->f.Flush(); |
| 493 | } |
| 494 | |
| 495 | inline void QOpenGLFunctions_3_2_Core::glFinish() |
| 496 | { |
| 497 | d_1_0_Core->f.Finish(); |
| 498 | } |
| 499 | |
| 500 | inline void QOpenGLFunctions_3_2_Core::glEnable(GLenum cap) |
| 501 | { |
| 502 | d_1_0_Core->f.Enable(cap); |
| 503 | } |
| 504 | |
| 505 | inline void QOpenGLFunctions_3_2_Core::glDisable(GLenum cap) |
| 506 | { |
| 507 | d_1_0_Core->f.Disable(cap); |
| 508 | } |
| 509 | |
| 510 | inline void QOpenGLFunctions_3_2_Core::glDepthMask(GLboolean flag) |
| 511 | { |
| 512 | d_1_0_Core->f.DepthMask(flag); |
| 513 | } |
| 514 | |
| 515 | inline void QOpenGLFunctions_3_2_Core::glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) |
| 516 | { |
| 517 | d_1_0_Core->f.ColorMask(red, green, blue, alpha); |
| 518 | } |
| 519 | |
| 520 | inline void QOpenGLFunctions_3_2_Core::glStencilMask(GLuint mask) |
| 521 | { |
| 522 | d_1_0_Core->f.StencilMask(mask); |
| 523 | } |
| 524 | |
| 525 | inline void QOpenGLFunctions_3_2_Core::glClearDepth(GLdouble depth) |
| 526 | { |
| 527 | d_1_0_Core->f.ClearDepth(depth); |
| 528 | } |
| 529 | |
| 530 | inline void QOpenGLFunctions_3_2_Core::glClearStencil(GLint s) |
| 531 | { |
| 532 | d_1_0_Core->f.ClearStencil(s); |
| 533 | } |
| 534 | |
| 535 | inline void QOpenGLFunctions_3_2_Core::glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) |
| 536 | { |
| 537 | d_1_0_Core->f.ClearColor(red, green, blue, alpha); |
| 538 | } |
| 539 | |
| 540 | inline void QOpenGLFunctions_3_2_Core::glClear(GLbitfield mask) |
| 541 | { |
| 542 | d_1_0_Core->f.Clear(mask); |
| 543 | } |
| 544 | |
| 545 | inline void QOpenGLFunctions_3_2_Core::glDrawBuffer(GLenum mode) |
| 546 | { |
| 547 | d_1_0_Core->f.DrawBuffer(mode); |
| 548 | } |
| 549 | |
| 550 | inline void QOpenGLFunctions_3_2_Core::glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels) |
| 551 | { |
| 552 | d_1_0_Core->f.TexImage2D(target, level, internalformat, width, height, border, format, type, pixels); |
| 553 | } |
| 554 | |
| 555 | inline void QOpenGLFunctions_3_2_Core::glTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels) |
| 556 | { |
| 557 | d_1_0_Core->f.TexImage1D(target, level, internalformat, width, border, format, type, pixels); |
| 558 | } |
| 559 | |
| 560 | inline void QOpenGLFunctions_3_2_Core::glTexParameteriv(GLenum target, GLenum pname, const GLint *params) |
| 561 | { |
| 562 | d_1_0_Core->f.TexParameteriv(target, pname, params); |
| 563 | } |
| 564 | |
| 565 | inline void QOpenGLFunctions_3_2_Core::glTexParameteri(GLenum target, GLenum pname, GLint param) |
| 566 | { |
| 567 | d_1_0_Core->f.TexParameteri(target, pname, param); |
| 568 | } |
| 569 | |
| 570 | inline void QOpenGLFunctions_3_2_Core::glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params) |
| 571 | { |
| 572 | d_1_0_Core->f.TexParameterfv(target, pname, params); |
| 573 | } |
| 574 | |
| 575 | inline void QOpenGLFunctions_3_2_Core::glTexParameterf(GLenum target, GLenum pname, GLfloat param) |
| 576 | { |
| 577 | d_1_0_Core->f.TexParameterf(target, pname, param); |
| 578 | } |
| 579 | |
| 580 | inline void QOpenGLFunctions_3_2_Core::glScissor(GLint x, GLint y, GLsizei width, GLsizei height) |
| 581 | { |
| 582 | d_1_0_Core->f.Scissor(x, y, width, height); |
| 583 | } |
| 584 | |
| 585 | inline void QOpenGLFunctions_3_2_Core::glPolygonMode(GLenum face, GLenum mode) |
| 586 | { |
| 587 | d_1_0_Core->f.PolygonMode(face, mode); |
| 588 | } |
| 589 | |
| 590 | inline void QOpenGLFunctions_3_2_Core::glPointSize(GLfloat size) |
| 591 | { |
| 592 | d_1_0_Core->f.PointSize(size); |
| 593 | } |
| 594 | |
| 595 | inline void QOpenGLFunctions_3_2_Core::glLineWidth(GLfloat width) |
| 596 | { |
| 597 | d_1_0_Core->f.LineWidth(width); |
| 598 | } |
| 599 | |
| 600 | inline void QOpenGLFunctions_3_2_Core::glHint(GLenum target, GLenum mode) |
| 601 | { |
| 602 | d_1_0_Core->f.Hint(target, mode); |
| 603 | } |
| 604 | |
| 605 | inline void QOpenGLFunctions_3_2_Core::glFrontFace(GLenum mode) |
| 606 | { |
| 607 | d_1_0_Core->f.FrontFace(mode); |
| 608 | } |
| 609 | |
| 610 | inline void QOpenGLFunctions_3_2_Core::glCullFace(GLenum mode) |
| 611 | { |
| 612 | d_1_0_Core->f.CullFace(mode); |
| 613 | } |
| 614 | |
| 615 | |
| 616 | // OpenGL 1.1 core functions |
| 617 | inline void QOpenGLFunctions_3_2_Core::glIndexubv(const GLubyte *c) |
| 618 | { |
| 619 | Q_UNUSED(c); |
| 620 | QOPENGL_DEPRECATEDFUNCTION; |
| 621 | } |
| 622 | |
| 623 | inline void QOpenGLFunctions_3_2_Core::glIndexub(GLubyte c) |
| 624 | { |
| 625 | Q_UNUSED(c); |
| 626 | QOPENGL_DEPRECATEDFUNCTION; |
| 627 | } |
| 628 | |
| 629 | inline GLboolean QOpenGLFunctions_3_2_Core::glIsTexture(GLuint texture) |
| 630 | { |
| 631 | return d_1_1_Core->f.IsTexture(texture); |
| 632 | } |
| 633 | |
| 634 | inline void QOpenGLFunctions_3_2_Core::glGenTextures(GLsizei n, GLuint *textures) |
| 635 | { |
| 636 | d_1_1_Core->f.GenTextures(n, textures); |
| 637 | } |
| 638 | |
| 639 | inline void QOpenGLFunctions_3_2_Core::glDeleteTextures(GLsizei n, const GLuint *textures) |
| 640 | { |
| 641 | d_1_1_Core->f.DeleteTextures(n, textures); |
| 642 | } |
| 643 | |
| 644 | inline void QOpenGLFunctions_3_2_Core::glBindTexture(GLenum target, GLuint texture) |
| 645 | { |
| 646 | d_1_1_Core->f.BindTexture(target, texture); |
| 647 | } |
| 648 | |
| 649 | inline void QOpenGLFunctions_3_2_Core::glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels) |
| 650 | { |
| 651 | d_1_1_Core->f.TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels); |
| 652 | } |
| 653 | |
| 654 | inline void QOpenGLFunctions_3_2_Core::glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels) |
| 655 | { |
| 656 | d_1_1_Core->f.TexSubImage1D(target, level, xoffset, width, format, type, pixels); |
| 657 | } |
| 658 | |
| 659 | inline void QOpenGLFunctions_3_2_Core::glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) |
| 660 | { |
| 661 | d_1_1_Core->f.CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height); |
| 662 | } |
| 663 | |
| 664 | inline void QOpenGLFunctions_3_2_Core::glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width) |
| 665 | { |
| 666 | d_1_1_Core->f.CopyTexSubImage1D(target, level, xoffset, x, y, width); |
| 667 | } |
| 668 | |
| 669 | inline void QOpenGLFunctions_3_2_Core::glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) |
| 670 | { |
| 671 | d_1_1_Core->f.CopyTexImage2D(target, level, internalformat, x, y, width, height, border); |
| 672 | } |
| 673 | |
| 674 | inline void QOpenGLFunctions_3_2_Core::glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border) |
| 675 | { |
| 676 | d_1_1_Core->f.CopyTexImage1D(target, level, internalformat, x, y, width, border); |
| 677 | } |
| 678 | |
| 679 | inline void QOpenGLFunctions_3_2_Core::glPolygonOffset(GLfloat factor, GLfloat units) |
| 680 | { |
| 681 | d_1_1_Core->f.PolygonOffset(factor, units); |
| 682 | } |
| 683 | |
| 684 | inline void QOpenGLFunctions_3_2_Core::glGetPointerv(GLenum pname, GLvoid* *params) |
| 685 | { |
| 686 | Q_UNUSED(pname); |
| 687 | Q_UNUSED(params); |
| 688 | QOPENGL_DEPRECATEDFUNCTION; |
| 689 | } |
| 690 | |
| 691 | inline void QOpenGLFunctions_3_2_Core::glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) |
| 692 | { |
| 693 | d_1_1_Core->f.DrawElements(mode, count, type, indices); |
| 694 | } |
| 695 | |
| 696 | inline void QOpenGLFunctions_3_2_Core::glDrawArrays(GLenum mode, GLint first, GLsizei count) |
| 697 | { |
| 698 | d_1_1_Core->f.DrawArrays(mode, first, count); |
| 699 | } |
| 700 | |
| 701 | |
| 702 | // OpenGL 1.2 core functions |
| 703 | inline void QOpenGLFunctions_3_2_Core::glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height) |
| 704 | { |
| 705 | d_1_2_Core->f.CopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height); |
| 706 | } |
| 707 | |
| 708 | inline void QOpenGLFunctions_3_2_Core::glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels) |
| 709 | { |
| 710 | d_1_2_Core->f.TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); |
| 711 | } |
| 712 | |
| 713 | inline void QOpenGLFunctions_3_2_Core::glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels) |
| 714 | { |
| 715 | d_1_2_Core->f.TexImage3D(target, level, internalformat, width, height, depth, border, format, type, pixels); |
| 716 | } |
| 717 | |
| 718 | inline void QOpenGLFunctions_3_2_Core::glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices) |
| 719 | { |
| 720 | d_1_2_Core->f.DrawRangeElements(mode, start, end, count, type, indices); |
| 721 | } |
| 722 | |
| 723 | inline void QOpenGLFunctions_3_2_Core::glBlendEquation(GLenum mode) |
| 724 | { |
| 725 | d_1_2_Core->f.BlendEquation(mode); |
| 726 | } |
| 727 | |
| 728 | inline void QOpenGLFunctions_3_2_Core::glBlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) |
| 729 | { |
| 730 | d_1_2_Core->f.BlendColor(red, green, blue, alpha); |
| 731 | } |
| 732 | |
| 733 | |
| 734 | // OpenGL 1.3 core functions |
| 735 | inline void QOpenGLFunctions_3_2_Core::glGetCompressedTexImage(GLenum target, GLint level, GLvoid *img) |
| 736 | { |
| 737 | d_1_3_Core->f.GetCompressedTexImage(target, level, img); |
| 738 | } |
| 739 | |
| 740 | inline void QOpenGLFunctions_3_2_Core::glCompressedTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data) |
| 741 | { |
| 742 | d_1_3_Core->f.CompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data); |
| 743 | } |
| 744 | |
| 745 | inline void QOpenGLFunctions_3_2_Core::glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data) |
| 746 | { |
| 747 | d_1_3_Core->f.CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data); |
| 748 | } |
| 749 | |
| 750 | inline void QOpenGLFunctions_3_2_Core::glCompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data) |
| 751 | { |
| 752 | d_1_3_Core->f.CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); |
| 753 | } |
| 754 | |
| 755 | inline void QOpenGLFunctions_3_2_Core::glCompressedTexImage1D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data) |
| 756 | { |
| 757 | d_1_3_Core->f.CompressedTexImage1D(target, level, internalformat, width, border, imageSize, data); |
| 758 | } |
| 759 | |
| 760 | inline void QOpenGLFunctions_3_2_Core::glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data) |
| 761 | { |
| 762 | d_1_3_Core->f.CompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data); |
| 763 | } |
| 764 | |
| 765 | inline void QOpenGLFunctions_3_2_Core::glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data) |
| 766 | { |
| 767 | d_1_3_Core->f.CompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data); |
| 768 | } |
| 769 | |
| 770 | inline void QOpenGLFunctions_3_2_Core::glSampleCoverage(GLfloat value, GLboolean invert) |
| 771 | { |
| 772 | d_1_3_Core->f.SampleCoverage(value, invert); |
| 773 | } |
| 774 | |
| 775 | inline void QOpenGLFunctions_3_2_Core::glActiveTexture(GLenum texture) |
| 776 | { |
| 777 | d_1_3_Core->f.ActiveTexture(texture); |
| 778 | } |
| 779 | |
| 780 | |
| 781 | // OpenGL 1.4 core functions |
| 782 | inline void QOpenGLFunctions_3_2_Core::glPointParameteriv(GLenum pname, const GLint *params) |
| 783 | { |
| 784 | d_1_4_Core->f.PointParameteriv(pname, params); |
| 785 | } |
| 786 | |
| 787 | inline void QOpenGLFunctions_3_2_Core::glPointParameteri(GLenum pname, GLint param) |
| 788 | { |
| 789 | d_1_4_Core->f.PointParameteri(pname, param); |
| 790 | } |
| 791 | |
| 792 | inline void QOpenGLFunctions_3_2_Core::glPointParameterfv(GLenum pname, const GLfloat *params) |
| 793 | { |
| 794 | d_1_4_Core->f.PointParameterfv(pname, params); |
| 795 | } |
| 796 | |
| 797 | inline void QOpenGLFunctions_3_2_Core::glPointParameterf(GLenum pname, GLfloat param) |
| 798 | { |
| 799 | d_1_4_Core->f.PointParameterf(pname, param); |
| 800 | } |
| 801 | |
| 802 | inline void QOpenGLFunctions_3_2_Core::glMultiDrawElements(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount) |
| 803 | { |
| 804 | d_1_4_Core->f.MultiDrawElements(mode, count, type, indices, drawcount); |
| 805 | } |
| 806 | |
| 807 | inline void QOpenGLFunctions_3_2_Core::glMultiDrawArrays(GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount) |
| 808 | { |
| 809 | d_1_4_Core->f.MultiDrawArrays(mode, first, count, drawcount); |
| 810 | } |
| 811 | |
| 812 | inline void QOpenGLFunctions_3_2_Core::glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha) |
| 813 | { |
| 814 | d_1_4_Core->f.BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); |
| 815 | } |
| 816 | |
| 817 | |
| 818 | // OpenGL 1.5 core functions |
| 819 | inline void QOpenGLFunctions_3_2_Core::glGetBufferPointerv(GLenum target, GLenum pname, GLvoid* *params) |
| 820 | { |
| 821 | d_1_5_Core->f.GetBufferPointerv(target, pname, params); |
| 822 | } |
| 823 | |
| 824 | inline void QOpenGLFunctions_3_2_Core::glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params) |
| 825 | { |
| 826 | d_1_5_Core->f.GetBufferParameteriv(target, pname, params); |
| 827 | } |
| 828 | |
| 829 | inline GLboolean QOpenGLFunctions_3_2_Core::glUnmapBuffer(GLenum target) |
| 830 | { |
| 831 | return d_1_5_Core->f.UnmapBuffer(target); |
| 832 | } |
| 833 | |
| 834 | inline GLvoid* QOpenGLFunctions_3_2_Core::glMapBuffer(GLenum target, GLenum access) |
| 835 | { |
| 836 | return d_1_5_Core->f.MapBuffer(target, access); |
| 837 | } |
| 838 | |
| 839 | inline void QOpenGLFunctions_3_2_Core::glGetBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data) |
| 840 | { |
| 841 | d_1_5_Core->f.GetBufferSubData(target, offset, size, data); |
| 842 | } |
| 843 | |
| 844 | inline void QOpenGLFunctions_3_2_Core::glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data) |
| 845 | { |
| 846 | d_1_5_Core->f.BufferSubData(target, offset, size, data); |
| 847 | } |
| 848 | |
| 849 | inline void QOpenGLFunctions_3_2_Core::glBufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage) |
| 850 | { |
| 851 | d_1_5_Core->f.BufferData(target, size, data, usage); |
| 852 | } |
| 853 | |
| 854 | inline GLboolean QOpenGLFunctions_3_2_Core::glIsBuffer(GLuint buffer) |
| 855 | { |
| 856 | return d_1_5_Core->f.IsBuffer(buffer); |
| 857 | } |
| 858 | |
| 859 | inline void QOpenGLFunctions_3_2_Core::glGenBuffers(GLsizei n, GLuint *buffers) |
| 860 | { |
| 861 | d_1_5_Core->f.GenBuffers(n, buffers); |
| 862 | } |
| 863 | |
| 864 | inline void QOpenGLFunctions_3_2_Core::glDeleteBuffers(GLsizei n, const GLuint *buffers) |
| 865 | { |
| 866 | d_1_5_Core->f.DeleteBuffers(n, buffers); |
| 867 | } |
| 868 | |
| 869 | inline void QOpenGLFunctions_3_2_Core::glBindBuffer(GLenum target, GLuint buffer) |
| 870 | { |
| 871 | d_1_5_Core->f.BindBuffer(target, buffer); |
| 872 | } |
| 873 | |
| 874 | inline void QOpenGLFunctions_3_2_Core::glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params) |
| 875 | { |
| 876 | d_1_5_Core->f.GetQueryObjectuiv(id, pname, params); |
| 877 | } |
| 878 | |
| 879 | inline void QOpenGLFunctions_3_2_Core::glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params) |
| 880 | { |
| 881 | d_1_5_Core->f.GetQueryObjectiv(id, pname, params); |
| 882 | } |
| 883 | |
| 884 | inline void QOpenGLFunctions_3_2_Core::glGetQueryiv(GLenum target, GLenum pname, GLint *params) |
| 885 | { |
| 886 | d_1_5_Core->f.GetQueryiv(target, pname, params); |
| 887 | } |
| 888 | |
| 889 | inline void QOpenGLFunctions_3_2_Core::glEndQuery(GLenum target) |
| 890 | { |
| 891 | d_1_5_Core->f.EndQuery(target); |
| 892 | } |
| 893 | |
| 894 | inline void QOpenGLFunctions_3_2_Core::glBeginQuery(GLenum target, GLuint id) |
| 895 | { |
| 896 | d_1_5_Core->f.BeginQuery(target, id); |
| 897 | } |
| 898 | |
| 899 | inline GLboolean QOpenGLFunctions_3_2_Core::glIsQuery(GLuint id) |
| 900 | { |
| 901 | return d_1_5_Core->f.IsQuery(id); |
| 902 | } |
| 903 | |
| 904 | inline void QOpenGLFunctions_3_2_Core::glDeleteQueries(GLsizei n, const GLuint *ids) |
| 905 | { |
| 906 | d_1_5_Core->f.DeleteQueries(n, ids); |
| 907 | } |
| 908 | |
| 909 | inline void QOpenGLFunctions_3_2_Core::glGenQueries(GLsizei n, GLuint *ids) |
| 910 | { |
| 911 | d_1_5_Core->f.GenQueries(n, ids); |
| 912 | } |
| 913 | |
| 914 | |
| 915 | // OpenGL 2.0 core functions |
| 916 | inline void QOpenGLFunctions_3_2_Core::glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer) |
| 917 | { |
| 918 | d_2_0_Core->f.VertexAttribPointer(index, size, type, normalized, stride, pointer); |
| 919 | } |
| 920 | |
| 921 | inline void QOpenGLFunctions_3_2_Core::glValidateProgram(GLuint program) |
| 922 | { |
| 923 | d_2_0_Core->f.ValidateProgram(program); |
| 924 | } |
| 925 | |
| 926 | inline void QOpenGLFunctions_3_2_Core::glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 927 | { |
| 928 | d_2_0_Core->f.UniformMatrix4fv(location, count, transpose, value); |
| 929 | } |
| 930 | |
| 931 | inline void QOpenGLFunctions_3_2_Core::glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 932 | { |
| 933 | d_2_0_Core->f.UniformMatrix3fv(location, count, transpose, value); |
| 934 | } |
| 935 | |
| 936 | inline void QOpenGLFunctions_3_2_Core::glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 937 | { |
| 938 | d_2_0_Core->f.UniformMatrix2fv(location, count, transpose, value); |
| 939 | } |
| 940 | |
| 941 | inline void QOpenGLFunctions_3_2_Core::glUniform4iv(GLint location, GLsizei count, const GLint *value) |
| 942 | { |
| 943 | d_2_0_Core->f.Uniform4iv(location, count, value); |
| 944 | } |
| 945 | |
| 946 | inline void QOpenGLFunctions_3_2_Core::glUniform3iv(GLint location, GLsizei count, const GLint *value) |
| 947 | { |
| 948 | d_2_0_Core->f.Uniform3iv(location, count, value); |
| 949 | } |
| 950 | |
| 951 | inline void QOpenGLFunctions_3_2_Core::glUniform2iv(GLint location, GLsizei count, const GLint *value) |
| 952 | { |
| 953 | d_2_0_Core->f.Uniform2iv(location, count, value); |
| 954 | } |
| 955 | |
| 956 | inline void QOpenGLFunctions_3_2_Core::glUniform1iv(GLint location, GLsizei count, const GLint *value) |
| 957 | { |
| 958 | d_2_0_Core->f.Uniform1iv(location, count, value); |
| 959 | } |
| 960 | |
| 961 | inline void QOpenGLFunctions_3_2_Core::glUniform4fv(GLint location, GLsizei count, const GLfloat *value) |
| 962 | { |
| 963 | d_2_0_Core->f.Uniform4fv(location, count, value); |
| 964 | } |
| 965 | |
| 966 | inline void QOpenGLFunctions_3_2_Core::glUniform3fv(GLint location, GLsizei count, const GLfloat *value) |
| 967 | { |
| 968 | d_2_0_Core->f.Uniform3fv(location, count, value); |
| 969 | } |
| 970 | |
| 971 | inline void QOpenGLFunctions_3_2_Core::glUniform2fv(GLint location, GLsizei count, const GLfloat *value) |
| 972 | { |
| 973 | d_2_0_Core->f.Uniform2fv(location, count, value); |
| 974 | } |
| 975 | |
| 976 | inline void QOpenGLFunctions_3_2_Core::glUniform1fv(GLint location, GLsizei count, const GLfloat *value) |
| 977 | { |
| 978 | d_2_0_Core->f.Uniform1fv(location, count, value); |
| 979 | } |
| 980 | |
| 981 | inline void QOpenGLFunctions_3_2_Core::glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3) |
| 982 | { |
| 983 | d_2_0_Core->f.Uniform4i(location, v0, v1, v2, v3); |
| 984 | } |
| 985 | |
| 986 | inline void QOpenGLFunctions_3_2_Core::glUniform3i(GLint location, GLint v0, GLint v1, GLint v2) |
| 987 | { |
| 988 | d_2_0_Core->f.Uniform3i(location, v0, v1, v2); |
| 989 | } |
| 990 | |
| 991 | inline void QOpenGLFunctions_3_2_Core::glUniform2i(GLint location, GLint v0, GLint v1) |
| 992 | { |
| 993 | d_2_0_Core->f.Uniform2i(location, v0, v1); |
| 994 | } |
| 995 | |
| 996 | inline void QOpenGLFunctions_3_2_Core::glUniform1i(GLint location, GLint v0) |
| 997 | { |
| 998 | d_2_0_Core->f.Uniform1i(location, v0); |
| 999 | } |
| 1000 | |
| 1001 | inline void QOpenGLFunctions_3_2_Core::glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) |
| 1002 | { |
| 1003 | d_2_0_Core->f.Uniform4f(location, v0, v1, v2, v3); |
| 1004 | } |
| 1005 | |
| 1006 | inline void QOpenGLFunctions_3_2_Core::glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2) |
| 1007 | { |
| 1008 | d_2_0_Core->f.Uniform3f(location, v0, v1, v2); |
| 1009 | } |
| 1010 | |
| 1011 | inline void QOpenGLFunctions_3_2_Core::glUniform2f(GLint location, GLfloat v0, GLfloat v1) |
| 1012 | { |
| 1013 | d_2_0_Core->f.Uniform2f(location, v0, v1); |
| 1014 | } |
| 1015 | |
| 1016 | inline void QOpenGLFunctions_3_2_Core::glUniform1f(GLint location, GLfloat v0) |
| 1017 | { |
| 1018 | d_2_0_Core->f.Uniform1f(location, v0); |
| 1019 | } |
| 1020 | |
| 1021 | inline void QOpenGLFunctions_3_2_Core::glUseProgram(GLuint program) |
| 1022 | { |
| 1023 | d_2_0_Core->f.UseProgram(program); |
| 1024 | } |
| 1025 | |
| 1026 | inline void QOpenGLFunctions_3_2_Core::glShaderSource(GLuint shader, GLsizei count, const GLchar* const *string, const GLint *length) |
| 1027 | { |
| 1028 | d_2_0_Core->f.ShaderSource(shader, count, string, length); |
| 1029 | } |
| 1030 | |
| 1031 | inline void QOpenGLFunctions_3_2_Core::glLinkProgram(GLuint program) |
| 1032 | { |
| 1033 | d_2_0_Core->f.LinkProgram(program); |
| 1034 | } |
| 1035 | |
| 1036 | inline GLboolean QOpenGLFunctions_3_2_Core::glIsShader(GLuint shader) |
| 1037 | { |
| 1038 | return d_2_0_Core->f.IsShader(shader); |
| 1039 | } |
| 1040 | |
| 1041 | inline GLboolean QOpenGLFunctions_3_2_Core::glIsProgram(GLuint program) |
| 1042 | { |
| 1043 | return d_2_0_Core->f.IsProgram(program); |
| 1044 | } |
| 1045 | |
| 1046 | inline void QOpenGLFunctions_3_2_Core::glGetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid* *pointer) |
| 1047 | { |
| 1048 | d_2_0_Core->f.GetVertexAttribPointerv(index, pname, pointer); |
| 1049 | } |
| 1050 | |
| 1051 | inline void QOpenGLFunctions_3_2_Core::glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params) |
| 1052 | { |
| 1053 | d_2_0_Core->f.GetVertexAttribiv(index, pname, params); |
| 1054 | } |
| 1055 | |
| 1056 | inline void QOpenGLFunctions_3_2_Core::glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params) |
| 1057 | { |
| 1058 | d_2_0_Core->f.GetVertexAttribfv(index, pname, params); |
| 1059 | } |
| 1060 | |
| 1061 | inline void QOpenGLFunctions_3_2_Core::glGetVertexAttribdv(GLuint index, GLenum pname, GLdouble *params) |
| 1062 | { |
| 1063 | d_2_0_Core->f.GetVertexAttribdv(index, pname, params); |
| 1064 | } |
| 1065 | |
| 1066 | inline void QOpenGLFunctions_3_2_Core::glGetUniformiv(GLuint program, GLint location, GLint *params) |
| 1067 | { |
| 1068 | d_2_0_Core->f.GetUniformiv(program, location, params); |
| 1069 | } |
| 1070 | |
| 1071 | inline void QOpenGLFunctions_3_2_Core::glGetUniformfv(GLuint program, GLint location, GLfloat *params) |
| 1072 | { |
| 1073 | d_2_0_Core->f.GetUniformfv(program, location, params); |
| 1074 | } |
| 1075 | |
| 1076 | inline GLint QOpenGLFunctions_3_2_Core::glGetUniformLocation(GLuint program, const GLchar *name) |
| 1077 | { |
| 1078 | return d_2_0_Core->f.GetUniformLocation(program, name); |
| 1079 | } |
| 1080 | |
| 1081 | inline void QOpenGLFunctions_3_2_Core::glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source) |
| 1082 | { |
| 1083 | d_2_0_Core->f.GetShaderSource(shader, bufSize, length, source); |
| 1084 | } |
| 1085 | |
| 1086 | inline void QOpenGLFunctions_3_2_Core::glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog) |
| 1087 | { |
| 1088 | d_2_0_Core->f.GetShaderInfoLog(shader, bufSize, length, infoLog); |
| 1089 | } |
| 1090 | |
| 1091 | inline void QOpenGLFunctions_3_2_Core::glGetShaderiv(GLuint shader, GLenum pname, GLint *params) |
| 1092 | { |
| 1093 | d_2_0_Core->f.GetShaderiv(shader, pname, params); |
| 1094 | } |
| 1095 | |
| 1096 | inline void QOpenGLFunctions_3_2_Core::glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog) |
| 1097 | { |
| 1098 | d_2_0_Core->f.GetProgramInfoLog(program, bufSize, length, infoLog); |
| 1099 | } |
| 1100 | |
| 1101 | inline void QOpenGLFunctions_3_2_Core::glGetProgramiv(GLuint program, GLenum pname, GLint *params) |
| 1102 | { |
| 1103 | d_2_0_Core->f.GetProgramiv(program, pname, params); |
| 1104 | } |
| 1105 | |
| 1106 | inline GLint QOpenGLFunctions_3_2_Core::glGetAttribLocation(GLuint program, const GLchar *name) |
| 1107 | { |
| 1108 | return d_2_0_Core->f.GetAttribLocation(program, name); |
| 1109 | } |
| 1110 | |
| 1111 | inline void QOpenGLFunctions_3_2_Core::glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj) |
| 1112 | { |
| 1113 | d_2_0_Core->f.GetAttachedShaders(program, maxCount, count, obj); |
| 1114 | } |
| 1115 | |
| 1116 | inline void QOpenGLFunctions_3_2_Core::glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name) |
| 1117 | { |
| 1118 | d_2_0_Core->f.GetActiveUniform(program, index, bufSize, length, size, type, name); |
| 1119 | } |
| 1120 | |
| 1121 | inline void QOpenGLFunctions_3_2_Core::glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name) |
| 1122 | { |
| 1123 | d_2_0_Core->f.GetActiveAttrib(program, index, bufSize, length, size, type, name); |
| 1124 | } |
| 1125 | |
| 1126 | inline void QOpenGLFunctions_3_2_Core::glEnableVertexAttribArray(GLuint index) |
| 1127 | { |
| 1128 | d_2_0_Core->f.EnableVertexAttribArray(index); |
| 1129 | } |
| 1130 | |
| 1131 | inline void QOpenGLFunctions_3_2_Core::glDisableVertexAttribArray(GLuint index) |
| 1132 | { |
| 1133 | d_2_0_Core->f.DisableVertexAttribArray(index); |
| 1134 | } |
| 1135 | |
| 1136 | inline void QOpenGLFunctions_3_2_Core::glDetachShader(GLuint program, GLuint shader) |
| 1137 | { |
| 1138 | d_2_0_Core->f.DetachShader(program, shader); |
| 1139 | } |
| 1140 | |
| 1141 | inline void QOpenGLFunctions_3_2_Core::glDeleteShader(GLuint shader) |
| 1142 | { |
| 1143 | d_2_0_Core->f.DeleteShader(shader); |
| 1144 | } |
| 1145 | |
| 1146 | inline void QOpenGLFunctions_3_2_Core::glDeleteProgram(GLuint program) |
| 1147 | { |
| 1148 | d_2_0_Core->f.DeleteProgram(program); |
| 1149 | } |
| 1150 | |
| 1151 | inline GLuint QOpenGLFunctions_3_2_Core::glCreateShader(GLenum type) |
| 1152 | { |
| 1153 | return d_2_0_Core->f.CreateShader(type); |
| 1154 | } |
| 1155 | |
| 1156 | inline GLuint QOpenGLFunctions_3_2_Core::glCreateProgram() |
| 1157 | { |
| 1158 | return d_2_0_Core->f.CreateProgram(); |
| 1159 | } |
| 1160 | |
| 1161 | inline void QOpenGLFunctions_3_2_Core::glCompileShader(GLuint shader) |
| 1162 | { |
| 1163 | d_2_0_Core->f.CompileShader(shader); |
| 1164 | } |
| 1165 | |
| 1166 | inline void QOpenGLFunctions_3_2_Core::glBindAttribLocation(GLuint program, GLuint index, const GLchar *name) |
| 1167 | { |
| 1168 | d_2_0_Core->f.BindAttribLocation(program, index, name); |
| 1169 | } |
| 1170 | |
| 1171 | inline void QOpenGLFunctions_3_2_Core::glAttachShader(GLuint program, GLuint shader) |
| 1172 | { |
| 1173 | d_2_0_Core->f.AttachShader(program, shader); |
| 1174 | } |
| 1175 | |
| 1176 | inline void QOpenGLFunctions_3_2_Core::glStencilMaskSeparate(GLenum face, GLuint mask) |
| 1177 | { |
| 1178 | d_2_0_Core->f.StencilMaskSeparate(face, mask); |
| 1179 | } |
| 1180 | |
| 1181 | inline void QOpenGLFunctions_3_2_Core::glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) |
| 1182 | { |
| 1183 | d_2_0_Core->f.StencilFuncSeparate(face, func, ref, mask); |
| 1184 | } |
| 1185 | |
| 1186 | inline void QOpenGLFunctions_3_2_Core::glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass) |
| 1187 | { |
| 1188 | d_2_0_Core->f.StencilOpSeparate(face, sfail, dpfail, dppass); |
| 1189 | } |
| 1190 | |
| 1191 | inline void QOpenGLFunctions_3_2_Core::glDrawBuffers(GLsizei n, const GLenum *bufs) |
| 1192 | { |
| 1193 | d_2_0_Core->f.DrawBuffers(n, bufs); |
| 1194 | } |
| 1195 | |
| 1196 | inline void QOpenGLFunctions_3_2_Core::glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) |
| 1197 | { |
| 1198 | d_2_0_Core->f.BlendEquationSeparate(modeRGB, modeAlpha); |
| 1199 | } |
| 1200 | |
| 1201 | |
| 1202 | // OpenGL 2.1 core functions |
| 1203 | inline void QOpenGLFunctions_3_2_Core::glUniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 1204 | { |
| 1205 | d_2_1_Core->f.UniformMatrix4x3fv(location, count, transpose, value); |
| 1206 | } |
| 1207 | |
| 1208 | inline void QOpenGLFunctions_3_2_Core::glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 1209 | { |
| 1210 | d_2_1_Core->f.UniformMatrix3x4fv(location, count, transpose, value); |
| 1211 | } |
| 1212 | |
| 1213 | inline void QOpenGLFunctions_3_2_Core::glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 1214 | { |
| 1215 | d_2_1_Core->f.UniformMatrix4x2fv(location, count, transpose, value); |
| 1216 | } |
| 1217 | |
| 1218 | inline void QOpenGLFunctions_3_2_Core::glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 1219 | { |
| 1220 | d_2_1_Core->f.UniformMatrix2x4fv(location, count, transpose, value); |
| 1221 | } |
| 1222 | |
| 1223 | inline void QOpenGLFunctions_3_2_Core::glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 1224 | { |
| 1225 | d_2_1_Core->f.UniformMatrix3x2fv(location, count, transpose, value); |
| 1226 | } |
| 1227 | |
| 1228 | inline void QOpenGLFunctions_3_2_Core::glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 1229 | { |
| 1230 | d_2_1_Core->f.UniformMatrix2x3fv(location, count, transpose, value); |
| 1231 | } |
| 1232 | |
| 1233 | |
| 1234 | // OpenGL 3.0 core functions |
| 1235 | inline GLboolean QOpenGLFunctions_3_2_Core::glIsVertexArray(GLuint array) |
| 1236 | { |
| 1237 | return d_3_0_Core->f.IsVertexArray(array); |
| 1238 | } |
| 1239 | |
| 1240 | inline void QOpenGLFunctions_3_2_Core::glGenVertexArrays(GLsizei n, GLuint *arrays) |
| 1241 | { |
| 1242 | d_3_0_Core->f.GenVertexArrays(n, arrays); |
| 1243 | } |
| 1244 | |
| 1245 | inline void QOpenGLFunctions_3_2_Core::glDeleteVertexArrays(GLsizei n, const GLuint *arrays) |
| 1246 | { |
| 1247 | d_3_0_Core->f.DeleteVertexArrays(n, arrays); |
| 1248 | } |
| 1249 | |
| 1250 | inline void QOpenGLFunctions_3_2_Core::glBindVertexArray(GLuint array) |
| 1251 | { |
| 1252 | d_3_0_Core->f.BindVertexArray(array); |
| 1253 | } |
| 1254 | |
| 1255 | inline void QOpenGLFunctions_3_2_Core::glFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length) |
| 1256 | { |
| 1257 | d_3_0_Core->f.FlushMappedBufferRange(target, offset, length); |
| 1258 | } |
| 1259 | |
| 1260 | inline GLvoid* QOpenGLFunctions_3_2_Core::glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access) |
| 1261 | { |
| 1262 | return d_3_0_Core->f.MapBufferRange(target, offset, length, access); |
| 1263 | } |
| 1264 | |
| 1265 | inline void QOpenGLFunctions_3_2_Core::glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer) |
| 1266 | { |
| 1267 | d_3_0_Core->f.FramebufferTextureLayer(target, attachment, texture, level, layer); |
| 1268 | } |
| 1269 | |
| 1270 | inline void QOpenGLFunctions_3_2_Core::glRenderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height) |
| 1271 | { |
| 1272 | d_3_0_Core->f.RenderbufferStorageMultisample(target, samples, internalformat, width, height); |
| 1273 | } |
| 1274 | |
| 1275 | inline void QOpenGLFunctions_3_2_Core::glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) |
| 1276 | { |
| 1277 | d_3_0_Core->f.BlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); |
| 1278 | } |
| 1279 | |
| 1280 | inline void QOpenGLFunctions_3_2_Core::glGenerateMipmap(GLenum target) |
| 1281 | { |
| 1282 | d_3_0_Core->f.GenerateMipmap(target); |
| 1283 | } |
| 1284 | |
| 1285 | inline void QOpenGLFunctions_3_2_Core::glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params) |
| 1286 | { |
| 1287 | d_3_0_Core->f.GetFramebufferAttachmentParameteriv(target, attachment, pname, params); |
| 1288 | } |
| 1289 | |
| 1290 | inline void QOpenGLFunctions_3_2_Core::glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) |
| 1291 | { |
| 1292 | d_3_0_Core->f.FramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer); |
| 1293 | } |
| 1294 | |
| 1295 | inline void QOpenGLFunctions_3_2_Core::glFramebufferTexture3D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset) |
| 1296 | { |
| 1297 | d_3_0_Core->f.FramebufferTexture3D(target, attachment, textarget, texture, level, zoffset); |
| 1298 | } |
| 1299 | |
| 1300 | inline void QOpenGLFunctions_3_2_Core::glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) |
| 1301 | { |
| 1302 | d_3_0_Core->f.FramebufferTexture2D(target, attachment, textarget, texture, level); |
| 1303 | } |
| 1304 | |
| 1305 | inline void QOpenGLFunctions_3_2_Core::glFramebufferTexture1D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) |
| 1306 | { |
| 1307 | d_3_0_Core->f.FramebufferTexture1D(target, attachment, textarget, texture, level); |
| 1308 | } |
| 1309 | |
| 1310 | inline GLenum QOpenGLFunctions_3_2_Core::glCheckFramebufferStatus(GLenum target) |
| 1311 | { |
| 1312 | return d_3_0_Core->f.CheckFramebufferStatus(target); |
| 1313 | } |
| 1314 | |
| 1315 | inline void QOpenGLFunctions_3_2_Core::glGenFramebuffers(GLsizei n, GLuint *framebuffers) |
| 1316 | { |
| 1317 | d_3_0_Core->f.GenFramebuffers(n, framebuffers); |
| 1318 | } |
| 1319 | |
| 1320 | inline void QOpenGLFunctions_3_2_Core::glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers) |
| 1321 | { |
| 1322 | d_3_0_Core->f.DeleteFramebuffers(n, framebuffers); |
| 1323 | } |
| 1324 | |
| 1325 | inline void QOpenGLFunctions_3_2_Core::glBindFramebuffer(GLenum target, GLuint framebuffer) |
| 1326 | { |
| 1327 | d_3_0_Core->f.BindFramebuffer(target, framebuffer); |
| 1328 | } |
| 1329 | |
| 1330 | inline GLboolean QOpenGLFunctions_3_2_Core::glIsFramebuffer(GLuint framebuffer) |
| 1331 | { |
| 1332 | return d_3_0_Core->f.IsFramebuffer(framebuffer); |
| 1333 | } |
| 1334 | |
| 1335 | inline void QOpenGLFunctions_3_2_Core::glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params) |
| 1336 | { |
| 1337 | d_3_0_Core->f.GetRenderbufferParameteriv(target, pname, params); |
| 1338 | } |
| 1339 | |
| 1340 | inline void QOpenGLFunctions_3_2_Core::glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) |
| 1341 | { |
| 1342 | d_3_0_Core->f.RenderbufferStorage(target, internalformat, width, height); |
| 1343 | } |
| 1344 | |
| 1345 | inline void QOpenGLFunctions_3_2_Core::glGenRenderbuffers(GLsizei n, GLuint *renderbuffers) |
| 1346 | { |
| 1347 | d_3_0_Core->f.GenRenderbuffers(n, renderbuffers); |
| 1348 | } |
| 1349 | |
| 1350 | inline void QOpenGLFunctions_3_2_Core::glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers) |
| 1351 | { |
| 1352 | d_3_0_Core->f.DeleteRenderbuffers(n, renderbuffers); |
| 1353 | } |
| 1354 | |
| 1355 | inline void QOpenGLFunctions_3_2_Core::glBindRenderbuffer(GLenum target, GLuint renderbuffer) |
| 1356 | { |
| 1357 | d_3_0_Core->f.BindRenderbuffer(target, renderbuffer); |
| 1358 | } |
| 1359 | |
| 1360 | inline GLboolean QOpenGLFunctions_3_2_Core::glIsRenderbuffer(GLuint renderbuffer) |
| 1361 | { |
| 1362 | return d_3_0_Core->f.IsRenderbuffer(renderbuffer); |
| 1363 | } |
| 1364 | |
| 1365 | inline const GLubyte * QOpenGLFunctions_3_2_Core::glGetStringi(GLenum name, GLuint index) |
| 1366 | { |
| 1367 | return d_3_0_Core->f.GetStringi(name, index); |
| 1368 | } |
| 1369 | |
| 1370 | inline void QOpenGLFunctions_3_2_Core::glClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil) |
| 1371 | { |
| 1372 | d_3_0_Core->f.ClearBufferfi(buffer, drawbuffer, depth, stencil); |
| 1373 | } |
| 1374 | |
| 1375 | inline void QOpenGLFunctions_3_2_Core::glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value) |
| 1376 | { |
| 1377 | d_3_0_Core->f.ClearBufferfv(buffer, drawbuffer, value); |
| 1378 | } |
| 1379 | |
| 1380 | inline void QOpenGLFunctions_3_2_Core::glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value) |
| 1381 | { |
| 1382 | d_3_0_Core->f.ClearBufferuiv(buffer, drawbuffer, value); |
| 1383 | } |
| 1384 | |
| 1385 | inline void QOpenGLFunctions_3_2_Core::glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value) |
| 1386 | { |
| 1387 | d_3_0_Core->f.ClearBufferiv(buffer, drawbuffer, value); |
| 1388 | } |
| 1389 | |
| 1390 | inline void QOpenGLFunctions_3_2_Core::glGetTexParameterIuiv(GLenum target, GLenum pname, GLuint *params) |
| 1391 | { |
| 1392 | d_3_0_Core->f.GetTexParameterIuiv(target, pname, params); |
| 1393 | } |
| 1394 | |
| 1395 | inline void QOpenGLFunctions_3_2_Core::glGetTexParameterIiv(GLenum target, GLenum pname, GLint *params) |
| 1396 | { |
| 1397 | d_3_0_Core->f.GetTexParameterIiv(target, pname, params); |
| 1398 | } |
| 1399 | |
| 1400 | inline void QOpenGLFunctions_3_2_Core::glTexParameterIuiv(GLenum target, GLenum pname, const GLuint *params) |
| 1401 | { |
| 1402 | d_3_0_Core->f.TexParameterIuiv(target, pname, params); |
| 1403 | } |
| 1404 | |
| 1405 | inline void QOpenGLFunctions_3_2_Core::glTexParameterIiv(GLenum target, GLenum pname, const GLint *params) |
| 1406 | { |
| 1407 | d_3_0_Core->f.TexParameterIiv(target, pname, params); |
| 1408 | } |
| 1409 | |
| 1410 | inline void QOpenGLFunctions_3_2_Core::glUniform4uiv(GLint location, GLsizei count, const GLuint *value) |
| 1411 | { |
| 1412 | d_3_0_Core->f.Uniform4uiv(location, count, value); |
| 1413 | } |
| 1414 | |
| 1415 | inline void QOpenGLFunctions_3_2_Core::glUniform3uiv(GLint location, GLsizei count, const GLuint *value) |
| 1416 | { |
| 1417 | d_3_0_Core->f.Uniform3uiv(location, count, value); |
| 1418 | } |
| 1419 | |
| 1420 | inline void QOpenGLFunctions_3_2_Core::glUniform2uiv(GLint location, GLsizei count, const GLuint *value) |
| 1421 | { |
| 1422 | d_3_0_Core->f.Uniform2uiv(location, count, value); |
| 1423 | } |
| 1424 | |
| 1425 | inline void QOpenGLFunctions_3_2_Core::glUniform1uiv(GLint location, GLsizei count, const GLuint *value) |
| 1426 | { |
| 1427 | d_3_0_Core->f.Uniform1uiv(location, count, value); |
| 1428 | } |
| 1429 | |
| 1430 | inline void QOpenGLFunctions_3_2_Core::glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) |
| 1431 | { |
| 1432 | d_3_0_Core->f.Uniform4ui(location, v0, v1, v2, v3); |
| 1433 | } |
| 1434 | |
| 1435 | inline void QOpenGLFunctions_3_2_Core::glUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2) |
| 1436 | { |
| 1437 | d_3_0_Core->f.Uniform3ui(location, v0, v1, v2); |
| 1438 | } |
| 1439 | |
| 1440 | inline void QOpenGLFunctions_3_2_Core::glUniform2ui(GLint location, GLuint v0, GLuint v1) |
| 1441 | { |
| 1442 | d_3_0_Core->f.Uniform2ui(location, v0, v1); |
| 1443 | } |
| 1444 | |
| 1445 | inline void QOpenGLFunctions_3_2_Core::glUniform1ui(GLint location, GLuint v0) |
| 1446 | { |
| 1447 | d_3_0_Core->f.Uniform1ui(location, v0); |
| 1448 | } |
| 1449 | |
| 1450 | inline GLint QOpenGLFunctions_3_2_Core::glGetFragDataLocation(GLuint program, const GLchar *name) |
| 1451 | { |
| 1452 | return d_3_0_Core->f.GetFragDataLocation(program, name); |
| 1453 | } |
| 1454 | |
| 1455 | inline void QOpenGLFunctions_3_2_Core::glBindFragDataLocation(GLuint program, GLuint color, const GLchar *name) |
| 1456 | { |
| 1457 | d_3_0_Core->f.BindFragDataLocation(program, color, name); |
| 1458 | } |
| 1459 | |
| 1460 | inline void QOpenGLFunctions_3_2_Core::glGetUniformuiv(GLuint program, GLint location, GLuint *params) |
| 1461 | { |
| 1462 | d_3_0_Core->f.GetUniformuiv(program, location, params); |
| 1463 | } |
| 1464 | |
| 1465 | inline void QOpenGLFunctions_3_2_Core::glGetVertexAttribIuiv(GLuint index, GLenum pname, GLuint *params) |
| 1466 | { |
| 1467 | d_3_0_Core->f.GetVertexAttribIuiv(index, pname, params); |
| 1468 | } |
| 1469 | |
| 1470 | inline void QOpenGLFunctions_3_2_Core::glGetVertexAttribIiv(GLuint index, GLenum pname, GLint *params) |
| 1471 | { |
| 1472 | d_3_0_Core->f.GetVertexAttribIiv(index, pname, params); |
| 1473 | } |
| 1474 | |
| 1475 | inline void QOpenGLFunctions_3_2_Core::glVertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) |
| 1476 | { |
| 1477 | d_3_0_Core->f.VertexAttribIPointer(index, size, type, stride, pointer); |
| 1478 | } |
| 1479 | |
| 1480 | inline void QOpenGLFunctions_3_2_Core::glEndConditionalRender() |
| 1481 | { |
| 1482 | d_3_0_Core->f.EndConditionalRender(); |
| 1483 | } |
| 1484 | |
| 1485 | inline void QOpenGLFunctions_3_2_Core::glBeginConditionalRender(GLuint id, GLenum mode) |
| 1486 | { |
| 1487 | d_3_0_Core->f.BeginConditionalRender(id, mode); |
| 1488 | } |
| 1489 | |
| 1490 | inline void QOpenGLFunctions_3_2_Core::glClampColor(GLenum target, GLenum clamp) |
| 1491 | { |
| 1492 | d_3_0_Core->f.ClampColor(target, clamp); |
| 1493 | } |
| 1494 | |
| 1495 | inline void QOpenGLFunctions_3_2_Core::glGetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name) |
| 1496 | { |
| 1497 | d_3_0_Core->f.GetTransformFeedbackVarying(program, index, bufSize, length, size, type, name); |
| 1498 | } |
| 1499 | |
| 1500 | inline void QOpenGLFunctions_3_2_Core::glTransformFeedbackVaryings(GLuint program, GLsizei count, const GLchar* const *varyings, GLenum bufferMode) |
| 1501 | { |
| 1502 | d_3_0_Core->f.TransformFeedbackVaryings(program, count, varyings, bufferMode); |
| 1503 | } |
| 1504 | |
| 1505 | inline void QOpenGLFunctions_3_2_Core::glBindBufferBase(GLenum target, GLuint index, GLuint buffer) |
| 1506 | { |
| 1507 | d_3_0_Core->f.BindBufferBase(target, index, buffer); |
| 1508 | } |
| 1509 | |
| 1510 | inline void QOpenGLFunctions_3_2_Core::glBindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size) |
| 1511 | { |
| 1512 | d_3_0_Core->f.BindBufferRange(target, index, buffer, offset, size); |
| 1513 | } |
| 1514 | |
| 1515 | inline void QOpenGLFunctions_3_2_Core::glEndTransformFeedback() |
| 1516 | { |
| 1517 | d_3_0_Core->f.EndTransformFeedback(); |
| 1518 | } |
| 1519 | |
| 1520 | inline void QOpenGLFunctions_3_2_Core::glBeginTransformFeedback(GLenum primitiveMode) |
| 1521 | { |
| 1522 | d_3_0_Core->f.BeginTransformFeedback(primitiveMode); |
| 1523 | } |
| 1524 | |
| 1525 | inline GLboolean QOpenGLFunctions_3_2_Core::glIsEnabledi(GLenum target, GLuint index) |
| 1526 | { |
| 1527 | return d_3_0_Core->f.IsEnabledi(target, index); |
| 1528 | } |
| 1529 | |
| 1530 | inline void QOpenGLFunctions_3_2_Core::glDisablei(GLenum target, GLuint index) |
| 1531 | { |
| 1532 | d_3_0_Core->f.Disablei(target, index); |
| 1533 | } |
| 1534 | |
| 1535 | inline void QOpenGLFunctions_3_2_Core::glEnablei(GLenum target, GLuint index) |
| 1536 | { |
| 1537 | d_3_0_Core->f.Enablei(target, index); |
| 1538 | } |
| 1539 | |
| 1540 | inline void QOpenGLFunctions_3_2_Core::glGetIntegeri_v(GLenum target, GLuint index, GLint *data) |
| 1541 | { |
| 1542 | d_3_0_Core->f.GetIntegeri_v(target, index, data); |
| 1543 | } |
| 1544 | |
| 1545 | inline void QOpenGLFunctions_3_2_Core::glGetBooleani_v(GLenum target, GLuint index, GLboolean *data) |
| 1546 | { |
| 1547 | d_3_0_Core->f.GetBooleani_v(target, index, data); |
| 1548 | } |
| 1549 | |
| 1550 | inline void QOpenGLFunctions_3_2_Core::glColorMaski(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a) |
| 1551 | { |
| 1552 | d_3_0_Core->f.ColorMaski(index, r, g, b, a); |
| 1553 | } |
| 1554 | |
| 1555 | |
| 1556 | // OpenGL 3.1 core functions |
| 1557 | inline void QOpenGLFunctions_3_2_Core::glCopyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size) |
| 1558 | { |
| 1559 | d_3_1_Core->f.CopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size); |
| 1560 | } |
| 1561 | |
| 1562 | inline void QOpenGLFunctions_3_2_Core::glUniformBlockBinding(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding) |
| 1563 | { |
| 1564 | d_3_1_Core->f.UniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding); |
| 1565 | } |
| 1566 | |
| 1567 | inline void QOpenGLFunctions_3_2_Core::glGetActiveUniformBlockName(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName) |
| 1568 | { |
| 1569 | d_3_1_Core->f.GetActiveUniformBlockName(program, uniformBlockIndex, bufSize, length, uniformBlockName); |
| 1570 | } |
| 1571 | |
| 1572 | inline void QOpenGLFunctions_3_2_Core::glGetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params) |
| 1573 | { |
| 1574 | d_3_1_Core->f.GetActiveUniformBlockiv(program, uniformBlockIndex, pname, params); |
| 1575 | } |
| 1576 | |
| 1577 | inline GLuint QOpenGLFunctions_3_2_Core::glGetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName) |
| 1578 | { |
| 1579 | return d_3_1_Core->f.GetUniformBlockIndex(program, uniformBlockName); |
| 1580 | } |
| 1581 | |
| 1582 | inline void QOpenGLFunctions_3_2_Core::glGetActiveUniformName(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName) |
| 1583 | { |
| 1584 | d_3_1_Core->f.GetActiveUniformName(program, uniformIndex, bufSize, length, uniformName); |
| 1585 | } |
| 1586 | |
| 1587 | inline void QOpenGLFunctions_3_2_Core::glGetActiveUniformsiv(GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params) |
| 1588 | { |
| 1589 | d_3_1_Core->f.GetActiveUniformsiv(program, uniformCount, uniformIndices, pname, params); |
| 1590 | } |
| 1591 | |
| 1592 | inline void QOpenGLFunctions_3_2_Core::glGetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar* const *uniformNames, GLuint *uniformIndices) |
| 1593 | { |
| 1594 | d_3_1_Core->f.GetUniformIndices(program, uniformCount, uniformNames, uniformIndices); |
| 1595 | } |
| 1596 | |
| 1597 | inline void QOpenGLFunctions_3_2_Core::glPrimitiveRestartIndex(GLuint index) |
| 1598 | { |
| 1599 | d_3_1_Core->f.PrimitiveRestartIndex(index); |
| 1600 | } |
| 1601 | |
| 1602 | inline void QOpenGLFunctions_3_2_Core::glTexBuffer(GLenum target, GLenum internalformat, GLuint buffer) |
| 1603 | { |
| 1604 | d_3_1_Core->f.TexBuffer(target, internalformat, buffer); |
| 1605 | } |
| 1606 | |
| 1607 | inline void QOpenGLFunctions_3_2_Core::glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount) |
| 1608 | { |
| 1609 | d_3_1_Core->f.DrawElementsInstanced(mode, count, type, indices, instancecount); |
| 1610 | } |
| 1611 | |
| 1612 | inline void QOpenGLFunctions_3_2_Core::glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instancecount) |
| 1613 | { |
| 1614 | d_3_1_Core->f.DrawArraysInstanced(mode, first, count, instancecount); |
| 1615 | } |
| 1616 | |
| 1617 | |
| 1618 | // OpenGL 3.2 core functions |
| 1619 | inline void QOpenGLFunctions_3_2_Core::glSampleMaski(GLuint index, GLbitfield mask) |
| 1620 | { |
| 1621 | d_3_2_Core->f.SampleMaski(index, mask); |
| 1622 | } |
| 1623 | |
| 1624 | inline void QOpenGLFunctions_3_2_Core::glGetMultisamplefv(GLenum pname, GLuint index, GLfloat *val) |
| 1625 | { |
| 1626 | d_3_2_Core->f.GetMultisamplefv(pname, index, val); |
| 1627 | } |
| 1628 | |
| 1629 | inline void QOpenGLFunctions_3_2_Core::glTexImage3DMultisample(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations) |
| 1630 | { |
| 1631 | d_3_2_Core->f.TexImage3DMultisample(target, samples, internalformat, width, height, depth, fixedsamplelocations); |
| 1632 | } |
| 1633 | |
| 1634 | inline void QOpenGLFunctions_3_2_Core::glTexImage2DMultisample(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations) |
| 1635 | { |
| 1636 | d_3_2_Core->f.TexImage2DMultisample(target, samples, internalformat, width, height, fixedsamplelocations); |
| 1637 | } |
| 1638 | |
| 1639 | inline void QOpenGLFunctions_3_2_Core::glGetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values) |
| 1640 | { |
| 1641 | d_3_2_Core->f.GetSynciv(sync, pname, bufSize, length, values); |
| 1642 | } |
| 1643 | |
| 1644 | inline void QOpenGLFunctions_3_2_Core::glGetInteger64v(GLenum pname, GLint64 *params) |
| 1645 | { |
| 1646 | d_3_2_Core->f.GetInteger64v(pname, params); |
| 1647 | } |
| 1648 | |
| 1649 | inline void QOpenGLFunctions_3_2_Core::glWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) |
| 1650 | { |
| 1651 | d_3_2_Core->f.WaitSync(sync, flags, timeout); |
| 1652 | } |
| 1653 | |
| 1654 | inline GLenum QOpenGLFunctions_3_2_Core::glClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) |
| 1655 | { |
| 1656 | return d_3_2_Core->f.ClientWaitSync(sync, flags, timeout); |
| 1657 | } |
| 1658 | |
| 1659 | inline void QOpenGLFunctions_3_2_Core::glDeleteSync(GLsync sync) |
| 1660 | { |
| 1661 | d_3_2_Core->f.DeleteSync(sync); |
| 1662 | } |
| 1663 | |
| 1664 | inline GLboolean QOpenGLFunctions_3_2_Core::glIsSync(GLsync sync) |
| 1665 | { |
| 1666 | return d_3_2_Core->f.IsSync(sync); |
| 1667 | } |
| 1668 | |
| 1669 | inline GLsync QOpenGLFunctions_3_2_Core::glFenceSync(GLenum condition, GLbitfield flags) |
| 1670 | { |
| 1671 | return d_3_2_Core->f.FenceSync(condition, flags); |
| 1672 | } |
| 1673 | |
| 1674 | inline void QOpenGLFunctions_3_2_Core::glProvokingVertex(GLenum mode) |
| 1675 | { |
| 1676 | d_3_2_Core->f.ProvokingVertex(mode); |
| 1677 | } |
| 1678 | |
| 1679 | inline void QOpenGLFunctions_3_2_Core::glMultiDrawElementsBaseVertex(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount, const GLint *basevertex) |
| 1680 | { |
| 1681 | d_3_2_Core->f.MultiDrawElementsBaseVertex(mode, count, type, indices, drawcount, basevertex); |
| 1682 | } |
| 1683 | |
| 1684 | inline void QOpenGLFunctions_3_2_Core::glDrawElementsInstancedBaseVertex(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount, GLint basevertex) |
| 1685 | { |
| 1686 | d_3_2_Core->f.DrawElementsInstancedBaseVertex(mode, count, type, indices, instancecount, basevertex); |
| 1687 | } |
| 1688 | |
| 1689 | inline void QOpenGLFunctions_3_2_Core::glDrawRangeElementsBaseVertex(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex) |
| 1690 | { |
| 1691 | d_3_2_Core->f.DrawRangeElementsBaseVertex(mode, start, end, count, type, indices, basevertex); |
| 1692 | } |
| 1693 | |
| 1694 | inline void QOpenGLFunctions_3_2_Core::glDrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex) |
| 1695 | { |
| 1696 | d_3_2_Core->f.DrawElementsBaseVertex(mode, count, type, indices, basevertex); |
| 1697 | } |
| 1698 | |
| 1699 | inline void QOpenGLFunctions_3_2_Core::glFramebufferTexture(GLenum target, GLenum attachment, GLuint texture, GLint level) |
| 1700 | { |
| 1701 | d_3_2_Core->f.FramebufferTexture(target, attachment, texture, level); |
| 1702 | } |
| 1703 | |
| 1704 | inline void QOpenGLFunctions_3_2_Core::glGetBufferParameteri64v(GLenum target, GLenum pname, GLint64 *params) |
| 1705 | { |
| 1706 | d_3_2_Core->f.GetBufferParameteri64v(target, pname, params); |
| 1707 | } |
| 1708 | |
| 1709 | inline void QOpenGLFunctions_3_2_Core::glGetInteger64i_v(GLenum target, GLuint index, GLint64 *data) |
| 1710 | { |
| 1711 | d_3_2_Core->f.GetInteger64i_v(target, index, data); |
| 1712 | } |
| 1713 | |
| 1714 | |
| 1715 | |
| 1716 | QT_END_NAMESPACE |
| 1717 | |
| 1718 | #endif // QT_NO_OPENGL && !QT_OPENGL_ES_2 |
| 1719 | |
| 1720 | #endif |
| 1721 | |