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