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
61QT_BEGIN_NAMESPACE
62
63class Q_OPENGL_EXPORT QOpenGLFunctions_4_0_Core : public QAbstractOpenGLFunctions
64{
65public:
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
431private:
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
453inline 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
458inline void QOpenGLFunctions_4_0_Core::glDepthRange(GLdouble nearVal, GLdouble farVal)
459{
460 d_1_0_Core->f.DepthRange(nearVal, farVal);
461}
462
463inline GLboolean QOpenGLFunctions_4_0_Core::glIsEnabled(GLenum cap)
464{
465 return d_1_0_Core->f.IsEnabled(cap);
466}
467
468inline 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
473inline 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
478inline 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
483inline 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
488inline 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
493inline const GLubyte * QOpenGLFunctions_4_0_Core::glGetString(GLenum name)
494{
495 return d_1_0_Core->f.GetString(name);
496}
497
498inline void QOpenGLFunctions_4_0_Core::glGetIntegerv(GLenum pname, GLint *params)
499{
500 d_1_0_Core->f.GetIntegerv(pname, params);
501}
502
503inline void QOpenGLFunctions_4_0_Core::glGetFloatv(GLenum pname, GLfloat *params)
504{
505 d_1_0_Core->f.GetFloatv(pname, params);
506}
507
508inline GLenum QOpenGLFunctions_4_0_Core::glGetError()
509{
510 return d_1_0_Core->f.GetError();
511}
512
513inline void QOpenGLFunctions_4_0_Core::glGetDoublev(GLenum pname, GLdouble *params)
514{
515 d_1_0_Core->f.GetDoublev(pname, params);
516}
517
518inline void QOpenGLFunctions_4_0_Core::glGetBooleanv(GLenum pname, GLboolean *params)
519{
520 d_1_0_Core->f.GetBooleanv(pname, params);
521}
522
523inline 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
528inline void QOpenGLFunctions_4_0_Core::glReadBuffer(GLenum mode)
529{
530 d_1_0_Core->f.ReadBuffer(mode);
531}
532
533inline void QOpenGLFunctions_4_0_Core::glPixelStorei(GLenum pname, GLint param)
534{
535 d_1_0_Core->f.PixelStorei(pname, param);
536}
537
538inline void QOpenGLFunctions_4_0_Core::glPixelStoref(GLenum pname, GLfloat param)
539{
540 d_1_0_Core->f.PixelStoref(pname, param);
541}
542
543inline void QOpenGLFunctions_4_0_Core::glDepthFunc(GLenum func)
544{
545 d_1_0_Core->f.DepthFunc(func);
546}
547
548inline 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
553inline 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
558inline void QOpenGLFunctions_4_0_Core::glLogicOp(GLenum opcode)
559{
560 d_1_0_Core->f.LogicOp(opcode);
561}
562
563inline void QOpenGLFunctions_4_0_Core::glBlendFunc(GLenum sfactor, GLenum dfactor)
564{
565 d_1_0_Core->f.BlendFunc(sfactor, dfactor);
566}
567
568inline void QOpenGLFunctions_4_0_Core::glFlush()
569{
570 d_1_0_Core->f.Flush();
571}
572
573inline void QOpenGLFunctions_4_0_Core::glFinish()
574{
575 d_1_0_Core->f.Finish();
576}
577
578inline void QOpenGLFunctions_4_0_Core::glEnable(GLenum cap)
579{
580 d_1_0_Core->f.Enable(cap);
581}
582
583inline void QOpenGLFunctions_4_0_Core::glDisable(GLenum cap)
584{
585 d_1_0_Core->f.Disable(cap);
586}
587
588inline void QOpenGLFunctions_4_0_Core::glDepthMask(GLboolean flag)
589{
590 d_1_0_Core->f.DepthMask(flag);
591}
592
593inline 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
598inline void QOpenGLFunctions_4_0_Core::glStencilMask(GLuint mask)
599{
600 d_1_0_Core->f.StencilMask(mask);
601}
602
603inline void QOpenGLFunctions_4_0_Core::glClearDepth(GLdouble depth)
604{
605 d_1_0_Core->f.ClearDepth(depth);
606}
607
608inline void QOpenGLFunctions_4_0_Core::glClearStencil(GLint s)
609{
610 d_1_0_Core->f.ClearStencil(s);
611}
612
613inline 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
618inline void QOpenGLFunctions_4_0_Core::glClear(GLbitfield mask)
619{
620 d_1_0_Core->f.Clear(mask);
621}
622
623inline void QOpenGLFunctions_4_0_Core::glDrawBuffer(GLenum mode)
624{
625 d_1_0_Core->f.DrawBuffer(mode);
626}
627
628inline 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
633inline 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
638inline 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
643inline 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
648inline 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
653inline 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
658inline 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
663inline void QOpenGLFunctions_4_0_Core::glPolygonMode(GLenum face, GLenum mode)
664{
665 d_1_0_Core->f.PolygonMode(face, mode);
666}
667
668inline void QOpenGLFunctions_4_0_Core::glPointSize(GLfloat size)
669{
670 d_1_0_Core->f.PointSize(size);
671}
672
673inline void QOpenGLFunctions_4_0_Core::glLineWidth(GLfloat width)
674{
675 d_1_0_Core->f.LineWidth(width);
676}
677
678inline void QOpenGLFunctions_4_0_Core::glHint(GLenum target, GLenum mode)
679{
680 d_1_0_Core->f.Hint(target, mode);
681}
682
683inline void QOpenGLFunctions_4_0_Core::glFrontFace(GLenum mode)
684{
685 d_1_0_Core->f.FrontFace(mode);
686}
687
688inline 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
695inline GLboolean QOpenGLFunctions_4_0_Core::glIsTexture(GLuint texture)
696{
697 return d_1_1_Core->f.IsTexture(texture);
698}
699
700inline void QOpenGLFunctions_4_0_Core::glGenTextures(GLsizei n, GLuint *textures)
701{
702 d_1_1_Core->f.GenTextures(n, textures);
703}
704
705inline void QOpenGLFunctions_4_0_Core::glDeleteTextures(GLsizei n, const GLuint *textures)
706{
707 d_1_1_Core->f.DeleteTextures(n, textures);
708}
709
710inline void QOpenGLFunctions_4_0_Core::glBindTexture(GLenum target, GLuint texture)
711{
712 d_1_1_Core->f.BindTexture(target, texture);
713}
714
715inline 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
720inline 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
725inline 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
730inline 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
735inline 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
740inline 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
745inline void QOpenGLFunctions_4_0_Core::glPolygonOffset(GLfloat factor, GLfloat units)
746{
747 d_1_1_Core->f.PolygonOffset(factor, units);
748}
749
750inline 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
755inline 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
762inline 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
767inline 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
772inline 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
777inline 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
782inline void QOpenGLFunctions_4_0_Core::glBlendEquation(GLenum mode)
783{
784 d_1_2_Core->f.BlendEquation(mode);
785}
786
787inline 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
794inline 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
799inline 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
804inline 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
809inline 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
814inline 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
819inline 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
824inline 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
829inline void QOpenGLFunctions_4_0_Core::glSampleCoverage(GLfloat value, GLboolean invert)
830{
831 d_1_3_Core->f.SampleCoverage(value, invert);
832}
833
834inline 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
841inline void QOpenGLFunctions_4_0_Core::glPointParameteriv(GLenum pname, const GLint *params)
842{
843 d_1_4_Core->f.PointParameteriv(pname, params);
844}
845
846inline void QOpenGLFunctions_4_0_Core::glPointParameteri(GLenum pname, GLint param)
847{
848 d_1_4_Core->f.PointParameteri(pname, param);
849}
850
851inline void QOpenGLFunctions_4_0_Core::glPointParameterfv(GLenum pname, const GLfloat *params)
852{
853 d_1_4_Core->f.PointParameterfv(pname, params);
854}
855
856inline void QOpenGLFunctions_4_0_Core::glPointParameterf(GLenum pname, GLfloat param)
857{
858 d_1_4_Core->f.PointParameterf(pname, param);
859}
860
861inline 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
866inline 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
871inline 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
878inline 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
883inline 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
888inline GLboolean QOpenGLFunctions_4_0_Core::glUnmapBuffer(GLenum target)
889{
890 return d_1_5_Core->f.UnmapBuffer(target);
891}
892
893inline GLvoid* QOpenGLFunctions_4_0_Core::glMapBuffer(GLenum target, GLenum access)
894{
895 return d_1_5_Core->f.MapBuffer(target, access);
896}
897
898inline 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
903inline 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
908inline 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
913inline GLboolean QOpenGLFunctions_4_0_Core::glIsBuffer(GLuint buffer)
914{
915 return d_1_5_Core->f.IsBuffer(buffer);
916}
917
918inline void QOpenGLFunctions_4_0_Core::glGenBuffers(GLsizei n, GLuint *buffers)
919{
920 d_1_5_Core->f.GenBuffers(n, buffers);
921}
922
923inline void QOpenGLFunctions_4_0_Core::glDeleteBuffers(GLsizei n, const GLuint *buffers)
924{
925 d_1_5_Core->f.DeleteBuffers(n, buffers);
926}
927
928inline void QOpenGLFunctions_4_0_Core::glBindBuffer(GLenum target, GLuint buffer)
929{
930 d_1_5_Core->f.BindBuffer(target, buffer);
931}
932
933inline 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
938inline 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
943inline 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
948inline void QOpenGLFunctions_4_0_Core::glEndQuery(GLenum target)
949{
950 d_1_5_Core->f.EndQuery(target);
951}
952
953inline void QOpenGLFunctions_4_0_Core::glBeginQuery(GLenum target, GLuint id)
954{
955 d_1_5_Core->f.BeginQuery(target, id);
956}
957
958inline GLboolean QOpenGLFunctions_4_0_Core::glIsQuery(GLuint id)
959{
960 return d_1_5_Core->f.IsQuery(id);
961}
962
963inline void QOpenGLFunctions_4_0_Core::glDeleteQueries(GLsizei n, const GLuint *ids)
964{
965 d_1_5_Core->f.DeleteQueries(n, ids);
966}
967
968inline 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
975inline 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
980inline void QOpenGLFunctions_4_0_Core::glValidateProgram(GLuint program)
981{
982 d_2_0_Core->f.ValidateProgram(program);
983}
984
985inline 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
990inline 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
995inline 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
1000inline 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
1005inline 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
1010inline 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
1015inline 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
1020inline 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
1025inline 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
1030inline 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
1035inline 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
1040inline 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
1045inline 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
1050inline 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
1055inline void QOpenGLFunctions_4_0_Core::glUniform1i(GLint location, GLint v0)
1056{
1057 d_2_0_Core->f.Uniform1i(location, v0);
1058}
1059
1060inline 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
1065inline 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
1070inline 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
1075inline void QOpenGLFunctions_4_0_Core::glUniform1f(GLint location, GLfloat v0)
1076{
1077 d_2_0_Core->f.Uniform1f(location, v0);
1078}
1079
1080inline void QOpenGLFunctions_4_0_Core::glUseProgram(GLuint program)
1081{
1082 d_2_0_Core->f.UseProgram(program);
1083}
1084
1085inline 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
1090inline void QOpenGLFunctions_4_0_Core::glLinkProgram(GLuint program)
1091{
1092 d_2_0_Core->f.LinkProgram(program);
1093}
1094
1095inline GLboolean QOpenGLFunctions_4_0_Core::glIsShader(GLuint shader)
1096{
1097 return d_2_0_Core->f.IsShader(shader);
1098}
1099
1100inline GLboolean QOpenGLFunctions_4_0_Core::glIsProgram(GLuint program)
1101{
1102 return d_2_0_Core->f.IsProgram(program);
1103}
1104
1105inline 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
1110inline 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
1115inline 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
1120inline 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
1125inline 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
1130inline 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
1135inline GLint QOpenGLFunctions_4_0_Core::glGetUniformLocation(GLuint program, const GLchar *name)
1136{
1137 return d_2_0_Core->f.GetUniformLocation(program, name);
1138}
1139
1140inline 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
1145inline 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
1150inline 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
1155inline 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
1160inline 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
1165inline GLint QOpenGLFunctions_4_0_Core::glGetAttribLocation(GLuint program, const GLchar *name)
1166{
1167 return d_2_0_Core->f.GetAttribLocation(program, name);
1168}
1169
1170inline 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
1175inline 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
1180inline 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
1185inline void QOpenGLFunctions_4_0_Core::glEnableVertexAttribArray(GLuint index)
1186{
1187 d_2_0_Core->f.EnableVertexAttribArray(index);
1188}
1189
1190inline void QOpenGLFunctions_4_0_Core::glDisableVertexAttribArray(GLuint index)
1191{
1192 d_2_0_Core->f.DisableVertexAttribArray(index);
1193}
1194
1195inline void QOpenGLFunctions_4_0_Core::glDetachShader(GLuint program, GLuint shader)
1196{
1197 d_2_0_Core->f.DetachShader(program, shader);
1198}
1199
1200inline void QOpenGLFunctions_4_0_Core::glDeleteShader(GLuint shader)
1201{
1202 d_2_0_Core->f.DeleteShader(shader);
1203}
1204
1205inline void QOpenGLFunctions_4_0_Core::glDeleteProgram(GLuint program)
1206{
1207 d_2_0_Core->f.DeleteProgram(program);
1208}
1209
1210inline GLuint QOpenGLFunctions_4_0_Core::glCreateShader(GLenum type)
1211{
1212 return d_2_0_Core->f.CreateShader(type);
1213}
1214
1215inline GLuint QOpenGLFunctions_4_0_Core::glCreateProgram()
1216{
1217 return d_2_0_Core->f.CreateProgram();
1218}
1219
1220inline void QOpenGLFunctions_4_0_Core::glCompileShader(GLuint shader)
1221{
1222 d_2_0_Core->f.CompileShader(shader);
1223}
1224
1225inline 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
1230inline void QOpenGLFunctions_4_0_Core::glAttachShader(GLuint program, GLuint shader)
1231{
1232 d_2_0_Core->f.AttachShader(program, shader);
1233}
1234
1235inline void QOpenGLFunctions_4_0_Core::glStencilMaskSeparate(GLenum face, GLuint mask)
1236{
1237 d_2_0_Core->f.StencilMaskSeparate(face, mask);
1238}
1239
1240inline 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
1245inline 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
1250inline void QOpenGLFunctions_4_0_Core::glDrawBuffers(GLsizei n, const GLenum *bufs)
1251{
1252 d_2_0_Core->f.DrawBuffers(n, bufs);
1253}
1254
1255inline 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
1262inline 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
1267inline 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
1272inline 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
1277inline 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
1282inline 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
1287inline 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
1294inline GLboolean QOpenGLFunctions_4_0_Core::glIsVertexArray(GLuint array)
1295{
1296 return d_3_0_Core->f.IsVertexArray(array);
1297}
1298
1299inline void QOpenGLFunctions_4_0_Core::glGenVertexArrays(GLsizei n, GLuint *arrays)
1300{
1301 d_3_0_Core->f.GenVertexArrays(n, arrays);
1302}
1303
1304inline void QOpenGLFunctions_4_0_Core::glDeleteVertexArrays(GLsizei n, const GLuint *arrays)
1305{
1306 d_3_0_Core->f.DeleteVertexArrays(n, arrays);
1307}
1308
1309inline void QOpenGLFunctions_4_0_Core::glBindVertexArray(GLuint array)
1310{
1311 d_3_0_Core->f.BindVertexArray(array);
1312}
1313
1314inline 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
1319inline 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
1324inline 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
1329inline 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
1334inline 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
1339inline void QOpenGLFunctions_4_0_Core::glGenerateMipmap(GLenum target)
1340{
1341 d_3_0_Core->f.GenerateMipmap(target);
1342}
1343
1344inline 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
1349inline 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
1354inline 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
1359inline 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
1364inline 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
1369inline GLenum QOpenGLFunctions_4_0_Core::glCheckFramebufferStatus(GLenum target)
1370{
1371 return d_3_0_Core->f.CheckFramebufferStatus(target);
1372}
1373
1374inline void QOpenGLFunctions_4_0_Core::glGenFramebuffers(GLsizei n, GLuint *framebuffers)
1375{
1376 d_3_0_Core->f.GenFramebuffers(n, framebuffers);
1377}
1378
1379inline void QOpenGLFunctions_4_0_Core::glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers)
1380{
1381 d_3_0_Core->f.DeleteFramebuffers(n, framebuffers);
1382}
1383
1384inline void QOpenGLFunctions_4_0_Core::glBindFramebuffer(GLenum target, GLuint framebuffer)
1385{
1386 d_3_0_Core->f.BindFramebuffer(target, framebuffer);
1387}
1388
1389inline GLboolean QOpenGLFunctions_4_0_Core::glIsFramebuffer(GLuint framebuffer)
1390{
1391 return d_3_0_Core->f.IsFramebuffer(framebuffer);
1392}
1393
1394inline 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
1399inline 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
1404inline void QOpenGLFunctions_4_0_Core::glGenRenderbuffers(GLsizei n, GLuint *renderbuffers)
1405{
1406 d_3_0_Core->f.GenRenderbuffers(n, renderbuffers);
1407}
1408
1409inline void QOpenGLFunctions_4_0_Core::glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers)
1410{
1411 d_3_0_Core->f.DeleteRenderbuffers(n, renderbuffers);
1412}
1413
1414inline void QOpenGLFunctions_4_0_Core::glBindRenderbuffer(GLenum target, GLuint renderbuffer)
1415{
1416 d_3_0_Core->f.BindRenderbuffer(target, renderbuffer);
1417}
1418
1419inline GLboolean QOpenGLFunctions_4_0_Core::glIsRenderbuffer(GLuint renderbuffer)
1420{
1421 return d_3_0_Core->f.IsRenderbuffer(renderbuffer);
1422}
1423
1424inline const GLubyte * QOpenGLFunctions_4_0_Core::glGetStringi(GLenum name, GLuint index)
1425{
1426 return d_3_0_Core->f.GetStringi(name, index);
1427}
1428
1429inline 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
1434inline 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
1439inline 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
1444inline 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
1449inline 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
1454inline 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
1459inline 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
1464inline 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
1469inline void QOpenGLFunctions_4_0_Core::glUniform4uiv(GLint location, GLsizei count, const GLuint *value)
1470{
1471 d_3_0_Core->f.Uniform4uiv(location, count,