| 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 QtOpenGL 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_4_0_CORE_H |
| 51 | #define QOPENGLVERSIONFUNCTIONS_4_0_CORE_H |
| 52 | |
| 53 | #include <QtOpenGL/qtopenglglobal.h> |
| 54 | |
| 55 | #if !defined(QT_NO_OPENGL) && !QT_CONFIG(opengles2) |
| 56 | |
| 57 | #include <QtOpenGL/QOpenGLVersionProfile> |
| 58 | #include <QtOpenGL/QOpenGLVersionFunctions> |
| 59 | #include <QtGui/qopenglcontext.h> |
| 60 | |
| 61 | QT_BEGIN_NAMESPACE |
| 62 | |
| 63 | class Q_OPENGL_EXPORT QOpenGLFunctions_4_0_Core : public QAbstractOpenGLFunctions |
| 64 | { |
| 65 | public: |
| 66 | QOpenGLFunctions_4_0_Core(); |
| 67 | ~QOpenGLFunctions_4_0_Core(); |
| 68 | |
| 69 | bool initializeOpenGLFunctions() override; |
| 70 | |
| 71 | // OpenGL 1.0 core functions |
| 72 | void glViewport(GLint x, GLint y, GLsizei width, GLsizei height); |
| 73 | void glDepthRange(GLdouble nearVal, GLdouble farVal); |
| 74 | GLboolean glIsEnabled(GLenum cap); |
| 75 | void glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params); |
| 76 | void glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params); |
| 77 | void glGetTexParameteriv(GLenum target, GLenum pname, GLint *params); |
| 78 | void glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params); |
| 79 | void glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); |
| 80 | const GLubyte * glGetString(GLenum name); |
| 81 | void glGetIntegerv(GLenum pname, GLint *params); |
| 82 | void glGetFloatv(GLenum pname, GLfloat *params); |
| 83 | GLenum glGetError(); |
| 84 | void glGetDoublev(GLenum pname, GLdouble *params); |
| 85 | void glGetBooleanv(GLenum pname, GLboolean *params); |
| 86 | void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); |
| 87 | void glReadBuffer(GLenum mode); |
| 88 | void glPixelStorei(GLenum pname, GLint param); |
| 89 | void glPixelStoref(GLenum pname, GLfloat param); |
| 90 | void glDepthFunc(GLenum func); |
| 91 | void glStencilOp(GLenum fail, GLenum zfail, GLenum zpass); |
| 92 | void glStencilFunc(GLenum func, GLint ref, GLuint mask); |
| 93 | void glLogicOp(GLenum opcode); |
| 94 | void glBlendFunc(GLenum sfactor, GLenum dfactor); |
| 95 | void glFlush(); |
| 96 | void glFinish(); |
| 97 | void glEnable(GLenum cap); |
| 98 | void glDisable(GLenum cap); |
| 99 | void glDepthMask(GLboolean flag); |
| 100 | void glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); |
| 101 | void glStencilMask(GLuint mask); |
| 102 | void glClearDepth(GLdouble depth); |
| 103 | void glClearStencil(GLint s); |
| 104 | void glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); |
| 105 | void glClear(GLbitfield mask); |
| 106 | void glDrawBuffer(GLenum mode); |
| 107 | void glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); |
| 108 | void glTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); |
| 109 | void glTexParameteriv(GLenum target, GLenum pname, const GLint *params); |
| 110 | void glTexParameteri(GLenum target, GLenum pname, GLint param); |
| 111 | void glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params); |
| 112 | void glTexParameterf(GLenum target, GLenum pname, GLfloat param); |
| 113 | void glScissor(GLint x, GLint y, GLsizei width, GLsizei height); |
| 114 | void glPolygonMode(GLenum face, GLenum mode); |
| 115 | void glPointSize(GLfloat size); |
| 116 | void glLineWidth(GLfloat width); |
| 117 | void glHint(GLenum target, GLenum mode); |
| 118 | void glFrontFace(GLenum mode); |
| 119 | void glCullFace(GLenum mode); |
| 120 | |
| 121 | // OpenGL 1.1 core functions |
| 122 | GLboolean glIsTexture(GLuint texture); |
| 123 | void glGenTextures(GLsizei n, GLuint *textures); |
| 124 | void glDeleteTextures(GLsizei n, const GLuint *textures); |
| 125 | void glBindTexture(GLenum target, GLuint texture); |
| 126 | void glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); |
| 127 | void glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); |
| 128 | void glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); |
| 129 | void glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); |
| 130 | void glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); |
| 131 | void glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); |
| 132 | void glPolygonOffset(GLfloat factor, GLfloat units); |
| 133 | void glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); |
| 134 | void glDrawArrays(GLenum mode, GLint first, GLsizei count); |
| 135 | |
| 136 | // OpenGL 1.2 core functions |
| 137 | void glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); |
| 138 | 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); |
| 139 | void glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); |
| 140 | void glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); |
| 141 | void glBlendEquation(GLenum mode); |
| 142 | void glBlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); |
| 143 | |
| 144 | // OpenGL 1.3 core functions |
| 145 | void glGetCompressedTexImage(GLenum target, GLint level, GLvoid *img); |
| 146 | void glCompressedTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data); |
| 147 | void glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); |
| 148 | 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); |
| 149 | void glCompressedTexImage1D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data); |
| 150 | void glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); |
| 151 | void glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data); |
| 152 | void glSampleCoverage(GLfloat value, GLboolean invert); |
| 153 | void glActiveTexture(GLenum texture); |
| 154 | |
| 155 | // OpenGL 1.4 core functions |
| 156 | void glPointParameteriv(GLenum pname, const GLint *params); |
| 157 | void glPointParameteri(GLenum pname, GLint param); |
| 158 | void glPointParameterfv(GLenum pname, const GLfloat *params); |
| 159 | void glPointParameterf(GLenum pname, GLfloat param); |
| 160 | void glMultiDrawElements(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount); |
| 161 | void glMultiDrawArrays(GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount); |
| 162 | void glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); |
| 163 | |
| 164 | // OpenGL 1.5 core functions |
| 165 | void glGetBufferPointerv(GLenum target, GLenum pname, GLvoid* *params); |
| 166 | void glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params); |
| 167 | GLboolean glUnmapBuffer(GLenum target); |
| 168 | GLvoid* glMapBuffer(GLenum target, GLenum access); |
| 169 | void glGetBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data); |
| 170 | void glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data); |
| 171 | void glBufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage); |
| 172 | GLboolean glIsBuffer(GLuint buffer); |
| 173 | void glGenBuffers(GLsizei n, GLuint *buffers); |
| 174 | void glDeleteBuffers(GLsizei n, const GLuint *buffers); |
| 175 | void glBindBuffer(GLenum target, GLuint buffer); |
| 176 | void glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params); |
| 177 | void glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params); |
| 178 | void glGetQueryiv(GLenum target, GLenum pname, GLint *params); |
| 179 | void glEndQuery(GLenum target); |
| 180 | void glBeginQuery(GLenum target, GLuint id); |
| 181 | GLboolean glIsQuery(GLuint id); |
| 182 | void glDeleteQueries(GLsizei n, const GLuint *ids); |
| 183 | void glGenQueries(GLsizei n, GLuint *ids); |
| 184 | |
| 185 | // OpenGL 2.0 core functions |
| 186 | void glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer); |
| 187 | void glValidateProgram(GLuint program); |
| 188 | void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| 189 | void glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| 190 | void glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| 191 | void glUniform4iv(GLint location, GLsizei count, const GLint *value); |
| 192 | void glUniform3iv(GLint location, GLsizei count, const GLint *value); |
| 193 | void glUniform2iv(GLint location, GLsizei count, const GLint *value); |
| 194 | void glUniform1iv(GLint location, GLsizei count, const GLint *value); |
| 195 | void glUniform4fv(GLint location, GLsizei count, const GLfloat *value); |
| 196 | void glUniform3fv(GLint location, GLsizei count, const GLfloat *value); |
| 197 | void glUniform2fv(GLint location, GLsizei count, const GLfloat *value); |
| 198 | void glUniform1fv(GLint location, GLsizei count, const GLfloat *value); |
| 199 | void glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3); |
| 200 | void glUniform3i(GLint location, GLint v0, GLint v1, GLint v2); |
| 201 | void glUniform2i(GLint location, GLint v0, GLint v1); |
| 202 | void glUniform1i(GLint location, GLint v0); |
| 203 | void glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); |
| 204 | void glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2); |
| 205 | void glUniform2f(GLint location, GLfloat v0, GLfloat v1); |
| 206 | void glUniform1f(GLint location, GLfloat v0); |
| 207 | void glUseProgram(GLuint program); |
| 208 | void glShaderSource(GLuint shader, GLsizei count, const GLchar* const *string, const GLint *length); |
| 209 | void glLinkProgram(GLuint program); |
| 210 | GLboolean glIsShader(GLuint shader); |
| 211 | GLboolean glIsProgram(GLuint program); |
| 212 | void glGetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid* *pointer); |
| 213 | void glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params); |
| 214 | void glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params); |
| 215 | void glGetVertexAttribdv(GLuint index, GLenum pname, GLdouble *params); |
| 216 | void glGetUniformiv(GLuint program, GLint location, GLint *params); |
| 217 | void glGetUniformfv(GLuint program, GLint location, GLfloat *params); |
| 218 | GLint glGetUniformLocation(GLuint program, const GLchar *name); |
| 219 | void glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source); |
| 220 | void glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); |
| 221 | void glGetShaderiv(GLuint shader, GLenum pname, GLint *params); |
| 222 | void glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); |
| 223 | void glGetProgramiv(GLuint program, GLenum pname, GLint *params); |
| 224 | GLint glGetAttribLocation(GLuint program, const GLchar *name); |
| 225 | void glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj); |
| 226 | void glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); |
| 227 | void glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); |
| 228 | void glEnableVertexAttribArray(GLuint index); |
| 229 | void glDisableVertexAttribArray(GLuint index); |
| 230 | void glDetachShader(GLuint program, GLuint shader); |
| 231 | void glDeleteShader(GLuint shader); |
| 232 | void glDeleteProgram(GLuint program); |
| 233 | GLuint glCreateShader(GLenum type); |
| 234 | GLuint glCreateProgram(); |
| 235 | void glCompileShader(GLuint shader); |
| 236 | void glBindAttribLocation(GLuint program, GLuint index, const GLchar *name); |
| 237 | void glAttachShader(GLuint program, GLuint shader); |
| 238 | void glStencilMaskSeparate(GLenum face, GLuint mask); |
| 239 | void glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask); |
| 240 | void glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); |
| 241 | void glDrawBuffers(GLsizei n, const GLenum *bufs); |
| 242 | void glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha); |
| 243 | |
| 244 | // OpenGL 2.1 core functions |
| 245 | void glUniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| 246 | void glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| 247 | void glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| 248 | void glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| 249 | void glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| 250 | void glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| 251 | |
| 252 | // OpenGL 3.0 core functions |
| 253 | GLboolean glIsVertexArray(GLuint array); |
| 254 | void glGenVertexArrays(GLsizei n, GLuint *arrays); |
| 255 | void glDeleteVertexArrays(GLsizei n, const GLuint *arrays); |
| 256 | void glBindVertexArray(GLuint array); |
| 257 | void glFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length); |
| 258 | GLvoid* glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); |
| 259 | void glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); |
| 260 | void glRenderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); |
| 261 | void glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); |
| 262 | void glGenerateMipmap(GLenum target); |
| 263 | void glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params); |
| 264 | void glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); |
| 265 | void glFramebufferTexture3D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); |
| 266 | void glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); |
| 267 | void glFramebufferTexture1D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); |
| 268 | GLenum glCheckFramebufferStatus(GLenum target); |
| 269 | void glGenFramebuffers(GLsizei n, GLuint *framebuffers); |
| 270 | void glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers); |
| 271 | void glBindFramebuffer(GLenum target, GLuint framebuffer); |
| 272 | GLboolean glIsFramebuffer(GLuint framebuffer); |
| 273 | void glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params); |
| 274 | void glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height); |
| 275 | void glGenRenderbuffers(GLsizei n, GLuint *renderbuffers); |
| 276 | void glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers); |
| 277 | void glBindRenderbuffer(GLenum target, GLuint renderbuffer); |
| 278 | GLboolean glIsRenderbuffer(GLuint renderbuffer); |
| 279 | const GLubyte * glGetStringi(GLenum name, GLuint index); |
| 280 | void glClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); |
| 281 | void glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value); |
| 282 | void glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value); |
| 283 | void glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value); |
| 284 | void glGetTexParameterIuiv(GLenum target, GLenum pname, GLuint *params); |
| 285 | void glGetTexParameterIiv(GLenum target, GLenum pname, GLint *params); |
| 286 | void glTexParameterIuiv(GLenum target, GLenum pname, const GLuint *params); |
| 287 | void glTexParameterIiv(GLenum target, GLenum pname, const GLint *params); |
| 288 | void glUniform4uiv(GLint location, GLsizei count, const GLuint *value); |
| 289 | void glUniform3uiv(GLint location, GLsizei count, const GLuint *value); |
| 290 | void glUniform2uiv(GLint location, GLsizei count, const GLuint *value); |
| 291 | void glUniform1uiv(GLint location, GLsizei count, const GLuint *value); |
| 292 | void glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); |
| 293 | void glUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2); |
| 294 | void glUniform2ui(GLint location, GLuint v0, GLuint v1); |
| 295 | void glUniform1ui(GLint location, GLuint v0); |
| 296 | GLint glGetFragDataLocation(GLuint program, const GLchar *name); |
| 297 | void glBindFragDataLocation(GLuint program, GLuint color, const GLchar *name); |
| 298 | void glGetUniformuiv(GLuint program, GLint location, GLuint *params); |
| 299 | void glGetVertexAttribIuiv(GLuint index, GLenum pname, GLuint *params); |
| 300 | void glGetVertexAttribIiv(GLuint index, GLenum pname, GLint *params); |
| 301 | void glVertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); |
| 302 | void glEndConditionalRender(); |
| 303 | void glBeginConditionalRender(GLuint id, GLenum mode); |
| 304 | void glClampColor(GLenum target, GLenum clamp); |
| 305 | void glGetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); |
| 306 | void glTransformFeedbackVaryings(GLuint program, GLsizei count, const GLchar* const *varyings, GLenum bufferMode); |
| 307 | void glBindBufferBase(GLenum target, GLuint index, GLuint buffer); |
| 308 | void glBindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); |
| 309 | void glEndTransformFeedback(); |
| 310 | void glBeginTransformFeedback(GLenum primitiveMode); |
| 311 | GLboolean glIsEnabledi(GLenum target, GLuint index); |
| 312 | void glDisablei(GLenum target, GLuint index); |
| 313 | void glEnablei(GLenum target, GLuint index); |
| 314 | void glGetIntegeri_v(GLenum target, GLuint index, GLint *data); |
| 315 | void glGetBooleani_v(GLenum target, GLuint index, GLboolean *data); |
| 316 | void glColorMaski(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); |
| 317 | |
| 318 | // OpenGL 3.1 core functions |
| 319 | void glCopyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); |
| 320 | void glUniformBlockBinding(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); |
| 321 | void glGetActiveUniformBlockName(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName); |
| 322 | void glGetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params); |
| 323 | GLuint glGetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName); |
| 324 | void glGetActiveUniformName(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName); |
| 325 | void glGetActiveUniformsiv(GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params); |
| 326 | void glGetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar* const *uniformNames, GLuint *uniformIndices); |
| 327 | void glPrimitiveRestartIndex(GLuint index); |
| 328 | void glTexBuffer(GLenum target, GLenum internalformat, GLuint buffer); |
| 329 | void glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount); |
| 330 | void glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instancecount); |
| 331 | |
| 332 | // OpenGL 3.2 core functions |
| 333 | void glSampleMaski(GLuint index, GLbitfield mask); |
| 334 | void glGetMultisamplefv(GLenum pname, GLuint index, GLfloat *val); |
| 335 | void glTexImage3DMultisample(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); |
| 336 | void glTexImage2DMultisample(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); |
| 337 | void glGetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values); |
| 338 | void glGetInteger64v(GLenum pname, GLint64 *params); |
| 339 | void glWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout); |
| 340 | GLenum glClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout); |
| 341 | void glDeleteSync(GLsync sync); |
| 342 | GLboolean glIsSync(GLsync sync); |
| 343 | GLsync glFenceSync(GLenum condition, GLbitfield flags); |
| 344 | void glProvokingVertex(GLenum mode); |
| 345 | void glMultiDrawElementsBaseVertex(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount, const GLint *basevertex); |
| 346 | void glDrawElementsInstancedBaseVertex(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount, GLint basevertex); |
| 347 | void glDrawRangeElementsBaseVertex(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex); |
| 348 | void glDrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex); |
| 349 | void glFramebufferTexture(GLenum target, GLenum attachment, GLuint texture, GLint level); |
| 350 | void glGetBufferParameteri64v(GLenum target, GLenum pname, GLint64 *params); |
| 351 | void glGetInteger64i_v(GLenum target, GLuint index, GLint64 *data); |
| 352 | |
| 353 | // OpenGL 3.3 core functions |
| 354 | void glVertexAttribP4uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint *value); |
| 355 | void glVertexAttribP4ui(GLuint index, GLenum type, GLboolean normalized, GLuint value); |
| 356 | void glVertexAttribP3uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint *value); |
| 357 | void glVertexAttribP3ui(GLuint index, GLenum type, GLboolean normalized, GLuint value); |
| 358 | void glVertexAttribP2uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint *value); |
| 359 | void glVertexAttribP2ui(GLuint index, GLenum type, GLboolean normalized, GLuint value); |
| 360 | void glVertexAttribP1uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint *value); |
| 361 | void glVertexAttribP1ui(GLuint index, GLenum type, GLboolean normalized, GLuint value); |
| 362 | void glGetQueryObjectui64v(GLuint id, GLenum pname, GLuint64 *params); |
| 363 | void glGetQueryObjecti64v(GLuint id, GLenum pname, GLint64 *params); |
| 364 | void glQueryCounter(GLuint id, GLenum target); |
| 365 | void glGetSamplerParameterIuiv(GLuint sampler, GLenum pname, GLuint *params); |
| 366 | void glGetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat *params); |
| 367 | void glGetSamplerParameterIiv(GLuint sampler, GLenum pname, GLint *params); |
| 368 | void glGetSamplerParameteriv(GLuint sampler, GLenum pname, GLint *params); |
| 369 | void glSamplerParameterIuiv(GLuint sampler, GLenum pname, const GLuint *param); |
| 370 | void glSamplerParameterIiv(GLuint sampler, GLenum pname, const GLint *param); |
| 371 | void glSamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat *param); |
| 372 | void glSamplerParameterf(GLuint sampler, GLenum pname, GLfloat param); |
| 373 | void glSamplerParameteriv(GLuint sampler, GLenum pname, const GLint *param); |
| 374 | void glSamplerParameteri(GLuint sampler, GLenum pname, GLint param); |
| 375 | void glBindSampler(GLuint unit, GLuint sampler); |
| 376 | GLboolean glIsSampler(GLuint sampler); |
| 377 | void glDeleteSamplers(GLsizei count, const GLuint *samplers); |
| 378 | void glGenSamplers(GLsizei count, GLuint *samplers); |
| 379 | GLint glGetFragDataIndex(GLuint program, const GLchar *name); |
| 380 | void glBindFragDataLocationIndexed(GLuint program, GLuint colorNumber, GLuint index, const GLchar *name); |
| 381 | void glVertexAttribDivisor(GLuint index, GLuint divisor); |
| 382 | |
| 383 | // OpenGL 4.0 core functions |
| 384 | void glGetQueryIndexediv(GLenum target, GLuint index, GLenum pname, GLint *params); |
| 385 | void glEndQueryIndexed(GLenum target, GLuint index); |
| 386 | void glBeginQueryIndexed(GLenum target, GLuint index, GLuint id); |
| 387 | void glDrawTransformFeedbackStream(GLenum mode, GLuint id, GLuint stream); |
| 388 | void glDrawTransformFeedback(GLenum mode, GLuint id); |
| 389 | void glResumeTransformFeedback(); |
| 390 | void glPauseTransformFeedback(); |
| 391 | GLboolean glIsTransformFeedback(GLuint id); |
| 392 | void glGenTransformFeedbacks(GLsizei n, GLuint *ids); |
| 393 | void glDeleteTransformFeedbacks(GLsizei n, const GLuint *ids); |
| 394 | void glBindTransformFeedback(GLenum target, GLuint id); |
| 395 | void glPatchParameterfv(GLenum pname, const GLfloat *values); |
| 396 | void glPatchParameteri(GLenum pname, GLint value); |
| 397 | void glGetProgramStageiv(GLuint program, GLenum shadertype, GLenum pname, GLint *values); |
| 398 | void glGetUniformSubroutineuiv(GLenum shadertype, GLint location, GLuint *params); |
| 399 | void glUniformSubroutinesuiv(GLenum shadertype, GLsizei count, const GLuint *indices); |
| 400 | void glGetActiveSubroutineName(GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name); |
| 401 | void glGetActiveSubroutineUniformName(GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name); |
| 402 | void glGetActiveSubroutineUniformiv(GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values); |
| 403 | GLuint glGetSubroutineIndex(GLuint program, GLenum shadertype, const GLchar *name); |
| 404 | GLint glGetSubroutineUniformLocation(GLuint program, GLenum shadertype, const GLchar *name); |
| 405 | void glGetUniformdv(GLuint program, GLint location, GLdouble *params); |
| 406 | void glUniformMatrix4x3dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); |
| 407 | void glUniformMatrix4x2dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); |
| 408 | void glUniformMatrix3x4dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); |
| 409 | void glUniformMatrix3x2dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); |
| 410 | void glUniformMatrix2x4dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); |
| 411 | void glUniformMatrix2x3dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); |
| 412 | void glUniformMatrix4dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); |
| 413 | void glUniformMatrix3dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); |
| 414 | void glUniformMatrix2dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); |
| 415 | void glUniform4dv(GLint location, GLsizei count, const GLdouble *value); |
| 416 | void glUniform3dv(GLint location, GLsizei count, const GLdouble *value); |
| 417 | void glUniform2dv(GLint location, GLsizei count, const GLdouble *value); |
| 418 | void glUniform1dv(GLint location, GLsizei count, const GLdouble *value); |
| 419 | void glUniform4d(GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); |
| 420 | void glUniform3d(GLint location, GLdouble x, GLdouble y, GLdouble z); |
| 421 | void glUniform2d(GLint location, GLdouble x, GLdouble y); |
| 422 | void glUniform1d(GLint location, GLdouble x); |
| 423 | void glDrawElementsIndirect(GLenum mode, GLenum type, const GLvoid *indirect); |
| 424 | void glDrawArraysIndirect(GLenum mode, const GLvoid *indirect); |
| 425 | void glBlendFuncSeparatei(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); |
| 426 | void glBlendFunci(GLuint buf, GLenum src, GLenum dst); |
| 427 | void glBlendEquationSeparatei(GLuint buf, GLenum modeRGB, GLenum modeAlpha); |
| 428 | void glBlendEquationi(GLuint buf, GLenum mode); |
| 429 | void glMinSampleShading(GLfloat value); |
| 430 | |
| 431 | private: |
| 432 | friend class QOpenGLVersionFunctionsFactory; |
| 433 | |
| 434 | static bool isContextCompatible(QOpenGLContext *context); |
| 435 | static QOpenGLVersionProfile versionProfile(); |
| 436 | |
| 437 | QOpenGLFunctions_1_0_CoreBackend* d_1_0_Core; |
| 438 | QOpenGLFunctions_1_1_CoreBackend* d_1_1_Core; |
| 439 | QOpenGLFunctions_1_2_CoreBackend* d_1_2_Core; |
| 440 | QOpenGLFunctions_1_3_CoreBackend* d_1_3_Core; |
| 441 | QOpenGLFunctions_1_4_CoreBackend* d_1_4_Core; |
| 442 | QOpenGLFunctions_1_5_CoreBackend* d_1_5_Core; |
| 443 | QOpenGLFunctions_2_0_CoreBackend* d_2_0_Core; |
| 444 | QOpenGLFunctions_2_1_CoreBackend* d_2_1_Core; |
| 445 | QOpenGLFunctions_3_0_CoreBackend* d_3_0_Core; |
| 446 | QOpenGLFunctions_3_1_CoreBackend* d_3_1_Core; |
| 447 | QOpenGLFunctions_3_2_CoreBackend* d_3_2_Core; |
| 448 | QOpenGLFunctions_3_3_CoreBackend* d_3_3_Core; |
| 449 | QOpenGLFunctions_4_0_CoreBackend* d_4_0_Core; |
| 450 | }; |
| 451 | |
| 452 | // OpenGL 1.0 core functions |
| 453 | inline void QOpenGLFunctions_4_0_Core::glViewport(GLint x, GLint y, GLsizei width, GLsizei height) |
| 454 | { |
| 455 | d_1_0_Core->f.Viewport(x, y, width, height); |
| 456 | } |
| 457 | |
| 458 | inline void QOpenGLFunctions_4_0_Core::glDepthRange(GLdouble nearVal, GLdouble farVal) |
| 459 | { |
| 460 | d_1_0_Core->f.DepthRange(nearVal, farVal); |
| 461 | } |
| 462 | |
| 463 | inline GLboolean QOpenGLFunctions_4_0_Core::glIsEnabled(GLenum cap) |
| 464 | { |
| 465 | return d_1_0_Core->f.IsEnabled(cap); |
| 466 | } |
| 467 | |
| 468 | inline void QOpenGLFunctions_4_0_Core::glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params) |
| 469 | { |
| 470 | d_1_0_Core->f.GetTexLevelParameteriv(target, level, pname, params); |
| 471 | } |
| 472 | |
| 473 | inline void QOpenGLFunctions_4_0_Core::glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params) |
| 474 | { |
| 475 | d_1_0_Core->f.GetTexLevelParameterfv(target, level, pname, params); |
| 476 | } |
| 477 | |
| 478 | inline void QOpenGLFunctions_4_0_Core::glGetTexParameteriv(GLenum target, GLenum pname, GLint *params) |
| 479 | { |
| 480 | d_1_0_Core->f.GetTexParameteriv(target, pname, params); |
| 481 | } |
| 482 | |
| 483 | inline void QOpenGLFunctions_4_0_Core::glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params) |
| 484 | { |
| 485 | d_1_0_Core->f.GetTexParameterfv(target, pname, params); |
| 486 | } |
| 487 | |
| 488 | inline void QOpenGLFunctions_4_0_Core::glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels) |
| 489 | { |
| 490 | d_1_0_Core->f.GetTexImage(target, level, format, type, pixels); |
| 491 | } |
| 492 | |
| 493 | inline const GLubyte * QOpenGLFunctions_4_0_Core::glGetString(GLenum name) |
| 494 | { |
| 495 | return d_1_0_Core->f.GetString(name); |
| 496 | } |
| 497 | |
| 498 | inline void QOpenGLFunctions_4_0_Core::glGetIntegerv(GLenum pname, GLint *params) |
| 499 | { |
| 500 | d_1_0_Core->f.GetIntegerv(pname, params); |
| 501 | } |
| 502 | |
| 503 | inline void QOpenGLFunctions_4_0_Core::glGetFloatv(GLenum pname, GLfloat *params) |
| 504 | { |
| 505 | d_1_0_Core->f.GetFloatv(pname, params); |
| 506 | } |
| 507 | |
| 508 | inline GLenum QOpenGLFunctions_4_0_Core::glGetError() |
| 509 | { |
| 510 | return d_1_0_Core->f.GetError(); |
| 511 | } |
| 512 | |
| 513 | inline void QOpenGLFunctions_4_0_Core::glGetDoublev(GLenum pname, GLdouble *params) |
| 514 | { |
| 515 | d_1_0_Core->f.GetDoublev(pname, params); |
| 516 | } |
| 517 | |
| 518 | inline void QOpenGLFunctions_4_0_Core::glGetBooleanv(GLenum pname, GLboolean *params) |
| 519 | { |
| 520 | d_1_0_Core->f.GetBooleanv(pname, params); |
| 521 | } |
| 522 | |
| 523 | inline void QOpenGLFunctions_4_0_Core::glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels) |
| 524 | { |
| 525 | d_1_0_Core->f.ReadPixels(x, y, width, height, format, type, pixels); |
| 526 | } |
| 527 | |
| 528 | inline void QOpenGLFunctions_4_0_Core::glReadBuffer(GLenum mode) |
| 529 | { |
| 530 | d_1_0_Core->f.ReadBuffer(mode); |
| 531 | } |
| 532 | |
| 533 | inline void QOpenGLFunctions_4_0_Core::glPixelStorei(GLenum pname, GLint param) |
| 534 | { |
| 535 | d_1_0_Core->f.PixelStorei(pname, param); |
| 536 | } |
| 537 | |
| 538 | inline void QOpenGLFunctions_4_0_Core::glPixelStoref(GLenum pname, GLfloat param) |
| 539 | { |
| 540 | d_1_0_Core->f.PixelStoref(pname, param); |
| 541 | } |
| 542 | |
| 543 | inline void QOpenGLFunctions_4_0_Core::glDepthFunc(GLenum func) |
| 544 | { |
| 545 | d_1_0_Core->f.DepthFunc(func); |
| 546 | } |
| 547 | |
| 548 | inline void QOpenGLFunctions_4_0_Core::glStencilOp(GLenum fail, GLenum zfail, GLenum zpass) |
| 549 | { |
| 550 | d_1_0_Core->f.StencilOp(fail, zfail, zpass); |
| 551 | } |
| 552 | |
| 553 | inline void QOpenGLFunctions_4_0_Core::glStencilFunc(GLenum func, GLint ref, GLuint mask) |
| 554 | { |
| 555 | d_1_0_Core->f.StencilFunc(func, ref, mask); |
| 556 | } |
| 557 | |
| 558 | inline void QOpenGLFunctions_4_0_Core::glLogicOp(GLenum opcode) |
| 559 | { |
| 560 | d_1_0_Core->f.LogicOp(opcode); |
| 561 | } |
| 562 | |
| 563 | inline void QOpenGLFunctions_4_0_Core::glBlendFunc(GLenum sfactor, GLenum dfactor) |
| 564 | { |
| 565 | d_1_0_Core->f.BlendFunc(sfactor, dfactor); |
| 566 | } |
| 567 | |
| 568 | inline void QOpenGLFunctions_4_0_Core::glFlush() |
| 569 | { |
| 570 | d_1_0_Core->f.Flush(); |
| 571 | } |
| 572 | |
| 573 | inline void QOpenGLFunctions_4_0_Core::glFinish() |
| 574 | { |
| 575 | d_1_0_Core->f.Finish(); |
| 576 | } |
| 577 | |
| 578 | inline void QOpenGLFunctions_4_0_Core::glEnable(GLenum cap) |
| 579 | { |
| 580 | d_1_0_Core->f.Enable(cap); |
| 581 | } |
| 582 | |
| 583 | inline void QOpenGLFunctions_4_0_Core::glDisable(GLenum cap) |
| 584 | { |
| 585 | d_1_0_Core->f.Disable(cap); |
| 586 | } |
| 587 | |
| 588 | inline void QOpenGLFunctions_4_0_Core::glDepthMask(GLboolean flag) |
| 589 | { |
| 590 | d_1_0_Core->f.DepthMask(flag); |
| 591 | } |
| 592 | |
| 593 | inline void QOpenGLFunctions_4_0_Core::glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) |
| 594 | { |
| 595 | d_1_0_Core->f.ColorMask(red, green, blue, alpha); |
| 596 | } |
| 597 | |
| 598 | inline void QOpenGLFunctions_4_0_Core::glStencilMask(GLuint mask) |
| 599 | { |
| 600 | d_1_0_Core->f.StencilMask(mask); |
| 601 | } |
| 602 | |
| 603 | inline void QOpenGLFunctions_4_0_Core::glClearDepth(GLdouble depth) |
| 604 | { |
| 605 | d_1_0_Core->f.ClearDepth(depth); |
| 606 | } |
| 607 | |
| 608 | inline void QOpenGLFunctions_4_0_Core::glClearStencil(GLint s) |
| 609 | { |
| 610 | d_1_0_Core->f.ClearStencil(s); |
| 611 | } |
| 612 | |
| 613 | inline void QOpenGLFunctions_4_0_Core::glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) |
| 614 | { |
| 615 | d_1_0_Core->f.ClearColor(red, green, blue, alpha); |
| 616 | } |
| 617 | |
| 618 | inline void QOpenGLFunctions_4_0_Core::glClear(GLbitfield mask) |
| 619 | { |
| 620 | d_1_0_Core->f.Clear(mask); |
| 621 | } |
| 622 | |
| 623 | inline void QOpenGLFunctions_4_0_Core::glDrawBuffer(GLenum mode) |
| 624 | { |
| 625 | d_1_0_Core->f.DrawBuffer(mode); |
| 626 | } |
| 627 | |
| 628 | inline void QOpenGLFunctions_4_0_Core::glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels) |
| 629 | { |
| 630 | d_1_0_Core->f.TexImage2D(target, level, internalformat, width, height, border, format, type, pixels); |
| 631 | } |
| 632 | |
| 633 | inline void QOpenGLFunctions_4_0_Core::glTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels) |
| 634 | { |
| 635 | d_1_0_Core->f.TexImage1D(target, level, internalformat, width, border, format, type, pixels); |
| 636 | } |
| 637 | |
| 638 | inline void QOpenGLFunctions_4_0_Core::glTexParameteriv(GLenum target, GLenum pname, const GLint *params) |
| 639 | { |
| 640 | d_1_0_Core->f.TexParameteriv(target, pname, params); |
| 641 | } |
| 642 | |
| 643 | inline void QOpenGLFunctions_4_0_Core::glTexParameteri(GLenum target, GLenum pname, GLint param) |
| 644 | { |
| 645 | d_1_0_Core->f.TexParameteri(target, pname, param); |
| 646 | } |
| 647 | |
| 648 | inline void QOpenGLFunctions_4_0_Core::glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params) |
| 649 | { |
| 650 | d_1_0_Core->f.TexParameterfv(target, pname, params); |
| 651 | } |
| 652 | |
| 653 | inline void QOpenGLFunctions_4_0_Core::glTexParameterf(GLenum target, GLenum pname, GLfloat param) |
| 654 | { |
| 655 | d_1_0_Core->f.TexParameterf(target, pname, param); |
| 656 | } |
| 657 | |
| 658 | inline void QOpenGLFunctions_4_0_Core::glScissor(GLint x, GLint y, GLsizei width, GLsizei height) |
| 659 | { |
| 660 | d_1_0_Core->f.Scissor(x, y, width, height); |
| 661 | } |
| 662 | |
| 663 | inline void QOpenGLFunctions_4_0_Core::glPolygonMode(GLenum face, GLenum mode) |
| 664 | { |
| 665 | d_1_0_Core->f.PolygonMode(face, mode); |
| 666 | } |
| 667 | |
| 668 | inline void QOpenGLFunctions_4_0_Core::glPointSize(GLfloat size) |
| 669 | { |
| 670 | d_1_0_Core->f.PointSize(size); |
| 671 | } |
| 672 | |
| 673 | inline void QOpenGLFunctions_4_0_Core::glLineWidth(GLfloat width) |
| 674 | { |
| 675 | d_1_0_Core->f.LineWidth(width); |
| 676 | } |
| 677 | |
| 678 | inline void QOpenGLFunctions_4_0_Core::glHint(GLenum target, GLenum mode) |
| 679 | { |
| 680 | d_1_0_Core->f.Hint(target, mode); |
| 681 | } |
| 682 | |
| 683 | inline void QOpenGLFunctions_4_0_Core::glFrontFace(GLenum mode) |
| 684 | { |
| 685 | d_1_0_Core->f.FrontFace(mode); |
| 686 | } |
| 687 | |
| 688 | inline void QOpenGLFunctions_4_0_Core::glCullFace(GLenum mode) |
| 689 | { |
| 690 | d_1_0_Core->f.CullFace(mode); |
| 691 | } |
| 692 | |
| 693 | |
| 694 | // OpenGL 1.1 core functions |
| 695 | inline GLboolean QOpenGLFunctions_4_0_Core::glIsTexture(GLuint texture) |
| 696 | { |
| 697 | return d_1_1_Core->f.IsTexture(texture); |
| 698 | } |
| 699 | |
| 700 | inline void QOpenGLFunctions_4_0_Core::glGenTextures(GLsizei n, GLuint *textures) |
| 701 | { |
| 702 | d_1_1_Core->f.GenTextures(n, textures); |
| 703 | } |
| 704 | |
| 705 | inline void QOpenGLFunctions_4_0_Core::glDeleteTextures(GLsizei n, const GLuint *textures) |
| 706 | { |
| 707 | d_1_1_Core->f.DeleteTextures(n, textures); |
| 708 | } |
| 709 | |
| 710 | inline void QOpenGLFunctions_4_0_Core::glBindTexture(GLenum target, GLuint texture) |
| 711 | { |
| 712 | d_1_1_Core->f.BindTexture(target, texture); |
| 713 | } |
| 714 | |
| 715 | inline void QOpenGLFunctions_4_0_Core::glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels) |
| 716 | { |
| 717 | d_1_1_Core->f.TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels); |
| 718 | } |
| 719 | |
| 720 | inline void QOpenGLFunctions_4_0_Core::glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels) |
| 721 | { |
| 722 | d_1_1_Core->f.TexSubImage1D(target, level, xoffset, width, format, type, pixels); |
| 723 | } |
| 724 | |
| 725 | inline void QOpenGLFunctions_4_0_Core::glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) |
| 726 | { |
| 727 | d_1_1_Core->f.CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height); |
| 728 | } |
| 729 | |
| 730 | inline void QOpenGLFunctions_4_0_Core::glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width) |
| 731 | { |
| 732 | d_1_1_Core->f.CopyTexSubImage1D(target, level, xoffset, x, y, width); |
| 733 | } |
| 734 | |
| 735 | inline void QOpenGLFunctions_4_0_Core::glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) |
| 736 | { |
| 737 | d_1_1_Core->f.CopyTexImage2D(target, level, internalformat, x, y, width, height, border); |
| 738 | } |
| 739 | |
| 740 | inline void QOpenGLFunctions_4_0_Core::glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border) |
| 741 | { |
| 742 | d_1_1_Core->f.CopyTexImage1D(target, level, internalformat, x, y, width, border); |
| 743 | } |
| 744 | |
| 745 | inline void QOpenGLFunctions_4_0_Core::glPolygonOffset(GLfloat factor, GLfloat units) |
| 746 | { |
| 747 | d_1_1_Core->f.PolygonOffset(factor, units); |
| 748 | } |
| 749 | |
| 750 | inline void QOpenGLFunctions_4_0_Core::glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) |
| 751 | { |
| 752 | d_1_1_Core->f.DrawElements(mode, count, type, indices); |
| 753 | } |
| 754 | |
| 755 | inline void QOpenGLFunctions_4_0_Core::glDrawArrays(GLenum mode, GLint first, GLsizei count) |
| 756 | { |
| 757 | d_1_1_Core->f.DrawArrays(mode, first, count); |
| 758 | } |
| 759 | |
| 760 | |
| 761 | // OpenGL 1.2 core functions |
| 762 | inline void QOpenGLFunctions_4_0_Core::glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height) |
| 763 | { |
| 764 | d_1_2_Core->f.CopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height); |
| 765 | } |
| 766 | |
| 767 | inline void QOpenGLFunctions_4_0_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) |
| 768 | { |
| 769 | d_1_2_Core->f.TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); |
| 770 | } |
| 771 | |
| 772 | inline void QOpenGLFunctions_4_0_Core::glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels) |
| 773 | { |
| 774 | d_1_2_Core->f.TexImage3D(target, level, internalformat, width, height, depth, border, format, type, pixels); |
| 775 | } |
| 776 | |
| 777 | inline void QOpenGLFunctions_4_0_Core::glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices) |
| 778 | { |
| 779 | d_1_2_Core->f.DrawRangeElements(mode, start, end, count, type, indices); |
| 780 | } |
| 781 | |
| 782 | inline void QOpenGLFunctions_4_0_Core::glBlendEquation(GLenum mode) |
| 783 | { |
| 784 | d_1_2_Core->f.BlendEquation(mode); |
| 785 | } |
| 786 | |
| 787 | inline void QOpenGLFunctions_4_0_Core::glBlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) |
| 788 | { |
| 789 | d_1_2_Core->f.BlendColor(red, green, blue, alpha); |
| 790 | } |
| 791 | |
| 792 | |
| 793 | // OpenGL 1.3 core functions |
| 794 | inline void QOpenGLFunctions_4_0_Core::glGetCompressedTexImage(GLenum target, GLint level, GLvoid *img) |
| 795 | { |
| 796 | d_1_3_Core->f.GetCompressedTexImage(target, level, img); |
| 797 | } |
| 798 | |
| 799 | inline void QOpenGLFunctions_4_0_Core::glCompressedTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data) |
| 800 | { |
| 801 | d_1_3_Core->f.CompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data); |
| 802 | } |
| 803 | |
| 804 | inline void QOpenGLFunctions_4_0_Core::glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data) |
| 805 | { |
| 806 | d_1_3_Core->f.CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data); |
| 807 | } |
| 808 | |
| 809 | inline void QOpenGLFunctions_4_0_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) |
| 810 | { |
| 811 | d_1_3_Core->f.CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); |
| 812 | } |
| 813 | |
| 814 | inline void QOpenGLFunctions_4_0_Core::glCompressedTexImage1D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data) |
| 815 | { |
| 816 | d_1_3_Core->f.CompressedTexImage1D(target, level, internalformat, width, border, imageSize, data); |
| 817 | } |
| 818 | |
| 819 | inline void QOpenGLFunctions_4_0_Core::glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data) |
| 820 | { |
| 821 | d_1_3_Core->f.CompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data); |
| 822 | } |
| 823 | |
| 824 | inline void QOpenGLFunctions_4_0_Core::glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data) |
| 825 | { |
| 826 | d_1_3_Core->f.CompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data); |
| 827 | } |
| 828 | |
| 829 | inline void QOpenGLFunctions_4_0_Core::glSampleCoverage(GLfloat value, GLboolean invert) |
| 830 | { |
| 831 | d_1_3_Core->f.SampleCoverage(value, invert); |
| 832 | } |
| 833 | |
| 834 | inline void QOpenGLFunctions_4_0_Core::glActiveTexture(GLenum texture) |
| 835 | { |
| 836 | d_1_3_Core->f.ActiveTexture(texture); |
| 837 | } |
| 838 | |
| 839 | |
| 840 | // OpenGL 1.4 core functions |
| 841 | inline void QOpenGLFunctions_4_0_Core::glPointParameteriv(GLenum pname, const GLint *params) |
| 842 | { |
| 843 | d_1_4_Core->f.PointParameteriv(pname, params); |
| 844 | } |
| 845 | |
| 846 | inline void QOpenGLFunctions_4_0_Core::glPointParameteri(GLenum pname, GLint param) |
| 847 | { |
| 848 | d_1_4_Core->f.PointParameteri(pname, param); |
| 849 | } |
| 850 | |
| 851 | inline void QOpenGLFunctions_4_0_Core::glPointParameterfv(GLenum pname, const GLfloat *params) |
| 852 | { |
| 853 | d_1_4_Core->f.PointParameterfv(pname, params); |
| 854 | } |
| 855 | |
| 856 | inline void QOpenGLFunctions_4_0_Core::glPointParameterf(GLenum pname, GLfloat param) |
| 857 | { |
| 858 | d_1_4_Core->f.PointParameterf(pname, param); |
| 859 | } |
| 860 | |
| 861 | inline void QOpenGLFunctions_4_0_Core::glMultiDrawElements(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount) |
| 862 | { |
| 863 | d_1_4_Core->f.MultiDrawElements(mode, count, type, indices, drawcount); |
| 864 | } |
| 865 | |
| 866 | inline void QOpenGLFunctions_4_0_Core::glMultiDrawArrays(GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount) |
| 867 | { |
| 868 | d_1_4_Core->f.MultiDrawArrays(mode, first, count, drawcount); |
| 869 | } |
| 870 | |
| 871 | inline void QOpenGLFunctions_4_0_Core::glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha) |
| 872 | { |
| 873 | d_1_4_Core->f.BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); |
| 874 | } |
| 875 | |
| 876 | |
| 877 | // OpenGL 1.5 core functions |
| 878 | inline void QOpenGLFunctions_4_0_Core::glGetBufferPointerv(GLenum target, GLenum pname, GLvoid* *params) |
| 879 | { |
| 880 | d_1_5_Core->f.GetBufferPointerv(target, pname, params); |
| 881 | } |
| 882 | |
| 883 | inline void QOpenGLFunctions_4_0_Core::glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params) |
| 884 | { |
| 885 | d_1_5_Core->f.GetBufferParameteriv(target, pname, params); |
| 886 | } |
| 887 | |
| 888 | inline GLboolean QOpenGLFunctions_4_0_Core::glUnmapBuffer(GLenum target) |
| 889 | { |
| 890 | return d_1_5_Core->f.UnmapBuffer(target); |
| 891 | } |
| 892 | |
| 893 | inline GLvoid* QOpenGLFunctions_4_0_Core::glMapBuffer(GLenum target, GLenum access) |
| 894 | { |
| 895 | return d_1_5_Core->f.MapBuffer(target, access); |
| 896 | } |
| 897 | |
| 898 | inline void QOpenGLFunctions_4_0_Core::glGetBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data) |
| 899 | { |
| 900 | d_1_5_Core->f.GetBufferSubData(target, offset, size, data); |
| 901 | } |
| 902 | |
| 903 | inline void QOpenGLFunctions_4_0_Core::glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data) |
| 904 | { |
| 905 | d_1_5_Core->f.BufferSubData(target, offset, size, data); |
| 906 | } |
| 907 | |
| 908 | inline void QOpenGLFunctions_4_0_Core::glBufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage) |
| 909 | { |
| 910 | d_1_5_Core->f.BufferData(target, size, data, usage); |
| 911 | } |
| 912 | |
| 913 | inline GLboolean QOpenGLFunctions_4_0_Core::glIsBuffer(GLuint buffer) |
| 914 | { |
| 915 | return d_1_5_Core->f.IsBuffer(buffer); |
| 916 | } |
| 917 | |
| 918 | inline void QOpenGLFunctions_4_0_Core::glGenBuffers(GLsizei n, GLuint *buffers) |
| 919 | { |
| 920 | d_1_5_Core->f.GenBuffers(n, buffers); |
| 921 | } |
| 922 | |
| 923 | inline void QOpenGLFunctions_4_0_Core::glDeleteBuffers(GLsizei n, const GLuint *buffers) |
| 924 | { |
| 925 | d_1_5_Core->f.DeleteBuffers(n, buffers); |
| 926 | } |
| 927 | |
| 928 | inline void QOpenGLFunctions_4_0_Core::glBindBuffer(GLenum target, GLuint buffer) |
| 929 | { |
| 930 | d_1_5_Core->f.BindBuffer(target, buffer); |
| 931 | } |
| 932 | |
| 933 | inline void QOpenGLFunctions_4_0_Core::glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params) |
| 934 | { |
| 935 | d_1_5_Core->f.GetQueryObjectuiv(id, pname, params); |
| 936 | } |
| 937 | |
| 938 | inline void QOpenGLFunctions_4_0_Core::glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params) |
| 939 | { |
| 940 | d_1_5_Core->f.GetQueryObjectiv(id, pname, params); |
| 941 | } |
| 942 | |
| 943 | inline void QOpenGLFunctions_4_0_Core::glGetQueryiv(GLenum target, GLenum pname, GLint *params) |
| 944 | { |
| 945 | d_1_5_Core->f.GetQueryiv(target, pname, params); |
| 946 | } |
| 947 | |
| 948 | inline void QOpenGLFunctions_4_0_Core::glEndQuery(GLenum target) |
| 949 | { |
| 950 | d_1_5_Core->f.EndQuery(target); |
| 951 | } |
| 952 | |
| 953 | inline void QOpenGLFunctions_4_0_Core::glBeginQuery(GLenum target, GLuint id) |
| 954 | { |
| 955 | d_1_5_Core->f.BeginQuery(target, id); |
| 956 | } |
| 957 | |
| 958 | inline GLboolean QOpenGLFunctions_4_0_Core::glIsQuery(GLuint id) |
| 959 | { |
| 960 | return d_1_5_Core->f.IsQuery(id); |
| 961 | } |
| 962 | |
| 963 | inline void QOpenGLFunctions_4_0_Core::glDeleteQueries(GLsizei n, const GLuint *ids) |
| 964 | { |
| 965 | d_1_5_Core->f.DeleteQueries(n, ids); |
| 966 | } |
| 967 | |
| 968 | inline void QOpenGLFunctions_4_0_Core::glGenQueries(GLsizei n, GLuint *ids) |
| 969 | { |
| 970 | d_1_5_Core->f.GenQueries(n, ids); |
| 971 | } |
| 972 | |
| 973 | |
| 974 | // OpenGL 2.0 core functions |
| 975 | inline void QOpenGLFunctions_4_0_Core::glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer) |
| 976 | { |
| 977 | d_2_0_Core->f.VertexAttribPointer(index, size, type, normalized, stride, pointer); |
| 978 | } |
| 979 | |
| 980 | inline void QOpenGLFunctions_4_0_Core::glValidateProgram(GLuint program) |
| 981 | { |
| 982 | d_2_0_Core->f.ValidateProgram(program); |
| 983 | } |
| 984 | |
| 985 | inline void QOpenGLFunctions_4_0_Core::glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 986 | { |
| 987 | d_2_0_Core->f.UniformMatrix4fv(location, count, transpose, value); |
| 988 | } |
| 989 | |
| 990 | inline void QOpenGLFunctions_4_0_Core::glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 991 | { |
| 992 | d_2_0_Core->f.UniformMatrix3fv(location, count, transpose, value); |
| 993 | } |
| 994 | |
| 995 | inline void QOpenGLFunctions_4_0_Core::glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 996 | { |
| 997 | d_2_0_Core->f.UniformMatrix2fv(location, count, transpose, value); |
| 998 | } |
| 999 | |
| 1000 | inline void QOpenGLFunctions_4_0_Core::glUniform4iv(GLint location, GLsizei count, const GLint *value) |
| 1001 | { |
| 1002 | d_2_0_Core->f.Uniform4iv(location, count, value); |
| 1003 | } |
| 1004 | |
| 1005 | inline void QOpenGLFunctions_4_0_Core::glUniform3iv(GLint location, GLsizei count, const GLint *value) |
| 1006 | { |
| 1007 | d_2_0_Core->f.Uniform3iv(location, count, value); |
| 1008 | } |
| 1009 | |
| 1010 | inline void QOpenGLFunctions_4_0_Core::glUniform2iv(GLint location, GLsizei count, const GLint *value) |
| 1011 | { |
| 1012 | d_2_0_Core->f.Uniform2iv(location, count, value); |
| 1013 | } |
| 1014 | |
| 1015 | inline void QOpenGLFunctions_4_0_Core::glUniform1iv(GLint location, GLsizei count, const GLint *value) |
| 1016 | { |
| 1017 | d_2_0_Core->f.Uniform1iv(location, count, value); |
| 1018 | } |
| 1019 | |
| 1020 | inline void QOpenGLFunctions_4_0_Core::glUniform4fv(GLint location, GLsizei count, const GLfloat *value) |
| 1021 | { |
| 1022 | d_2_0_Core->f.Uniform4fv(location, count, value); |
| 1023 | } |
| 1024 | |
| 1025 | inline void QOpenGLFunctions_4_0_Core::glUniform3fv(GLint location, GLsizei count, const GLfloat *value) |
| 1026 | { |
| 1027 | d_2_0_Core->f.Uniform3fv(location, count, value); |
| 1028 | } |
| 1029 | |
| 1030 | inline void QOpenGLFunctions_4_0_Core::glUniform2fv(GLint location, GLsizei count, const GLfloat *value) |
| 1031 | { |
| 1032 | d_2_0_Core->f.Uniform2fv(location, count, value); |
| 1033 | } |
| 1034 | |
| 1035 | inline void QOpenGLFunctions_4_0_Core::glUniform1fv(GLint location, GLsizei count, const GLfloat *value) |
| 1036 | { |
| 1037 | d_2_0_Core->f.Uniform1fv(location, count, value); |
| 1038 | } |
| 1039 | |
| 1040 | inline void QOpenGLFunctions_4_0_Core::glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3) |
| 1041 | { |
| 1042 | d_2_0_Core->f.Uniform4i(location, v0, v1, v2, v3); |
| 1043 | } |
| 1044 | |
| 1045 | inline void QOpenGLFunctions_4_0_Core::glUniform3i(GLint location, GLint v0, GLint v1, GLint v2) |
| 1046 | { |
| 1047 | d_2_0_Core->f.Uniform3i(location, v0, v1, v2); |
| 1048 | } |
| 1049 | |
| 1050 | inline void QOpenGLFunctions_4_0_Core::glUniform2i(GLint location, GLint v0, GLint v1) |
| 1051 | { |
| 1052 | d_2_0_Core->f.Uniform2i(location, v0, v1); |
| 1053 | } |
| 1054 | |
| 1055 | inline void QOpenGLFunctions_4_0_Core::glUniform1i(GLint location, GLint v0) |
| 1056 | { |
| 1057 | d_2_0_Core->f.Uniform1i(location, v0); |
| 1058 | } |
| 1059 | |
| 1060 | inline void QOpenGLFunctions_4_0_Core::glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) |
| 1061 | { |
| 1062 | d_2_0_Core->f.Uniform4f(location, v0, v1, v2, v3); |
| 1063 | } |
| 1064 | |
| 1065 | inline void QOpenGLFunctions_4_0_Core::glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2) |
| 1066 | { |
| 1067 | d_2_0_Core->f.Uniform3f(location, v0, v1, v2); |
| 1068 | } |
| 1069 | |
| 1070 | inline void QOpenGLFunctions_4_0_Core::glUniform2f(GLint location, GLfloat v0, GLfloat v1) |
| 1071 | { |
| 1072 | d_2_0_Core->f.Uniform2f(location, v0, v1); |
| 1073 | } |
| 1074 | |
| 1075 | inline void QOpenGLFunctions_4_0_Core::glUniform1f(GLint location, GLfloat v0) |
| 1076 | { |
| 1077 | d_2_0_Core->f.Uniform1f(location, v0); |
| 1078 | } |
| 1079 | |
| 1080 | inline void QOpenGLFunctions_4_0_Core::glUseProgram(GLuint program) |
| 1081 | { |
| 1082 | d_2_0_Core->f.UseProgram(program); |
| 1083 | } |
| 1084 | |
| 1085 | inline void QOpenGLFunctions_4_0_Core::glShaderSource(GLuint shader, GLsizei count, const GLchar* const *string, const GLint *length) |
| 1086 | { |
| 1087 | d_2_0_Core->f.ShaderSource(shader, count, string, length); |
| 1088 | } |
| 1089 | |
| 1090 | inline void QOpenGLFunctions_4_0_Core::glLinkProgram(GLuint program) |
| 1091 | { |
| 1092 | d_2_0_Core->f.LinkProgram(program); |
| 1093 | } |
| 1094 | |
| 1095 | inline GLboolean QOpenGLFunctions_4_0_Core::glIsShader(GLuint shader) |
| 1096 | { |
| 1097 | return d_2_0_Core->f.IsShader(shader); |
| 1098 | } |
| 1099 | |
| 1100 | inline GLboolean QOpenGLFunctions_4_0_Core::glIsProgram(GLuint program) |
| 1101 | { |
| 1102 | return d_2_0_Core->f.IsProgram(program); |
| 1103 | } |
| 1104 | |
| 1105 | inline void QOpenGLFunctions_4_0_Core::glGetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid* *pointer) |
| 1106 | { |
| 1107 | d_2_0_Core->f.GetVertexAttribPointerv(index, pname, pointer); |
| 1108 | } |
| 1109 | |
| 1110 | inline void QOpenGLFunctions_4_0_Core::glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params) |
| 1111 | { |
| 1112 | d_2_0_Core->f.GetVertexAttribiv(index, pname, params); |
| 1113 | } |
| 1114 | |
| 1115 | inline void QOpenGLFunctions_4_0_Core::glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params) |
| 1116 | { |
| 1117 | d_2_0_Core->f.GetVertexAttribfv(index, pname, params); |
| 1118 | } |
| 1119 | |
| 1120 | inline void QOpenGLFunctions_4_0_Core::glGetVertexAttribdv(GLuint index, GLenum pname, GLdouble *params) |
| 1121 | { |
| 1122 | d_2_0_Core->f.GetVertexAttribdv(index, pname, params); |
| 1123 | } |
| 1124 | |
| 1125 | inline void QOpenGLFunctions_4_0_Core::glGetUniformiv(GLuint program, GLint location, GLint *params) |
| 1126 | { |
| 1127 | d_2_0_Core->f.GetUniformiv(program, location, params); |
| 1128 | } |
| 1129 | |
| 1130 | inline void QOpenGLFunctions_4_0_Core::glGetUniformfv(GLuint program, GLint location, GLfloat *params) |
| 1131 | { |
| 1132 | d_2_0_Core->f.GetUniformfv(program, location, params); |
| 1133 | } |
| 1134 | |
| 1135 | inline GLint QOpenGLFunctions_4_0_Core::glGetUniformLocation(GLuint program, const GLchar *name) |
| 1136 | { |
| 1137 | return d_2_0_Core->f.GetUniformLocation(program, name); |
| 1138 | } |
| 1139 | |
| 1140 | inline void QOpenGLFunctions_4_0_Core::glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source) |
| 1141 | { |
| 1142 | d_2_0_Core->f.GetShaderSource(shader, bufSize, length, source); |
| 1143 | } |
| 1144 | |
| 1145 | inline void QOpenGLFunctions_4_0_Core::glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog) |
| 1146 | { |
| 1147 | d_2_0_Core->f.GetShaderInfoLog(shader, bufSize, length, infoLog); |
| 1148 | } |
| 1149 | |
| 1150 | inline void QOpenGLFunctions_4_0_Core::glGetShaderiv(GLuint shader, GLenum pname, GLint *params) |
| 1151 | { |
| 1152 | d_2_0_Core->f.GetShaderiv(shader, pname, params); |
| 1153 | } |
| 1154 | |
| 1155 | inline void QOpenGLFunctions_4_0_Core::glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog) |
| 1156 | { |
| 1157 | d_2_0_Core->f.GetProgramInfoLog(program, bufSize, length, infoLog); |
| 1158 | } |
| 1159 | |
| 1160 | inline void QOpenGLFunctions_4_0_Core::glGetProgramiv(GLuint program, GLenum pname, GLint *params) |
| 1161 | { |
| 1162 | d_2_0_Core->f.GetProgramiv(program, pname, params); |
| 1163 | } |
| 1164 | |
| 1165 | inline GLint QOpenGLFunctions_4_0_Core::glGetAttribLocation(GLuint program, const GLchar *name) |
| 1166 | { |
| 1167 | return d_2_0_Core->f.GetAttribLocation(program, name); |
| 1168 | } |
| 1169 | |
| 1170 | inline void QOpenGLFunctions_4_0_Core::glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj) |
| 1171 | { |
| 1172 | d_2_0_Core->f.GetAttachedShaders(program, maxCount, count, obj); |
| 1173 | } |
| 1174 | |
| 1175 | inline void QOpenGLFunctions_4_0_Core::glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name) |
| 1176 | { |
| 1177 | d_2_0_Core->f.GetActiveUniform(program, index, bufSize, length, size, type, name); |
| 1178 | } |
| 1179 | |
| 1180 | inline void QOpenGLFunctions_4_0_Core::glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name) |
| 1181 | { |
| 1182 | d_2_0_Core->f.GetActiveAttrib(program, index, bufSize, length, size, type, name); |
| 1183 | } |
| 1184 | |
| 1185 | inline void QOpenGLFunctions_4_0_Core::glEnableVertexAttribArray(GLuint index) |
| 1186 | { |
| 1187 | d_2_0_Core->f.EnableVertexAttribArray(index); |
| 1188 | } |
| 1189 | |
| 1190 | inline void QOpenGLFunctions_4_0_Core::glDisableVertexAttribArray(GLuint index) |
| 1191 | { |
| 1192 | d_2_0_Core->f.DisableVertexAttribArray(index); |
| 1193 | } |
| 1194 | |
| 1195 | inline void QOpenGLFunctions_4_0_Core::glDetachShader(GLuint program, GLuint shader) |
| 1196 | { |
| 1197 | d_2_0_Core->f.DetachShader(program, shader); |
| 1198 | } |
| 1199 | |
| 1200 | inline void QOpenGLFunctions_4_0_Core::glDeleteShader(GLuint shader) |
| 1201 | { |
| 1202 | d_2_0_Core->f.DeleteShader(shader); |
| 1203 | } |
| 1204 | |
| 1205 | inline void QOpenGLFunctions_4_0_Core::glDeleteProgram(GLuint program) |
| 1206 | { |
| 1207 | d_2_0_Core->f.DeleteProgram(program); |
| 1208 | } |
| 1209 | |
| 1210 | inline GLuint QOpenGLFunctions_4_0_Core::glCreateShader(GLenum type) |
| 1211 | { |
| 1212 | return d_2_0_Core->f.CreateShader(type); |
| 1213 | } |
| 1214 | |
| 1215 | inline GLuint QOpenGLFunctions_4_0_Core::glCreateProgram() |
| 1216 | { |
| 1217 | return d_2_0_Core->f.CreateProgram(); |
| 1218 | } |
| 1219 | |
| 1220 | inline void QOpenGLFunctions_4_0_Core::glCompileShader(GLuint shader) |
| 1221 | { |
| 1222 | d_2_0_Core->f.CompileShader(shader); |
| 1223 | } |
| 1224 | |
| 1225 | inline void QOpenGLFunctions_4_0_Core::glBindAttribLocation(GLuint program, GLuint index, const GLchar *name) |
| 1226 | { |
| 1227 | d_2_0_Core->f.BindAttribLocation(program, index, name); |
| 1228 | } |
| 1229 | |
| 1230 | inline void QOpenGLFunctions_4_0_Core::glAttachShader(GLuint program, GLuint shader) |
| 1231 | { |
| 1232 | d_2_0_Core->f.AttachShader(program, shader); |
| 1233 | } |
| 1234 | |
| 1235 | inline void QOpenGLFunctions_4_0_Core::glStencilMaskSeparate(GLenum face, GLuint mask) |
| 1236 | { |
| 1237 | d_2_0_Core->f.StencilMaskSeparate(face, mask); |
| 1238 | } |
| 1239 | |
| 1240 | inline void QOpenGLFunctions_4_0_Core::glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) |
| 1241 | { |
| 1242 | d_2_0_Core->f.StencilFuncSeparate(face, func, ref, mask); |
| 1243 | } |
| 1244 | |
| 1245 | inline void QOpenGLFunctions_4_0_Core::glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass) |
| 1246 | { |
| 1247 | d_2_0_Core->f.StencilOpSeparate(face, sfail, dpfail, dppass); |
| 1248 | } |
| 1249 | |
| 1250 | inline void QOpenGLFunctions_4_0_Core::glDrawBuffers(GLsizei n, const GLenum *bufs) |
| 1251 | { |
| 1252 | d_2_0_Core->f.DrawBuffers(n, bufs); |
| 1253 | } |
| 1254 | |
| 1255 | inline void QOpenGLFunctions_4_0_Core::glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) |
| 1256 | { |
| 1257 | d_2_0_Core->f.BlendEquationSeparate(modeRGB, modeAlpha); |
| 1258 | } |
| 1259 | |
| 1260 | |
| 1261 | // OpenGL 2.1 core functions |
| 1262 | inline void QOpenGLFunctions_4_0_Core::glUniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 1263 | { |
| 1264 | d_2_1_Core->f.UniformMatrix4x3fv(location, count, transpose, value); |
| 1265 | } |
| 1266 | |
| 1267 | inline void QOpenGLFunctions_4_0_Core::glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 1268 | { |
| 1269 | d_2_1_Core->f.UniformMatrix3x4fv(location, count, transpose, value); |
| 1270 | } |
| 1271 | |
| 1272 | inline void QOpenGLFunctions_4_0_Core::glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 1273 | { |
| 1274 | d_2_1_Core->f.UniformMatrix4x2fv(location, count, transpose, value); |
| 1275 | } |
| 1276 | |
| 1277 | inline void QOpenGLFunctions_4_0_Core::glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 1278 | { |
| 1279 | d_2_1_Core->f.UniformMatrix2x4fv(location, count, transpose, value); |
| 1280 | } |
| 1281 | |
| 1282 | inline void QOpenGLFunctions_4_0_Core::glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 1283 | { |
| 1284 | d_2_1_Core->f.UniformMatrix3x2fv(location, count, transpose, value); |
| 1285 | } |
| 1286 | |
| 1287 | inline void QOpenGLFunctions_4_0_Core::glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 1288 | { |
| 1289 | d_2_1_Core->f.UniformMatrix2x3fv(location, count, transpose, value); |
| 1290 | } |
| 1291 | |
| 1292 | |
| 1293 | // OpenGL 3.0 core functions |
| 1294 | inline GLboolean QOpenGLFunctions_4_0_Core::glIsVertexArray(GLuint array) |
| 1295 | { |
| 1296 | return d_3_0_Core->f.IsVertexArray(array); |
| 1297 | } |
| 1298 | |
| 1299 | inline void QOpenGLFunctions_4_0_Core::glGenVertexArrays(GLsizei n, GLuint *arrays) |
| 1300 | { |
| 1301 | d_3_0_Core->f.GenVertexArrays(n, arrays); |
| 1302 | } |
| 1303 | |
| 1304 | inline void QOpenGLFunctions_4_0_Core::glDeleteVertexArrays(GLsizei n, const GLuint *arrays) |
| 1305 | { |
| 1306 | d_3_0_Core->f.DeleteVertexArrays(n, arrays); |
| 1307 | } |
| 1308 | |
| 1309 | inline void QOpenGLFunctions_4_0_Core::glBindVertexArray(GLuint array) |
| 1310 | { |
| 1311 | d_3_0_Core->f.BindVertexArray(array); |
| 1312 | } |
| 1313 | |
| 1314 | inline void QOpenGLFunctions_4_0_Core::glFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length) |
| 1315 | { |
| 1316 | d_3_0_Core->f.FlushMappedBufferRange(target, offset, length); |
| 1317 | } |
| 1318 | |
| 1319 | inline GLvoid* QOpenGLFunctions_4_0_Core::glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access) |
| 1320 | { |
| 1321 | return d_3_0_Core->f.MapBufferRange(target, offset, length, access); |
| 1322 | } |
| 1323 | |
| 1324 | inline void QOpenGLFunctions_4_0_Core::glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer) |
| 1325 | { |
| 1326 | d_3_0_Core->f.FramebufferTextureLayer(target, attachment, texture, level, layer); |
| 1327 | } |
| 1328 | |
| 1329 | inline void QOpenGLFunctions_4_0_Core::glRenderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height) |
| 1330 | { |
| 1331 | d_3_0_Core->f.RenderbufferStorageMultisample(target, samples, internalformat, width, height); |
| 1332 | } |
| 1333 | |
| 1334 | inline void QOpenGLFunctions_4_0_Core::glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) |
| 1335 | { |
| 1336 | d_3_0_Core->f.BlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); |
| 1337 | } |
| 1338 | |
| 1339 | inline void QOpenGLFunctions_4_0_Core::glGenerateMipmap(GLenum target) |
| 1340 | { |
| 1341 | d_3_0_Core->f.GenerateMipmap(target); |
| 1342 | } |
| 1343 | |
| 1344 | inline void QOpenGLFunctions_4_0_Core::glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params) |
| 1345 | { |
| 1346 | d_3_0_Core->f.GetFramebufferAttachmentParameteriv(target, attachment, pname, params); |
| 1347 | } |
| 1348 | |
| 1349 | inline void QOpenGLFunctions_4_0_Core::glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) |
| 1350 | { |
| 1351 | d_3_0_Core->f.FramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer); |
| 1352 | } |
| 1353 | |
| 1354 | inline void QOpenGLFunctions_4_0_Core::glFramebufferTexture3D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset) |
| 1355 | { |
| 1356 | d_3_0_Core->f.FramebufferTexture3D(target, attachment, textarget, texture, level, zoffset); |
| 1357 | } |
| 1358 | |
| 1359 | inline void QOpenGLFunctions_4_0_Core::glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) |
| 1360 | { |
| 1361 | d_3_0_Core->f.FramebufferTexture2D(target, attachment, textarget, texture, level); |
| 1362 | } |
| 1363 | |
| 1364 | inline void QOpenGLFunctions_4_0_Core::glFramebufferTexture1D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) |
| 1365 | { |
| 1366 | d_3_0_Core->f.FramebufferTexture1D(target, attachment, textarget, texture, level); |
| 1367 | } |
| 1368 | |
| 1369 | inline GLenum QOpenGLFunctions_4_0_Core::glCheckFramebufferStatus(GLenum target) |
| 1370 | { |
| 1371 | return d_3_0_Core->f.CheckFramebufferStatus(target); |
| 1372 | } |
| 1373 | |
| 1374 | inline void QOpenGLFunctions_4_0_Core::glGenFramebuffers(GLsizei n, GLuint *framebuffers) |
| 1375 | { |
| 1376 | d_3_0_Core->f.GenFramebuffers(n, framebuffers); |
| 1377 | } |
| 1378 | |
| 1379 | inline void QOpenGLFunctions_4_0_Core::glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers) |
| 1380 | { |
| 1381 | d_3_0_Core->f.DeleteFramebuffers(n, framebuffers); |
| 1382 | } |
| 1383 | |
| 1384 | inline void QOpenGLFunctions_4_0_Core::glBindFramebuffer(GLenum target, GLuint framebuffer) |
| 1385 | { |
| 1386 | d_3_0_Core->f.BindFramebuffer(target, framebuffer); |
| 1387 | } |
| 1388 | |
| 1389 | inline GLboolean QOpenGLFunctions_4_0_Core::glIsFramebuffer(GLuint framebuffer) |
| 1390 | { |
| 1391 | return d_3_0_Core->f.IsFramebuffer(framebuffer); |
| 1392 | } |
| 1393 | |
| 1394 | inline void QOpenGLFunctions_4_0_Core::glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params) |
| 1395 | { |
| 1396 | d_3_0_Core->f.GetRenderbufferParameteriv(target, pname, params); |
| 1397 | } |
| 1398 | |
| 1399 | inline void QOpenGLFunctions_4_0_Core::glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) |
| 1400 | { |
| 1401 | d_3_0_Core->f.RenderbufferStorage(target, internalformat, width, height); |
| 1402 | } |
| 1403 | |
| 1404 | inline void QOpenGLFunctions_4_0_Core::glGenRenderbuffers(GLsizei n, GLuint *renderbuffers) |
| 1405 | { |
| 1406 | d_3_0_Core->f.GenRenderbuffers(n, renderbuffers); |
| 1407 | } |
| 1408 | |
| 1409 | inline void QOpenGLFunctions_4_0_Core::glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers) |
| 1410 | { |
| 1411 | d_3_0_Core->f.DeleteRenderbuffers(n, renderbuffers); |
| 1412 | } |
| 1413 | |
| 1414 | inline void QOpenGLFunctions_4_0_Core::glBindRenderbuffer(GLenum target, GLuint renderbuffer) |
| 1415 | { |
| 1416 | d_3_0_Core->f.BindRenderbuffer(target, renderbuffer); |
| 1417 | } |
| 1418 | |
| 1419 | inline GLboolean QOpenGLFunctions_4_0_Core::glIsRenderbuffer(GLuint renderbuffer) |
| 1420 | { |
| 1421 | return d_3_0_Core->f.IsRenderbuffer(renderbuffer); |
| 1422 | } |
| 1423 | |
| 1424 | inline const GLubyte * QOpenGLFunctions_4_0_Core::glGetStringi(GLenum name, GLuint index) |
| 1425 | { |
| 1426 | return d_3_0_Core->f.GetStringi(name, index); |
| 1427 | } |
| 1428 | |
| 1429 | inline void QOpenGLFunctions_4_0_Core::glClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil) |
| 1430 | { |
| 1431 | d_3_0_Core->f.ClearBufferfi(buffer, drawbuffer, depth, stencil); |
| 1432 | } |
| 1433 | |
| 1434 | inline void QOpenGLFunctions_4_0_Core::glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value) |
| 1435 | { |
| 1436 | d_3_0_Core->f.ClearBufferfv(buffer, drawbuffer, value); |
| 1437 | } |
| 1438 | |
| 1439 | inline void QOpenGLFunctions_4_0_Core::glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value) |
| 1440 | { |
| 1441 | d_3_0_Core->f.ClearBufferuiv(buffer, drawbuffer, value); |
| 1442 | } |
| 1443 | |
| 1444 | inline void QOpenGLFunctions_4_0_Core::glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value) |
| 1445 | { |
| 1446 | d_3_0_Core->f.ClearBufferiv(buffer, drawbuffer, value); |
| 1447 | } |
| 1448 | |
| 1449 | inline void QOpenGLFunctions_4_0_Core::glGetTexParameterIuiv(GLenum target, GLenum pname, GLuint *params) |
| 1450 | { |
| 1451 | d_3_0_Core->f.GetTexParameterIuiv(target, pname, params); |
| 1452 | } |
| 1453 | |
| 1454 | inline void QOpenGLFunctions_4_0_Core::glGetTexParameterIiv(GLenum target, GLenum pname, GLint *params) |
| 1455 | { |
| 1456 | d_3_0_Core->f.GetTexParameterIiv(target, pname, params); |
| 1457 | } |
| 1458 | |
| 1459 | inline void QOpenGLFunctions_4_0_Core::glTexParameterIuiv(GLenum target, GLenum pname, const GLuint *params) |
| 1460 | { |
| 1461 | d_3_0_Core->f.TexParameterIuiv(target, pname, params); |
| 1462 | } |
| 1463 | |
| 1464 | inline void QOpenGLFunctions_4_0_Core::glTexParameterIiv(GLenum target, GLenum pname, const GLint *params) |
| 1465 | { |
| 1466 | d_3_0_Core->f.TexParameterIiv(target, pname, params); |
| 1467 | } |
| 1468 | |
| 1469 | inline void QOpenGLFunctions_4_0_Core::glUniform4uiv(GLint location, GLsizei count, const GLuint *value) |
| 1470 | { |
| 1471 | d_3_0_Core->f.Uniform4uiv(location, count, value); |
| 1472 | } |
| 1473 | |
| 1474 | inline void QOpenGLFunctions_4_0_Core::glUniform3uiv(GLint location, GLsizei count, const GLuint *value) |
| 1475 | { |
| 1476 | d_3_0_Core->f.Uniform3uiv(location, count, value); |
| 1477 | } |
| 1478 | |
| 1479 | inline void QOpenGLFunctions_4_0_Core::glUniform2uiv(GLint location, GLsizei count, const GLuint *value) |
| 1480 | { |
| 1481 | d_3_0_Core->f.Uniform2uiv(location, count, value); |
| 1482 | } |
| 1483 | |
| 1484 | inline void QOpenGLFunctions_4_0_Core::glUniform1uiv(GLint location, GLsizei count, const GLuint *value) |
| 1485 | { |
| 1486 | d_3_0_Core->f.Uniform1uiv(location, count, value); |
| 1487 | } |
| 1488 | |
| 1489 | inline void QOpenGLFunctions_4_0_Core::glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) |
| 1490 | { |
| 1491 | d_3_0_Core->f.Uniform4ui(location, v0, v1, v2, v3); |
| 1492 | } |
| 1493 | |
| 1494 | inline void QOpenGLFunctions_4_0_Core::glUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2) |
| 1495 | { |
| 1496 | d_3_0_Core->f.Uniform3ui(location, v0, v1, v2); |
| 1497 | } |
| 1498 | |
| 1499 | inline void QOpenGLFunctions_4_0_Core::glUniform2ui(GLint location, GLuint v0, GLuint v1) |
| 1500 | { |
| 1501 | d_3_0_Core->f.Uniform2ui(location, v0, v1); |
| 1502 | } |
| 1503 | |
| 1504 | inline void QOpenGLFunctions_4_0_Core::glUniform1ui(GLint location, GLuint v0) |
| 1505 | { |
| 1506 | d_3_0_Core->f.Uniform1ui(location, v0); |
| 1507 | } |
| 1508 | |
| 1509 | inline GLint QOpenGLFunctions_4_0_Core::glGetFragDataLocation(GLuint program, const GLchar *name) |
| 1510 | { |
| 1511 | return d_3_0_Core->f.GetFragDataLocation(program, name); |
| 1512 | } |
| 1513 | |
| 1514 | inline void QOpenGLFunctions_4_0_Core::glBindFragDataLocation(GLuint program, GLuint color, const GLchar *name) |
| 1515 | { |
| 1516 | d_3_0_Core->f.BindFragDataLocation(program, color, name); |
| 1517 | } |
| 1518 | |
| 1519 | inline void QOpenGLFunctions_4_0_Core::glGetUniformuiv(GLuint program, GLint location, GLuint *params) |
| 1520 | { |
| 1521 | d_3_0_Core->f.GetUniformuiv(program, location, params); |
| 1522 | } |
| 1523 | |
| 1524 | inline void QOpenGLFunctions_4_0_Core::glGetVertexAttribIuiv(GLuint index, GLenum pname, GLuint *params) |
| 1525 | { |
| 1526 | d_3_0_Core->f.GetVertexAttribIuiv(index, pname, params); |
| 1527 | } |
| 1528 | |
| 1529 | inline void QOpenGLFunctions_4_0_Core::glGetVertexAttribIiv(GLuint index, GLenum pname, GLint *params) |
| 1530 | { |
| 1531 | d_3_0_Core->f.GetVertexAttribIiv(index, pname, params); |
| 1532 | } |
| 1533 | |
| 1534 | inline void QOpenGLFunctions_4_0_Core::glVertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) |
| 1535 | { |
| 1536 | d_3_0_Core->f.VertexAttribIPointer(index, size, type, stride, pointer); |
| 1537 | } |
| 1538 | |
| 1539 | inline void QOpenGLFunctions_4_0_Core::glEndConditionalRender() |
| 1540 | { |
| 1541 | d_3_0_Core->f.EndConditionalRender(); |
| 1542 | } |
| 1543 | |
| 1544 | inline void QOpenGLFunctions_4_0_Core::glBeginConditionalRender(GLuint id, GLenum mode) |
| 1545 | { |
| 1546 | d_3_0_Core->f.BeginConditionalRender(id, mode); |
| 1547 | } |
| 1548 | |
| 1549 | inline void QOpenGLFunctions_4_0_Core::glClampColor(GLenum target, GLenum clamp) |
| 1550 | { |
| 1551 | d_3_0_Core->f.ClampColor(target, clamp); |
| 1552 | } |
| 1553 | |
| 1554 | inline void QOpenGLFunctions_4_0_Core::glGetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name) |
| 1555 | { |
| 1556 | d_3_0_Core->f.GetTransformFeedbackVarying(program, index, bufSize, length, size, type, name); |
| 1557 | } |
| 1558 | |
| 1559 | inline void QOpenGLFunctions_4_0_Core::glTransformFeedbackVaryings(GLuint program, GLsizei count, const GLchar* const *varyings, GLenum bufferMode) |
| 1560 | { |
| 1561 | d_3_0_Core->f.TransformFeedbackVaryings(program, count, varyings, bufferMode); |
| 1562 | } |
| 1563 | |
| 1564 | inline void QOpenGLFunctions_4_0_Core::glBindBufferBase(GLenum target, GLuint index, GLuint buffer) |
| 1565 | { |
| 1566 | d_3_0_Core->f.BindBufferBase(target, index, buffer); |
| 1567 | } |
| 1568 | |
| 1569 | inline void QOpenGLFunctions_4_0_Core::glBindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size) |
| 1570 | { |
| 1571 | d_3_0_Core->f.BindBufferRange(target, index, buffer, offset, size); |
| 1572 | } |
| 1573 | |
| 1574 | inline void QOpenGLFunctions_4_0_Core::glEndTransformFeedback() |
| 1575 | { |
| 1576 | d_3_0_Core->f.EndTransformFeedback(); |
| 1577 | } |
| 1578 | |
| 1579 | inline void QOpenGLFunctions_4_0_Core::glBeginTransformFeedback(GLenum primitiveMode) |
| 1580 | { |
| 1581 | d_3_0_Core->f.BeginTransformFeedback(primitiveMode); |
| 1582 | } |
| 1583 | |
| 1584 | inline GLboolean QOpenGLFunctions_4_0_Core::glIsEnabledi(GLenum target, GLuint index) |
| 1585 | { |
| 1586 | return d_3_0_Core->f.IsEnabledi(target, index); |
| 1587 | } |
| 1588 | |
| 1589 | inline void QOpenGLFunctions_4_0_Core::glDisablei(GLenum target, GLuint index) |
| 1590 | { |
| 1591 | d_3_0_Core->f.Disablei(target, index); |
| 1592 | } |
| 1593 | |
| 1594 | inline void QOpenGLFunctions_4_0_Core::glEnablei(GLenum target, GLuint index) |
| 1595 | { |
| 1596 | d_3_0_Core->f.Enablei(target, index); |
| 1597 | } |
| 1598 | |
| 1599 | inline void QOpenGLFunctions_4_0_Core::glGetIntegeri_v(GLenum target, GLuint index, GLint *data) |
| 1600 | { |
| 1601 | d_3_0_Core->f.GetIntegeri_v(target, index, data); |
| 1602 | } |
| 1603 | |
| 1604 | inline void QOpenGLFunctions_4_0_Core::glGetBooleani_v(GLenum target, GLuint index, GLboolean *data) |
| 1605 | { |
| 1606 | d_3_0_Core->f.GetBooleani_v(target, index, data); |
| 1607 | } |
| 1608 | |
| 1609 | inline void QOpenGLFunctions_4_0_Core::glColorMaski(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a) |
| 1610 | { |
| 1611 | d_3_0_Core->f.ColorMaski(index, r, g, b, a); |
| 1612 | } |
| 1613 | |
| 1614 | |
| 1615 | // OpenGL 3.1 core functions |
| 1616 | inline void QOpenGLFunctions_4_0_Core::glCopyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size) |
| 1617 | { |
| 1618 | d_3_1_Core->f.CopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size); |
| 1619 | } |
| 1620 | |
| 1621 | inline void QOpenGLFunctions_4_0_Core::glUniformBlockBinding(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding) |
| 1622 | { |
| 1623 | d_3_1_Core->f.UniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding); |
| 1624 | } |
| 1625 | |
| 1626 | inline void QOpenGLFunctions_4_0_Core::glGetActiveUniformBlockName(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName) |
| 1627 | { |
| 1628 | d_3_1_Core->f.GetActiveUniformBlockName(program, uniformBlockIndex, bufSize, length, uniformBlockName); |
| 1629 | } |
| 1630 | |
| 1631 | inline void QOpenGLFunctions_4_0_Core::glGetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params) |
| 1632 | { |
| 1633 | d_3_1_Core->f.GetActiveUniformBlockiv(program, uniformBlockIndex, pname, params); |
| 1634 | } |
| 1635 | |
| 1636 | inline GLuint QOpenGLFunctions_4_0_Core::glGetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName) |
| 1637 | { |
| 1638 | return d_3_1_Core->f.GetUniformBlockIndex(program, uniformBlockName); |
| 1639 | } |
| 1640 | |
| 1641 | inline void QOpenGLFunctions_4_0_Core::glGetActiveUniformName(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName) |
| 1642 | { |
| 1643 | d_3_1_Core->f.GetActiveUniformName(program, uniformIndex, bufSize, length, uniformName); |
| 1644 | } |
| 1645 | |
| 1646 | inline void QOpenGLFunctions_4_0_Core::glGetActiveUniformsiv(GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params) |
| 1647 | { |
| 1648 | d_3_1_Core->f.GetActiveUniformsiv(program, uniformCount, uniformIndices, pname, params); |
| 1649 | } |
| 1650 | |
| 1651 | inline void QOpenGLFunctions_4_0_Core::glGetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar* const *uniformNames, GLuint *uniformIndices) |
| 1652 | { |
| 1653 | d_3_1_Core->f.GetUniformIndices(program, uniformCount, uniformNames, uniformIndices); |
| 1654 | } |
| 1655 | |
| 1656 | inline void QOpenGLFunctions_4_0_Core::glPrimitiveRestartIndex(GLuint index) |
| 1657 | { |
| 1658 | d_3_1_Core->f.PrimitiveRestartIndex(index); |
| 1659 | } |
| 1660 | |
| 1661 | inline void QOpenGLFunctions_4_0_Core::glTexBuffer(GLenum target, GLenum internalformat, GLuint buffer) |
| 1662 | { |
| 1663 | d_3_1_Core->f.TexBuffer(target, internalformat, buffer); |
| 1664 | } |
| 1665 | |
| 1666 | inline void QOpenGLFunctions_4_0_Core::glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount) |
| 1667 | { |
| 1668 | d_3_1_Core->f.DrawElementsInstanced(mode, count, type, indices, instancecount); |
| 1669 | } |
| 1670 | |
| 1671 | inline void QOpenGLFunctions_4_0_Core::glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instancecount) |
| 1672 | { |
| 1673 | d_3_1_Core->f.DrawArraysInstanced(mode, first, count, instancecount); |
| 1674 | } |
| 1675 | |
| 1676 | |
| 1677 | // OpenGL 3.2 core functions |
| 1678 | inline void QOpenGLFunctions_4_0_Core::glSampleMaski(GLuint index, GLbitfield mask) |
| 1679 | { |
| 1680 | d_3_2_Core->f.SampleMaski(index, mask); |
| 1681 | } |
| 1682 | |
| 1683 | inline void QOpenGLFunctions_4_0_Core::glGetMultisamplefv(GLenum pname, GLuint index, GLfloat *val) |
| 1684 | { |
| 1685 | d_3_2_Core->f.GetMultisamplefv(pname, index, val); |
| 1686 | } |
| 1687 | |
| 1688 | inline void QOpenGLFunctions_4_0_Core::glTexImage3DMultisample(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations) |
| 1689 | { |
| 1690 | d_3_2_Core->f.TexImage3DMultisample(target, samples, internalformat, width, height, depth, fixedsamplelocations); |
| 1691 | } |
| 1692 | |
| 1693 | inline void QOpenGLFunctions_4_0_Core::glTexImage2DMultisample(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations) |
| 1694 | { |
| 1695 | d_3_2_Core->f.TexImage2DMultisample(target, samples, internalformat, width, height, fixedsamplelocations); |
| 1696 | } |
| 1697 | |
| 1698 | inline void QOpenGLFunctions_4_0_Core::glGetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values) |
| 1699 | { |
| 1700 | d_3_2_Core->f.GetSynciv(sync, pname, bufSize, length, values); |
| 1701 | } |
| 1702 | |
| 1703 | inline void QOpenGLFunctions_4_0_Core::glGetInteger64v(GLenum pname, GLint64 *params) |
| 1704 | { |
| 1705 | d_3_2_Core->f.GetInteger64v(pname, params); |
| 1706 | } |
| 1707 | |
| 1708 | inline void QOpenGLFunctions_4_0_Core::glWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) |
| 1709 | { |
| 1710 | d_3_2_Core->f.WaitSync(sync, flags, timeout); |
| 1711 | } |
| 1712 | |
| 1713 | inline GLenum QOpenGLFunctions_4_0_Core::glClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) |
| 1714 | { |
| 1715 | return d_3_2_Core->f.ClientWaitSync(sync, flags, timeout); |
| 1716 | } |
| 1717 | |
| 1718 | inline void QOpenGLFunctions_4_0_Core::glDeleteSync(GLsync sync) |
| 1719 | { |
| 1720 | d_3_2_Core->f.DeleteSync(sync); |
| 1721 | } |
| 1722 | |
| 1723 | inline GLboolean QOpenGLFunctions_4_0_Core::glIsSync(GLsync sync) |
| 1724 | { |
| 1725 | return d_3_2_Core->f.IsSync(sync); |
| 1726 | } |
| 1727 | |
| 1728 | inline GLsync QOpenGLFunctions_4_0_Core::glFenceSync(GLenum condition, GLbitfield flags) |
| 1729 | { |
| 1730 | return d_3_2_Core->f.FenceSync(condition, flags); |
| 1731 | } |
| 1732 | |
| 1733 | inline void QOpenGLFunctions_4_0_Core::glProvokingVertex(GLenum mode) |
| 1734 | { |
| 1735 | d_3_2_Core->f.ProvokingVertex(mode); |
| 1736 | } |
| 1737 | |
| 1738 | inline void QOpenGLFunctions_4_0_Core::glMultiDrawElementsBaseVertex(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount, const GLint *basevertex) |
| 1739 | { |
| 1740 | d_3_2_Core->f.MultiDrawElementsBaseVertex(mode, count, type, indices, drawcount, basevertex); |
| 1741 | } |
| 1742 | |
| 1743 | inline void QOpenGLFunctions_4_0_Core::glDrawElementsInstancedBaseVertex(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount, GLint basevertex) |
| 1744 | { |
| 1745 | d_3_2_Core->f.DrawElementsInstancedBaseVertex(mode, count, type, indices, instancecount, basevertex); |
| 1746 | } |
| 1747 | |
| 1748 | inline void QOpenGLFunctions_4_0_Core::glDrawRangeElementsBaseVertex(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex) |
| 1749 | { |
| 1750 | d_3_2_Core->f.DrawRangeElementsBaseVertex(mode, start, end, count, type, indices, basevertex); |
| 1751 | } |
| 1752 | |
| 1753 | inline void QOpenGLFunctions_4_0_Core::glDrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex) |
| 1754 | { |
| 1755 | d_3_2_Core->f.DrawElementsBaseVertex(mode, count, type, indices, basevertex); |
| 1756 | } |
| 1757 | |
| 1758 | inline void QOpenGLFunctions_4_0_Core::glFramebufferTexture(GLenum target, GLenum attachment, GLuint texture, GLint level) |
| 1759 | { |
| 1760 | d_3_2_Core->f.FramebufferTexture(target, attachment, texture, level); |
| 1761 | } |
| 1762 | |
| 1763 | inline void QOpenGLFunctions_4_0_Core::glGetBufferParameteri64v(GLenum target, GLenum pname, GLint64 *params) |
| 1764 | { |
| 1765 | d_3_2_Core->f.GetBufferParameteri64v(target, pname, params); |
| 1766 | } |
| 1767 | |
| 1768 | inline void QOpenGLFunctions_4_0_Core::glGetInteger64i_v(GLenum target, GLuint index, GLint64 *data) |
| 1769 | { |
| 1770 | d_3_2_Core->f.GetInteger64i_v(target, index, data); |
| 1771 | } |
| 1772 | |
| 1773 | |
| 1774 | // OpenGL 3.3 core functions |
| 1775 | inline void QOpenGLFunctions_4_0_Core::glVertexAttribP4uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint *value) |
| 1776 | { |
| 1777 | d_3_3_Core->f.VertexAttribP4uiv(index, type, normalized, value); |
| 1778 | } |
| 1779 | |
| 1780 | inline void QOpenGLFunctions_4_0_Core::glVertexAttribP4ui(GLuint index, GLenum type, GLboolean normalized, GLuint value) |
| 1781 | { |
| 1782 | d_3_3_Core->f.VertexAttribP4ui(index, type, normalized, value); |
| 1783 | } |
| 1784 | |
| 1785 | inline void QOpenGLFunctions_4_0_Core::glVertexAttribP3uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint *value) |
| 1786 | { |
| 1787 | d_3_3_Core->f.VertexAttribP3uiv(index, type, normalized, value); |
| 1788 | } |
| 1789 | |
| 1790 | inline void QOpenGLFunctions_4_0_Core::glVertexAttribP3ui(GLuint index, GLenum type, GLboolean normalized, GLuint value) |
| 1791 | { |
| 1792 | d_3_3_Core->f.VertexAttribP3ui(index, type, normalized, value); |
| 1793 | } |
| 1794 | |
| 1795 | inline void QOpenGLFunctions_4_0_Core::glVertexAttribP2uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint *value) |
| 1796 | { |
| 1797 | d_3_3_Core->f.VertexAttribP2uiv(index, type, normalized, value); |
| 1798 | } |
| 1799 | |
| 1800 | inline void QOpenGLFunctions_4_0_Core::glVertexAttribP2ui(GLuint index, GLenum type, GLboolean normalized, GLuint value) |
| 1801 | { |
| 1802 | d_3_3_Core->f.VertexAttribP2ui(index, type, normalized, value); |
| 1803 | } |
| 1804 | |
| 1805 | inline void QOpenGLFunctions_4_0_Core::glVertexAttribP1uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint *value) |
| 1806 | { |
| 1807 | d_3_3_Core->f.VertexAttribP1uiv(index, type, normalized, value); |
| 1808 | } |
| 1809 | |
| 1810 | inline void QOpenGLFunctions_4_0_Core::glVertexAttribP1ui(GLuint index, GLenum type, GLboolean normalized, GLuint value) |
| 1811 | { |
| 1812 | d_3_3_Core->f.VertexAttribP1ui(index, type, normalized, value); |
| 1813 | } |
| 1814 | |
| 1815 | inline void QOpenGLFunctions_4_0_Core::glGetQueryObjectui64v(GLuint id, GLenum pname, GLuint64 *params) |
| 1816 | { |
| 1817 | d_3_3_Core->f.GetQueryObjectui64v(id, pname, params); |
| 1818 | } |
| 1819 | |
| 1820 | inline void QOpenGLFunctions_4_0_Core::glGetQueryObjecti64v(GLuint id, GLenum pname, GLint64 *params) |
| 1821 | { |
| 1822 | d_3_3_Core->f.GetQueryObjecti64v(id, pname, params); |
| 1823 | } |
| 1824 | |
| 1825 | inline void QOpenGLFunctions_4_0_Core::glQueryCounter(GLuint id, GLenum target) |
| 1826 | { |
| 1827 | d_3_3_Core->f.QueryCounter(id, target); |
| 1828 | } |
| 1829 | |
| 1830 | inline void QOpenGLFunctions_4_0_Core::glGetSamplerParameterIuiv(GLuint sampler, GLenum pname, GLuint *params) |
| 1831 | { |
| 1832 | d_3_3_Core->f.GetSamplerParameterIuiv(sampler, pname, params); |
| 1833 | } |
| 1834 | |
| 1835 | inline void QOpenGLFunctions_4_0_Core::glGetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat *params) |
| 1836 | { |
| 1837 | d_3_3_Core->f.GetSamplerParameterfv(sampler, pname, params); |
| 1838 | } |
| 1839 | |
| 1840 | inline void QOpenGLFunctions_4_0_Core::glGetSamplerParameterIiv(GLuint sampler, GLenum pname, GLint *params) |
| 1841 | { |
| 1842 | d_3_3_Core->f.GetSamplerParameterIiv(sampler, pname, params); |
| 1843 | } |
| 1844 | |
| 1845 | inline void QOpenGLFunctions_4_0_Core::glGetSamplerParameteriv(GLuint sampler, GLenum pname, GLint *params) |
| 1846 | { |
| 1847 | d_3_3_Core->f.GetSamplerParameteriv(sampler, pname, params); |
| 1848 | } |
| 1849 | |
| 1850 | inline void QOpenGLFunctions_4_0_Core::glSamplerParameterIuiv(GLuint sampler, GLenum pname, const GLuint *param) |
| 1851 | { |
| 1852 | d_3_3_Core->f.SamplerParameterIuiv(sampler, pname, param); |
| 1853 | } |
| 1854 | |
| 1855 | inline void QOpenGLFunctions_4_0_Core::glSamplerParameterIiv(GLuint sampler, GLenum pname, const GLint *param) |
| 1856 | { |
| 1857 | d_3_3_Core->f.SamplerParameterIiv(sampler, pname, param); |
| 1858 | } |
| 1859 | |
| 1860 | inline void QOpenGLFunctions_4_0_Core::glSamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat *param) |
| 1861 | { |
| 1862 | d_3_3_Core->f.SamplerParameterfv(sampler, pname, param); |
| 1863 | } |
| 1864 | |
| 1865 | inline void QOpenGLFunctions_4_0_Core::glSamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) |
| 1866 | { |
| 1867 | d_3_3_Core->f.SamplerParameterf(sampler, pname, param); |
| 1868 | } |
| 1869 | |
| 1870 | inline void QOpenGLFunctions_4_0_Core::glSamplerParameteriv(GLuint sampler, GLenum pname, const GLint *param) |
| 1871 | { |
| 1872 | d_3_3_Core->f.SamplerParameteriv(sampler, pname, param); |
| 1873 | } |
| 1874 | |
| 1875 | inline void QOpenGLFunctions_4_0_Core::glSamplerParameteri(GLuint sampler, GLenum pname, GLint param) |
| 1876 | { |
| 1877 | d_3_3_Core->f.SamplerParameteri(sampler, pname, param); |
| 1878 | } |
| 1879 | |
| 1880 | inline void QOpenGLFunctions_4_0_Core::glBindSampler(GLuint unit, GLuint sampler) |
| 1881 | { |
| 1882 | d_3_3_Core->f.BindSampler(unit, sampler); |
| 1883 | } |
| 1884 | |
| 1885 | inline GLboolean QOpenGLFunctions_4_0_Core::glIsSampler(GLuint sampler) |
| 1886 | { |
| 1887 | return d_3_3_Core->f.IsSampler(sampler); |
| 1888 | } |
| 1889 | |
| 1890 | inline void QOpenGLFunctions_4_0_Core::glDeleteSamplers(GLsizei count, const GLuint *samplers) |
| 1891 | { |
| 1892 | d_3_3_Core->f.DeleteSamplers(count, samplers); |
| 1893 | } |
| 1894 | |
| 1895 | inline void QOpenGLFunctions_4_0_Core::glGenSamplers(GLsizei count, GLuint *samplers) |
| 1896 | { |
| 1897 | d_3_3_Core->f.GenSamplers(count, samplers); |
| 1898 | } |
| 1899 | |
| 1900 | inline GLint QOpenGLFunctions_4_0_Core::glGetFragDataIndex(GLuint program, const GLchar *name) |
| 1901 | { |
| 1902 | return d_3_3_Core->f.GetFragDataIndex(program, name); |
| 1903 | } |
| 1904 | |
| 1905 | inline void QOpenGLFunctions_4_0_Core::glBindFragDataLocationIndexed(GLuint program, GLuint colorNumber, GLuint index, const GLchar *name) |
| 1906 | { |
| 1907 | d_3_3_Core->f.BindFragDataLocationIndexed(program, colorNumber, index, name); |
| 1908 | } |
| 1909 | |
| 1910 | inline void QOpenGLFunctions_4_0_Core::glVertexAttribDivisor(GLuint index, GLuint divisor) |
| 1911 | { |
| 1912 | d_3_3_Core->f.VertexAttribDivisor(index, divisor); |
| 1913 | } |
| 1914 | |
| 1915 | |
| 1916 | // OpenGL 4.0 core functions |
| 1917 | inline void QOpenGLFunctions_4_0_Core::glGetQueryIndexediv(GLenum target, GLuint index, GLenum pname, GLint *params) |
| 1918 | { |
| 1919 | d_4_0_Core->f.GetQueryIndexediv(target, index, pname, params); |
| 1920 | } |
| 1921 | |
| 1922 | inline void QOpenGLFunctions_4_0_Core::glEndQueryIndexed(GLenum target, GLuint index) |
| 1923 | { |
| 1924 | d_4_0_Core->f.EndQueryIndexed(target, index); |
| 1925 | } |
| 1926 | |
| 1927 | inline void QOpenGLFunctions_4_0_Core::glBeginQueryIndexed(GLenum target, GLuint index, GLuint id) |
| 1928 | { |
| 1929 | d_4_0_Core->f.BeginQueryIndexed(target, index, id); |
| 1930 | } |
| 1931 | |
| 1932 | inline void QOpenGLFunctions_4_0_Core::glDrawTransformFeedbackStream(GLenum mode, GLuint id, GLuint stream) |
| 1933 | { |
| 1934 | d_4_0_Core->f.DrawTransformFeedbackStream(mode, id, stream); |
| 1935 | } |
| 1936 | |
| 1937 | inline void QOpenGLFunctions_4_0_Core::glDrawTransformFeedback(GLenum mode, GLuint id) |
| 1938 | { |
| 1939 | d_4_0_Core->f.DrawTransformFeedback(mode, id); |
| 1940 | } |
| 1941 | |
| 1942 | inline void QOpenGLFunctions_4_0_Core::glResumeTransformFeedback() |
| 1943 | { |
| 1944 | d_4_0_Core->f.ResumeTransformFeedback(); |
| 1945 | } |
| 1946 | |
| 1947 | inline void QOpenGLFunctions_4_0_Core::glPauseTransformFeedback() |
| 1948 | { |
| 1949 | d_4_0_Core->f.PauseTransformFeedback(); |
| 1950 | } |
| 1951 | |
| 1952 | inline GLboolean QOpenGLFunctions_4_0_Core::glIsTransformFeedback(GLuint id) |
| 1953 | { |
| 1954 | return d_4_0_Core->f.IsTransformFeedback(id); |
| 1955 | } |
| 1956 | |
| 1957 | inline void QOpenGLFunctions_4_0_Core::glGenTransformFeedbacks(GLsizei n, GLuint *ids) |
| 1958 | { |
| 1959 | d_4_0_Core->f.GenTransformFeedbacks(n, ids); |
| 1960 | } |
| 1961 | |
| 1962 | inline void QOpenGLFunctions_4_0_Core::glDeleteTransformFeedbacks(GLsizei n, const GLuint *ids) |
| 1963 | { |
| 1964 | d_4_0_Core->f.DeleteTransformFeedbacks(n, ids); |
| 1965 | } |
| 1966 | |
| 1967 | inline void QOpenGLFunctions_4_0_Core::glBindTransformFeedback(GLenum target, GLuint id) |
| 1968 | { |
| 1969 | d_4_0_Core->f.BindTransformFeedback(target, id); |
| 1970 | } |
| 1971 | |
| 1972 | inline void QOpenGLFunctions_4_0_Core::glPatchParameterfv(GLenum pname, const GLfloat *values) |
| 1973 | { |
| 1974 | d_4_0_Core->f.PatchParameterfv(pname, values); |
| 1975 | } |
| 1976 | |
| 1977 | inline void QOpenGLFunctions_4_0_Core::glPatchParameteri(GLenum pname, GLint value) |
| 1978 | { |
| 1979 | d_4_0_Core->f.PatchParameteri(pname, value); |
| 1980 | } |
| 1981 | |
| 1982 | inline void QOpenGLFunctions_4_0_Core::glGetProgramStageiv(GLuint program, GLenum shadertype, GLenum pname, GLint *values) |
| 1983 | { |
| 1984 | d_4_0_Core->f.GetProgramStageiv(program, shadertype, pname, values); |
| 1985 | } |
| 1986 | |
| 1987 | inline void QOpenGLFunctions_4_0_Core::glGetUniformSubroutineuiv(GLenum shadertype, GLint location, GLuint *params) |
| 1988 | { |
| 1989 | d_4_0_Core->f.GetUniformSubroutineuiv(shadertype, location, params); |
| 1990 | } |
| 1991 | |
| 1992 | inline void QOpenGLFunctions_4_0_Core::glUniformSubroutinesuiv(GLenum shadertype, GLsizei count, const GLuint *indices) |
| 1993 | { |
| 1994 | d_4_0_Core->f.UniformSubroutinesuiv(shadertype, count, indices); |
| 1995 | } |
| 1996 | |
| 1997 | inline void QOpenGLFunctions_4_0_Core::glGetActiveSubroutineName(GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name) |
| 1998 | { |
| 1999 | d_4_0_Core->f.GetActiveSubroutineName(program, shadertype, index, bufsize, length, name); |
| 2000 | } |
| 2001 | |
| 2002 | inline void QOpenGLFunctions_4_0_Core::glGetActiveSubroutineUniformName(GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name) |
| 2003 | { |
| 2004 | d_4_0_Core->f.GetActiveSubroutineUniformName(program, shadertype, index, bufsize, length, name); |
| 2005 | } |
| 2006 | |
| 2007 | inline void QOpenGLFunctions_4_0_Core::glGetActiveSubroutineUniformiv(GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values) |
| 2008 | { |
| 2009 | d_4_0_Core->f.GetActiveSubroutineUniformiv(program, shadertype, index, pname, values); |
| 2010 | } |
| 2011 | |
| 2012 | inline GLuint QOpenGLFunctions_4_0_Core::glGetSubroutineIndex(GLuint program, GLenum shadertype, const GLchar *name) |
| 2013 | { |
| 2014 | return d_4_0_Core->f.GetSubroutineIndex(program, shadertype, name); |
| 2015 | } |
| 2016 | |
| 2017 | inline GLint QOpenGLFunctions_4_0_Core::glGetSubroutineUniformLocation(GLuint program, GLenum shadertype, const GLchar *name) |
| 2018 | { |
| 2019 | return d_4_0_Core->f.GetSubroutineUniformLocation(program, shadertype, name); |
| 2020 | } |
| 2021 | |
| 2022 | inline void QOpenGLFunctions_4_0_Core::glGetUniformdv(GLuint program, GLint location, GLdouble *params) |
| 2023 | { |
| 2024 | d_4_0_Core->f.GetUniformdv(program, location, params); |
| 2025 | } |
| 2026 | |
| 2027 | inline void QOpenGLFunctions_4_0_Core::glUniformMatrix4x3dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value) |
| 2028 | { |
| 2029 | d_4_0_Core->f.UniformMatrix4x3dv(location, count, transpose, value); |
| 2030 | } |
| 2031 | |
| 2032 | inline void QOpenGLFunctions_4_0_Core::glUniformMatrix4x2dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value) |
| 2033 | { |
| 2034 | d_4_0_Core->f.UniformMatrix4x2dv(location, count, transpose, value); |
| 2035 | } |
| 2036 | |
| 2037 | inline void QOpenGLFunctions_4_0_Core::glUniformMatrix3x4dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value) |
| 2038 | { |
| 2039 | d_4_0_Core->f.UniformMatrix3x4dv(location, count, transpose, value); |
| 2040 | } |
| 2041 | |
| 2042 | inline void QOpenGLFunctions_4_0_Core::glUniformMatrix3x2dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value) |
| 2043 | { |
| 2044 | d_4_0_Core->f.UniformMatrix3x2dv(location, count, transpose, value); |
| 2045 | } |
| 2046 | |
| 2047 | inline void QOpenGLFunctions_4_0_Core::glUniformMatrix2x4dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value) |
| 2048 | { |
| 2049 | d_4_0_Core->f.UniformMatrix2x4dv(location, count, transpose, value); |
| 2050 | } |
| 2051 | |
| 2052 | inline void QOpenGLFunctions_4_0_Core::glUniformMatrix2x3dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value) |
| 2053 | { |
| 2054 | d_4_0_Core->f.UniformMatrix2x3dv(location, count, transpose, value); |
| 2055 | } |
| 2056 | |
| 2057 | inline void QOpenGLFunctions_4_0_Core::glUniformMatrix4dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value) |
| 2058 | { |
| 2059 | d_4_0_Core->f.UniformMatrix4dv(location, count, transpose, value); |
| 2060 | } |
| 2061 | |
| 2062 | inline void QOpenGLFunctions_4_0_Core::glUniformMatrix3dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value) |
| 2063 | { |
| 2064 | d_4_0_Core->f.UniformMatrix3dv(location, count, transpose, value); |
| 2065 | } |
| 2066 | |
| 2067 | inline void QOpenGLFunctions_4_0_Core::glUniformMatrix2dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value) |
| 2068 | { |
| 2069 | d_4_0_Core->f.UniformMatrix2dv(location, count, transpose, value); |
| 2070 | } |
| 2071 | |
| 2072 | inline void QOpenGLFunctions_4_0_Core::glUniform4dv(GLint location, GLsizei count, const GLdouble *value) |
| 2073 | { |
| 2074 | d_4_0_Core->f.Uniform4dv(location, count, value); |
| 2075 | } |
| 2076 | |
| 2077 | inline void QOpenGLFunctions_4_0_Core::glUniform3dv(GLint location, GLsizei count, const GLdouble *value) |
| 2078 | { |
| 2079 | d_4_0_Core->f.Uniform3dv(location, count, value); |
| 2080 | } |
| 2081 | |
| 2082 | inline void QOpenGLFunctions_4_0_Core::glUniform2dv(GLint location, GLsizei count, const GLdouble *value) |
| 2083 | { |
| 2084 | d_4_0_Core->f.Uniform2dv(location, count, value); |
| 2085 | } |
| 2086 | |
| 2087 | inline void QOpenGLFunctions_4_0_Core::glUniform1dv(GLint location, GLsizei count, const GLdouble *value) |
| 2088 | { |
| 2089 | d_4_0_Core->f.Uniform1dv(location, count, value); |
| 2090 | } |
| 2091 | |
| 2092 | inline void QOpenGLFunctions_4_0_Core::glUniform4d(GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w) |
| 2093 | { |
| 2094 | d_4_0_Core->f.Uniform4d(location, x, y, z, w); |
| 2095 | } |
| 2096 | |
| 2097 | inline void QOpenGLFunctions_4_0_Core::glUniform3d(GLint location, GLdouble x, GLdouble y, GLdouble z) |
| 2098 | { |
| 2099 | d_4_0_Core->f.Uniform3d(location, x, y, z); |
| 2100 | } |
| 2101 | |
| 2102 | inline void QOpenGLFunctions_4_0_Core::glUniform2d(GLint location, GLdouble x, GLdouble y) |
| 2103 | { |
| 2104 | d_4_0_Core->f.Uniform2d(location, x, y); |
| 2105 | } |
| 2106 | |
| 2107 | inline void QOpenGLFunctions_4_0_Core::glUniform1d(GLint location, GLdouble x) |
| 2108 | { |
| 2109 | d_4_0_Core->f.Uniform1d(location, x); |
| 2110 | } |
| 2111 | |
| 2112 | inline void QOpenGLFunctions_4_0_Core::glDrawElementsIndirect(GLenum mode, GLenum type, const GLvoid *indirect) |
| 2113 | { |
| 2114 | d_4_0_Core->f.DrawElementsIndirect(mode, type, indirect); |
| 2115 | } |
| 2116 | |
| 2117 | inline void QOpenGLFunctions_4_0_Core::glDrawArraysIndirect(GLenum mode, const GLvoid *indirect) |
| 2118 | { |
| 2119 | d_4_0_Core->f.DrawArraysIndirect(mode, indirect); |
| 2120 | } |
| 2121 | |
| 2122 | inline void QOpenGLFunctions_4_0_Core::glBlendFuncSeparatei(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) |
| 2123 | { |
| 2124 | d_4_0_Core->f.BlendFuncSeparatei(buf, srcRGB, dstRGB, srcAlpha, dstAlpha); |
| 2125 | } |
| 2126 | |
| 2127 | inline void QOpenGLFunctions_4_0_Core::glBlendFunci(GLuint buf, GLenum src, GLenum dst) |
| 2128 | { |
| 2129 | d_4_0_Core->f.BlendFunci(buf, src, dst); |
| 2130 | } |
| 2131 | |
| 2132 | inline void QOpenGLFunctions_4_0_Core::glBlendEquationSeparatei(GLuint buf, GLenum modeRGB, GLenum modeAlpha) |
| 2133 | { |
| 2134 | d_4_0_Core->f.BlendEquationSeparatei(buf, modeRGB, modeAlpha); |
| 2135 | } |
| 2136 | |
| 2137 | inline void QOpenGLFunctions_4_0_Core::glBlendEquationi(GLuint buf, GLenum mode) |
| 2138 | { |
| 2139 | d_4_0_Core->f.BlendEquationi(buf, mode); |
| 2140 | } |
| 2141 | |
| 2142 | inline void QOpenGLFunctions_4_0_Core::glMinSampleShading(GLfloat value) |
| 2143 | { |
| 2144 | d_4_0_Core->f.MinSampleShading(value); |
| 2145 | } |
| 2146 | |
| 2147 | |
| 2148 | |
| 2149 | QT_END_NAMESPACE |
| 2150 | |
| 2151 | #endif // QT_NO_OPENGL && !QT_CONFIG(opengles2) |
| 2152 | |
| 2153 | #endif |
| 2154 | |