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_1_H |
16 | #define QOPENGLVERSIONFUNCTIONS_3_1_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_1 : public QAbstractOpenGLFunctions |
29 | { |
30 | public: |
31 | QOpenGLFunctions_3_1(); |
32 | ~QOpenGLFunctions_3_1(); |
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 | private: |
298 | friend class QOpenGLVersionFunctionsFactory; |
299 | |
300 | static bool isContextCompatible(QOpenGLContext *context); |
301 | static QOpenGLVersionProfile versionProfile(); |
302 | |
303 | QOpenGLFunctions_1_0_CoreBackend* d_1_0_Core; |
304 | QOpenGLFunctions_1_1_CoreBackend* d_1_1_Core; |
305 | QOpenGLFunctions_1_2_CoreBackend* d_1_2_Core; |
306 | QOpenGLFunctions_1_3_CoreBackend* d_1_3_Core; |
307 | QOpenGLFunctions_1_4_CoreBackend* d_1_4_Core; |
308 | QOpenGLFunctions_1_5_CoreBackend* d_1_5_Core; |
309 | QOpenGLFunctions_2_0_CoreBackend* d_2_0_Core; |
310 | QOpenGLFunctions_2_1_CoreBackend* d_2_1_Core; |
311 | QOpenGLFunctions_3_0_CoreBackend* d_3_0_Core; |
312 | QOpenGLFunctions_3_1_CoreBackend* d_3_1_Core; |
313 | }; |
314 | |
315 | // OpenGL 1.0 core functions |
316 | inline void QOpenGLFunctions_3_1::glViewport(GLint x, GLint y, GLsizei width, GLsizei height) |
317 | { |
318 | d_1_0_Core->f.Viewport(x, y, width, height); |
319 | } |
320 | |
321 | inline void QOpenGLFunctions_3_1::glDepthRange(GLdouble nearVal, GLdouble farVal) |
322 | { |
323 | d_1_0_Core->f.DepthRange(nearVal, farVal); |
324 | } |
325 | |
326 | inline GLboolean QOpenGLFunctions_3_1::glIsEnabled(GLenum cap) |
327 | { |
328 | return d_1_0_Core->f.IsEnabled(cap); |
329 | } |
330 | |
331 | inline void QOpenGLFunctions_3_1::glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params) |
332 | { |
333 | d_1_0_Core->f.GetTexLevelParameteriv(target, level, pname, params); |
334 | } |
335 | |
336 | inline void QOpenGLFunctions_3_1::glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params) |
337 | { |
338 | d_1_0_Core->f.GetTexLevelParameterfv(target, level, pname, params); |
339 | } |
340 | |
341 | inline void QOpenGLFunctions_3_1::glGetTexParameteriv(GLenum target, GLenum pname, GLint *params) |
342 | { |
343 | d_1_0_Core->f.GetTexParameteriv(target, pname, params); |
344 | } |
345 | |
346 | inline void QOpenGLFunctions_3_1::glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params) |
347 | { |
348 | d_1_0_Core->f.GetTexParameterfv(target, pname, params); |
349 | } |
350 | |
351 | inline void QOpenGLFunctions_3_1::glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels) |
352 | { |
353 | d_1_0_Core->f.GetTexImage(target, level, format, type, pixels); |
354 | } |
355 | |
356 | inline const GLubyte * QOpenGLFunctions_3_1::glGetString(GLenum name) |
357 | { |
358 | return d_1_0_Core->f.GetString(name); |
359 | } |
360 | |
361 | inline void QOpenGLFunctions_3_1::glGetIntegerv(GLenum pname, GLint *params) |
362 | { |
363 | d_1_0_Core->f.GetIntegerv(pname, params); |
364 | } |
365 | |
366 | inline void QOpenGLFunctions_3_1::glGetFloatv(GLenum pname, GLfloat *params) |
367 | { |
368 | d_1_0_Core->f.GetFloatv(pname, params); |
369 | } |
370 | |
371 | inline GLenum QOpenGLFunctions_3_1::glGetError() |
372 | { |
373 | return d_1_0_Core->f.GetError(); |
374 | } |
375 | |
376 | inline void QOpenGLFunctions_3_1::glGetDoublev(GLenum pname, GLdouble *params) |
377 | { |
378 | d_1_0_Core->f.GetDoublev(pname, params); |
379 | } |
380 | |
381 | inline void QOpenGLFunctions_3_1::glGetBooleanv(GLenum pname, GLboolean *params) |
382 | { |
383 | d_1_0_Core->f.GetBooleanv(pname, params); |
384 | } |
385 | |
386 | inline void QOpenGLFunctions_3_1::glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels) |
387 | { |
388 | d_1_0_Core->f.ReadPixels(x, y, width, height, format, type, pixels); |
389 | } |
390 | |
391 | inline void QOpenGLFunctions_3_1::glReadBuffer(GLenum mode) |
392 | { |
393 | d_1_0_Core->f.ReadBuffer(mode); |
394 | } |
395 | |
396 | inline void QOpenGLFunctions_3_1::glPixelStorei(GLenum pname, GLint param) |
397 | { |
398 | d_1_0_Core->f.PixelStorei(pname, param); |
399 | } |
400 | |
401 | inline void QOpenGLFunctions_3_1::glPixelStoref(GLenum pname, GLfloat param) |
402 | { |
403 | d_1_0_Core->f.PixelStoref(pname, param); |
404 | } |
405 | |
406 | inline void QOpenGLFunctions_3_1::glDepthFunc(GLenum func) |
407 | { |
408 | d_1_0_Core->f.DepthFunc(func); |
409 | } |
410 | |
411 | inline void QOpenGLFunctions_3_1::glStencilOp(GLenum fail, GLenum zfail, GLenum zpass) |
412 | { |
413 | d_1_0_Core->f.StencilOp(fail, zfail, zpass); |
414 | } |
415 | |
416 | inline void QOpenGLFunctions_3_1::glStencilFunc(GLenum func, GLint ref, GLuint mask) |
417 | { |
418 | d_1_0_Core->f.StencilFunc(func, ref, mask); |
419 | } |
420 | |
421 | inline void QOpenGLFunctions_3_1::glLogicOp(GLenum opcode) |
422 | { |
423 | d_1_0_Core->f.LogicOp(opcode); |
424 | } |
425 | |
426 | inline void QOpenGLFunctions_3_1::glBlendFunc(GLenum sfactor, GLenum dfactor) |
427 | { |
428 | d_1_0_Core->f.BlendFunc(sfactor, dfactor); |
429 | } |
430 | |
431 | inline void QOpenGLFunctions_3_1::glFlush() |
432 | { |
433 | d_1_0_Core->f.Flush(); |
434 | } |
435 | |
436 | inline void QOpenGLFunctions_3_1::glFinish() |
437 | { |
438 | d_1_0_Core->f.Finish(); |
439 | } |
440 | |
441 | inline void QOpenGLFunctions_3_1::glEnable(GLenum cap) |
442 | { |
443 | d_1_0_Core->f.Enable(cap); |
444 | } |
445 | |
446 | inline void QOpenGLFunctions_3_1::glDisable(GLenum cap) |
447 | { |
448 | d_1_0_Core->f.Disable(cap); |
449 | } |
450 | |
451 | inline void QOpenGLFunctions_3_1::glDepthMask(GLboolean flag) |
452 | { |
453 | d_1_0_Core->f.DepthMask(flag); |
454 | } |
455 | |
456 | inline void QOpenGLFunctions_3_1::glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) |
457 | { |
458 | d_1_0_Core->f.ColorMask(red, green, blue, alpha); |
459 | } |
460 | |
461 | inline void QOpenGLFunctions_3_1::glStencilMask(GLuint mask) |
462 | { |
463 | d_1_0_Core->f.StencilMask(mask); |
464 | } |
465 | |
466 | inline void QOpenGLFunctions_3_1::glClearDepth(GLdouble depth) |
467 | { |
468 | d_1_0_Core->f.ClearDepth(depth); |
469 | } |
470 | |
471 | inline void QOpenGLFunctions_3_1::glClearStencil(GLint s) |
472 | { |
473 | d_1_0_Core->f.ClearStencil(s); |
474 | } |
475 | |
476 | inline void QOpenGLFunctions_3_1::glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) |
477 | { |
478 | d_1_0_Core->f.ClearColor(red, green, blue, alpha); |
479 | } |
480 | |
481 | inline void QOpenGLFunctions_3_1::glClear(GLbitfield mask) |
482 | { |
483 | d_1_0_Core->f.Clear(mask); |
484 | } |
485 | |
486 | inline void QOpenGLFunctions_3_1::glDrawBuffer(GLenum mode) |
487 | { |
488 | d_1_0_Core->f.DrawBuffer(mode); |
489 | } |
490 | |
491 | inline void QOpenGLFunctions_3_1::glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels) |
492 | { |
493 | d_1_0_Core->f.TexImage2D(target, level, internalformat, width, height, border, format, type, pixels); |
494 | } |
495 | |
496 | inline void QOpenGLFunctions_3_1::glTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels) |
497 | { |
498 | d_1_0_Core->f.TexImage1D(target, level, internalformat, width, border, format, type, pixels); |
499 | } |
500 | |
501 | inline void QOpenGLFunctions_3_1::glTexParameteriv(GLenum target, GLenum pname, const GLint *params) |
502 | { |
503 | d_1_0_Core->f.TexParameteriv(target, pname, params); |
504 | } |
505 | |
506 | inline void QOpenGLFunctions_3_1::glTexParameteri(GLenum target, GLenum pname, GLint param) |
507 | { |
508 | d_1_0_Core->f.TexParameteri(target, pname, param); |
509 | } |
510 | |
511 | inline void QOpenGLFunctions_3_1::glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params) |
512 | { |
513 | d_1_0_Core->f.TexParameterfv(target, pname, params); |
514 | } |
515 | |
516 | inline void QOpenGLFunctions_3_1::glTexParameterf(GLenum target, GLenum pname, GLfloat param) |
517 | { |
518 | d_1_0_Core->f.TexParameterf(target, pname, param); |
519 | } |
520 | |
521 | inline void QOpenGLFunctions_3_1::glScissor(GLint x, GLint y, GLsizei width, GLsizei height) |
522 | { |
523 | d_1_0_Core->f.Scissor(x, y, width, height); |
524 | } |
525 | |
526 | inline void QOpenGLFunctions_3_1::glPolygonMode(GLenum face, GLenum mode) |
527 | { |
528 | d_1_0_Core->f.PolygonMode(face, mode); |
529 | } |
530 | |
531 | inline void QOpenGLFunctions_3_1::glPointSize(GLfloat size) |
532 | { |
533 | d_1_0_Core->f.PointSize(size); |
534 | } |
535 | |
536 | inline void QOpenGLFunctions_3_1::glLineWidth(GLfloat width) |
537 | { |
538 | d_1_0_Core->f.LineWidth(width); |
539 | } |
540 | |
541 | inline void QOpenGLFunctions_3_1::glHint(GLenum target, GLenum mode) |
542 | { |
543 | d_1_0_Core->f.Hint(target, mode); |
544 | } |
545 | |
546 | inline void QOpenGLFunctions_3_1::glFrontFace(GLenum mode) |
547 | { |
548 | d_1_0_Core->f.FrontFace(mode); |
549 | } |
550 | |
551 | inline void QOpenGLFunctions_3_1::glCullFace(GLenum mode) |
552 | { |
553 | d_1_0_Core->f.CullFace(mode); |
554 | } |
555 | |
556 | |
557 | // OpenGL 1.1 core functions |
558 | inline GLboolean QOpenGLFunctions_3_1::glIsTexture(GLuint texture) |
559 | { |
560 | return d_1_1_Core->f.IsTexture(texture); |
561 | } |
562 | |
563 | inline void QOpenGLFunctions_3_1::glGenTextures(GLsizei n, GLuint *textures) |
564 | { |
565 | d_1_1_Core->f.GenTextures(n, textures); |
566 | } |
567 | |
568 | inline void QOpenGLFunctions_3_1::glDeleteTextures(GLsizei n, const GLuint *textures) |
569 | { |
570 | d_1_1_Core->f.DeleteTextures(n, textures); |
571 | } |
572 | |
573 | inline void QOpenGLFunctions_3_1::glBindTexture(GLenum target, GLuint texture) |
574 | { |
575 | d_1_1_Core->f.BindTexture(target, texture); |
576 | } |
577 | |
578 | inline void QOpenGLFunctions_3_1::glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels) |
579 | { |
580 | d_1_1_Core->f.TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels); |
581 | } |
582 | |
583 | inline void QOpenGLFunctions_3_1::glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels) |
584 | { |
585 | d_1_1_Core->f.TexSubImage1D(target, level, xoffset, width, format, type, pixels); |
586 | } |
587 | |
588 | inline void QOpenGLFunctions_3_1::glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) |
589 | { |
590 | d_1_1_Core->f.CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height); |
591 | } |
592 | |
593 | inline void QOpenGLFunctions_3_1::glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width) |
594 | { |
595 | d_1_1_Core->f.CopyTexSubImage1D(target, level, xoffset, x, y, width); |
596 | } |
597 | |
598 | inline void QOpenGLFunctions_3_1::glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) |
599 | { |
600 | d_1_1_Core->f.CopyTexImage2D(target, level, internalformat, x, y, width, height, border); |
601 | } |
602 | |
603 | inline void QOpenGLFunctions_3_1::glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border) |
604 | { |
605 | d_1_1_Core->f.CopyTexImage1D(target, level, internalformat, x, y, width, border); |
606 | } |
607 | |
608 | inline void QOpenGLFunctions_3_1::glPolygonOffset(GLfloat factor, GLfloat units) |
609 | { |
610 | d_1_1_Core->f.PolygonOffset(factor, units); |
611 | } |
612 | |
613 | inline void QOpenGLFunctions_3_1::glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) |
614 | { |
615 | d_1_1_Core->f.DrawElements(mode, count, type, indices); |
616 | } |
617 | |
618 | inline void QOpenGLFunctions_3_1::glDrawArrays(GLenum mode, GLint first, GLsizei count) |
619 | { |
620 | d_1_1_Core->f.DrawArrays(mode, first, count); |
621 | } |
622 | |
623 | |
624 | // OpenGL 1.2 core functions |
625 | inline void QOpenGLFunctions_3_1::glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height) |
626 | { |
627 | d_1_2_Core->f.CopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height); |
628 | } |
629 | |
630 | inline void QOpenGLFunctions_3_1::glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels) |
631 | { |
632 | d_1_2_Core->f.TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); |
633 | } |
634 | |
635 | inline void QOpenGLFunctions_3_1::glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels) |
636 | { |
637 | d_1_2_Core->f.TexImage3D(target, level, internalformat, width, height, depth, border, format, type, pixels); |
638 | } |
639 | |
640 | inline void QOpenGLFunctions_3_1::glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices) |
641 | { |
642 | d_1_2_Core->f.DrawRangeElements(mode, start, end, count, type, indices); |
643 | } |
644 | |
645 | inline void QOpenGLFunctions_3_1::glBlendEquation(GLenum mode) |
646 | { |
647 | d_1_2_Core->f.BlendEquation(mode); |
648 | } |
649 | |
650 | inline void QOpenGLFunctions_3_1::glBlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) |
651 | { |
652 | d_1_2_Core->f.BlendColor(red, green, blue, alpha); |
653 | } |
654 | |
655 | |
656 | // OpenGL 1.3 core functions |
657 | inline void QOpenGLFunctions_3_1::glGetCompressedTexImage(GLenum target, GLint level, GLvoid *img) |
658 | { |
659 | d_1_3_Core->f.GetCompressedTexImage(target, level, img); |
660 | } |
661 | |
662 | inline void QOpenGLFunctions_3_1::glCompressedTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data) |
663 | { |
664 | d_1_3_Core->f.CompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data); |
665 | } |
666 | |
667 | inline void QOpenGLFunctions_3_1::glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data) |
668 | { |
669 | d_1_3_Core->f.CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data); |
670 | } |
671 | |
672 | inline void QOpenGLFunctions_3_1::glCompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data) |
673 | { |
674 | d_1_3_Core->f.CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); |
675 | } |
676 | |
677 | inline void QOpenGLFunctions_3_1::glCompressedTexImage1D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data) |
678 | { |
679 | d_1_3_Core->f.CompressedTexImage1D(target, level, internalformat, width, border, imageSize, data); |
680 | } |
681 | |
682 | inline void QOpenGLFunctions_3_1::glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data) |
683 | { |
684 | d_1_3_Core->f.CompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data); |
685 | } |
686 | |
687 | inline void QOpenGLFunctions_3_1::glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data) |
688 | { |
689 | d_1_3_Core->f.CompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data); |
690 | } |
691 | |
692 | inline void QOpenGLFunctions_3_1::glSampleCoverage(GLfloat value, GLboolean invert) |
693 | { |
694 | d_1_3_Core->f.SampleCoverage(value, invert); |
695 | } |
696 | |
697 | inline void QOpenGLFunctions_3_1::glActiveTexture(GLenum texture) |
698 | { |
699 | d_1_3_Core->f.ActiveTexture(texture); |
700 | } |
701 | |
702 | |
703 | // OpenGL 1.4 core functions |
704 | inline void QOpenGLFunctions_3_1::glPointParameteriv(GLenum pname, const GLint *params) |
705 | { |
706 | d_1_4_Core->f.PointParameteriv(pname, params); |
707 | } |
708 | |
709 | inline void QOpenGLFunctions_3_1::glPointParameteri(GLenum pname, GLint param) |
710 | { |
711 | d_1_4_Core->f.PointParameteri(pname, param); |
712 | } |
713 | |
714 | inline void QOpenGLFunctions_3_1::glPointParameterfv(GLenum pname, const GLfloat *params) |
715 | { |
716 | d_1_4_Core->f.PointParameterfv(pname, params); |
717 | } |
718 | |
719 | inline void QOpenGLFunctions_3_1::glPointParameterf(GLenum pname, GLfloat param) |
720 | { |
721 | d_1_4_Core->f.PointParameterf(pname, param); |
722 | } |
723 | |
724 | inline void QOpenGLFunctions_3_1::glMultiDrawElements(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount) |
725 | { |
726 | d_1_4_Core->f.MultiDrawElements(mode, count, type, indices, drawcount); |
727 | } |
728 | |
729 | inline void QOpenGLFunctions_3_1::glMultiDrawArrays(GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount) |
730 | { |
731 | d_1_4_Core->f.MultiDrawArrays(mode, first, count, drawcount); |
732 | } |
733 | |
734 | inline void QOpenGLFunctions_3_1::glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha) |
735 | { |
736 | d_1_4_Core->f.BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); |
737 | } |
738 | |
739 | |
740 | // OpenGL 1.5 core functions |
741 | inline void QOpenGLFunctions_3_1::glGetBufferPointerv(GLenum target, GLenum pname, GLvoid* *params) |
742 | { |
743 | d_1_5_Core->f.GetBufferPointerv(target, pname, params); |
744 | } |
745 | |
746 | inline void QOpenGLFunctions_3_1::glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params) |
747 | { |
748 | d_1_5_Core->f.GetBufferParameteriv(target, pname, params); |
749 | } |
750 | |
751 | inline GLboolean QOpenGLFunctions_3_1::glUnmapBuffer(GLenum target) |
752 | { |
753 | return d_1_5_Core->f.UnmapBuffer(target); |
754 | } |
755 | |
756 | inline GLvoid* QOpenGLFunctions_3_1::glMapBuffer(GLenum target, GLenum access) |
757 | { |
758 | return d_1_5_Core->f.MapBuffer(target, access); |
759 | } |
760 | |
761 | inline void QOpenGLFunctions_3_1::glGetBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data) |
762 | { |
763 | d_1_5_Core->f.GetBufferSubData(target, offset, size, data); |
764 | } |
765 | |
766 | inline void QOpenGLFunctions_3_1::glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data) |
767 | { |
768 | d_1_5_Core->f.BufferSubData(target, offset, size, data); |
769 | } |
770 | |
771 | inline void QOpenGLFunctions_3_1::glBufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage) |
772 | { |
773 | d_1_5_Core->f.BufferData(target, size, data, usage); |
774 | } |
775 | |
776 | inline GLboolean QOpenGLFunctions_3_1::glIsBuffer(GLuint buffer) |
777 | { |
778 | return d_1_5_Core->f.IsBuffer(buffer); |
779 | } |
780 | |
781 | inline void QOpenGLFunctions_3_1::glGenBuffers(GLsizei n, GLuint *buffers) |
782 | { |
783 | d_1_5_Core->f.GenBuffers(n, buffers); |
784 | } |
785 | |
786 | inline void QOpenGLFunctions_3_1::glDeleteBuffers(GLsizei n, const GLuint *buffers) |
787 | { |
788 | d_1_5_Core->f.DeleteBuffers(n, buffers); |
789 | } |
790 | |
791 | inline void QOpenGLFunctions_3_1::glBindBuffer(GLenum target, GLuint buffer) |
792 | { |
793 | d_1_5_Core->f.BindBuffer(target, buffer); |
794 | } |
795 | |
796 | inline void QOpenGLFunctions_3_1::glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params) |
797 | { |
798 | d_1_5_Core->f.GetQueryObjectuiv(id, pname, params); |
799 | } |
800 | |
801 | inline void QOpenGLFunctions_3_1::glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params) |
802 | { |
803 | d_1_5_Core->f.GetQueryObjectiv(id, pname, params); |
804 | } |
805 | |
806 | inline void QOpenGLFunctions_3_1::glGetQueryiv(GLenum target, GLenum pname, GLint *params) |
807 | { |
808 | d_1_5_Core->f.GetQueryiv(target, pname, params); |
809 | } |
810 | |
811 | inline void QOpenGLFunctions_3_1::glEndQuery(GLenum target) |
812 | { |
813 | d_1_5_Core->f.EndQuery(target); |
814 | } |
815 | |
816 | inline void QOpenGLFunctions_3_1::glBeginQuery(GLenum target, GLuint id) |
817 | { |
818 | d_1_5_Core->f.BeginQuery(target, id); |
819 | } |
820 | |
821 | inline GLboolean QOpenGLFunctions_3_1::glIsQuery(GLuint id) |
822 | { |
823 | return d_1_5_Core->f.IsQuery(id); |
824 | } |
825 | |
826 | inline void QOpenGLFunctions_3_1::glDeleteQueries(GLsizei n, const GLuint *ids) |
827 | { |
828 | d_1_5_Core->f.DeleteQueries(n, ids); |
829 | } |
830 | |
831 | inline void QOpenGLFunctions_3_1::glGenQueries(GLsizei n, GLuint *ids) |
832 | { |
833 | d_1_5_Core->f.GenQueries(n, ids); |
834 | } |
835 | |
836 | |
837 | // OpenGL 2.0 core functions |
838 | inline void QOpenGLFunctions_3_1::glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer) |
839 | { |
840 | d_2_0_Core->f.VertexAttribPointer(index, size, type, normalized, stride, pointer); |
841 | } |
842 | |
843 | inline void QOpenGLFunctions_3_1::glValidateProgram(GLuint program) |
844 | { |
845 | d_2_0_Core->f.ValidateProgram(program); |
846 | } |
847 | |
848 | inline void QOpenGLFunctions_3_1::glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
849 | { |
850 | d_2_0_Core->f.UniformMatrix4fv(location, count, transpose, value); |
851 | } |
852 | |
853 | inline void QOpenGLFunctions_3_1::glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
854 | { |
855 | d_2_0_Core->f.UniformMatrix3fv(location, count, transpose, value); |
856 | } |
857 | |
858 | inline void QOpenGLFunctions_3_1::glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
859 | { |
860 | d_2_0_Core->f.UniformMatrix2fv(location, count, transpose, value); |
861 | } |
862 | |
863 | inline void QOpenGLFunctions_3_1::glUniform4iv(GLint location, GLsizei count, const GLint *value) |
864 | { |
865 | d_2_0_Core->f.Uniform4iv(location, count, value); |
866 | } |
867 | |
868 | inline void QOpenGLFunctions_3_1::glUniform3iv(GLint location, GLsizei count, const GLint *value) |
869 | { |
870 | d_2_0_Core->f.Uniform3iv(location, count, value); |
871 | } |
872 | |
873 | inline void QOpenGLFunctions_3_1::glUniform2iv(GLint location, GLsizei count, const GLint *value) |
874 | { |
875 | d_2_0_Core->f.Uniform2iv(location, count, value); |
876 | } |
877 | |
878 | inline void QOpenGLFunctions_3_1::glUniform1iv(GLint location, GLsizei count, const GLint *value) |
879 | { |
880 | d_2_0_Core->f.Uniform1iv(location, count, value); |
881 | } |
882 | |
883 | inline void QOpenGLFunctions_3_1::glUniform4fv(GLint location, GLsizei count, const GLfloat *value) |
884 | { |
885 | d_2_0_Core->f.Uniform4fv(location, count, value); |
886 | } |
887 | |
888 | inline void QOpenGLFunctions_3_1::glUniform3fv(GLint location, GLsizei count, const GLfloat *value) |
889 | { |
890 | d_2_0_Core->f.Uniform3fv(location, count, value); |
891 | } |
892 | |
893 | inline void QOpenGLFunctions_3_1::glUniform2fv(GLint location, GLsizei count, const GLfloat *value) |
894 | { |
895 | d_2_0_Core->f.Uniform2fv(location, count, value); |
896 | } |
897 | |
898 | inline void QOpenGLFunctions_3_1::glUniform1fv(GLint location, GLsizei count, const GLfloat *value) |
899 | { |
900 | d_2_0_Core->f.Uniform1fv(location, count, value); |
901 | } |
902 | |
903 | inline void QOpenGLFunctions_3_1::glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3) |
904 | { |
905 | d_2_0_Core->f.Uniform4i(location, v0, v1, v2, v3); |
906 | } |
907 | |
908 | inline void QOpenGLFunctions_3_1::glUniform3i(GLint location, GLint v0, GLint v1, GLint v2) |
909 | { |
910 | d_2_0_Core->f.Uniform3i(location, v0, v1, v2); |
911 | } |
912 | |
913 | inline void QOpenGLFunctions_3_1::glUniform2i(GLint location, GLint v0, GLint v1) |
914 | { |
915 | d_2_0_Core->f.Uniform2i(location, v0, v1); |
916 | } |
917 | |
918 | inline void QOpenGLFunctions_3_1::glUniform1i(GLint location, GLint v0) |
919 | { |
920 | d_2_0_Core->f.Uniform1i(location, v0); |
921 | } |
922 | |
923 | inline void QOpenGLFunctions_3_1::glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) |
924 | { |
925 | d_2_0_Core->f.Uniform4f(location, v0, v1, v2, v3); |
926 | } |
927 | |
928 | inline void QOpenGLFunctions_3_1::glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2) |
929 | { |
930 | d_2_0_Core->f.Uniform3f(location, v0, v1, v2); |
931 | } |
932 | |
933 | inline void QOpenGLFunctions_3_1::glUniform2f(GLint location, GLfloat v0, GLfloat v1) |
934 | { |
935 | d_2_0_Core->f.Uniform2f(location, v0, v1); |
936 | } |
937 | |
938 | inline void QOpenGLFunctions_3_1::glUniform1f(GLint location, GLfloat v0) |
939 | { |
940 | d_2_0_Core->f.Uniform1f(location, v0); |
941 | } |
942 | |
943 | inline void QOpenGLFunctions_3_1::glUseProgram(GLuint program) |
944 | { |
945 | d_2_0_Core->f.UseProgram(program); |
946 | } |
947 | |
948 | inline void QOpenGLFunctions_3_1::glShaderSource(GLuint shader, GLsizei count, const GLchar* const *string, const GLint *length) |
949 | { |
950 | d_2_0_Core->f.ShaderSource(shader, count, string, length); |
951 | } |
952 | |
953 | inline void QOpenGLFunctions_3_1::glLinkProgram(GLuint program) |
954 | { |
955 | d_2_0_Core->f.LinkProgram(program); |
956 | } |
957 | |
958 | inline GLboolean QOpenGLFunctions_3_1::glIsShader(GLuint shader) |
959 | { |
960 | return d_2_0_Core->f.IsShader(shader); |
961 | } |
962 | |
963 | inline GLboolean QOpenGLFunctions_3_1::glIsProgram(GLuint program) |
964 | { |
965 | return d_2_0_Core->f.IsProgram(program); |
966 | } |
967 | |
968 | inline void QOpenGLFunctions_3_1::glGetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid* *pointer) |
969 | { |
970 | d_2_0_Core->f.GetVertexAttribPointerv(index, pname, pointer); |
971 | } |
972 | |
973 | inline void QOpenGLFunctions_3_1::glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params) |
974 | { |
975 | d_2_0_Core->f.GetVertexAttribiv(index, pname, params); |
976 | } |
977 | |
978 | inline void QOpenGLFunctions_3_1::glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params) |
979 | { |
980 | d_2_0_Core->f.GetVertexAttribfv(index, pname, params); |
981 | } |
982 | |
983 | inline void QOpenGLFunctions_3_1::glGetVertexAttribdv(GLuint index, GLenum pname, GLdouble *params) |
984 | { |
985 | d_2_0_Core->f.GetVertexAttribdv(index, pname, params); |
986 | } |
987 | |
988 | inline void QOpenGLFunctions_3_1::glGetUniformiv(GLuint program, GLint location, GLint *params) |
989 | { |
990 | d_2_0_Core->f.GetUniformiv(program, location, params); |
991 | } |
992 | |
993 | inline void QOpenGLFunctions_3_1::glGetUniformfv(GLuint program, GLint location, GLfloat *params) |
994 | { |
995 | d_2_0_Core->f.GetUniformfv(program, location, params); |
996 | } |
997 | |
998 | inline GLint QOpenGLFunctions_3_1::glGetUniformLocation(GLuint program, const GLchar *name) |
999 | { |
1000 | return d_2_0_Core->f.GetUniformLocation(program, name); |
1001 | } |
1002 | |
1003 | inline void QOpenGLFunctions_3_1::glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source) |
1004 | { |
1005 | d_2_0_Core->f.GetShaderSource(shader, bufSize, length, source); |
1006 | } |
1007 | |
1008 | inline void QOpenGLFunctions_3_1::glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog) |
1009 | { |
1010 | d_2_0_Core->f.GetShaderInfoLog(shader, bufSize, length, infoLog); |
1011 | } |
1012 | |
1013 | inline void QOpenGLFunctions_3_1::glGetShaderiv(GLuint shader, GLenum pname, GLint *params) |
1014 | { |
1015 | d_2_0_Core->f.GetShaderiv(shader, pname, params); |
1016 | } |
1017 | |
1018 | inline void QOpenGLFunctions_3_1::glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog) |
1019 | { |
1020 | d_2_0_Core->f.GetProgramInfoLog(program, bufSize, length, infoLog); |
1021 | } |
1022 | |
1023 | inline void QOpenGLFunctions_3_1::glGetProgramiv(GLuint program, GLenum pname, GLint *params) |
1024 | { |
1025 | d_2_0_Core->f.GetProgramiv(program, pname, params); |
1026 | } |
1027 | |
1028 | inline GLint QOpenGLFunctions_3_1::glGetAttribLocation(GLuint program, const GLchar *name) |
1029 | { |
1030 | return d_2_0_Core->f.GetAttribLocation(program, name); |
1031 | } |
1032 | |
1033 | inline void QOpenGLFunctions_3_1::glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj) |
1034 | { |
1035 | d_2_0_Core->f.GetAttachedShaders(program, maxCount, count, obj); |
1036 | } |
1037 | |
1038 | inline void QOpenGLFunctions_3_1::glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name) |
1039 | { |
1040 | d_2_0_Core->f.GetActiveUniform(program, index, bufSize, length, size, type, name); |
1041 | } |
1042 | |
1043 | inline void QOpenGLFunctions_3_1::glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name) |
1044 | { |
1045 | d_2_0_Core->f.GetActiveAttrib(program, index, bufSize, length, size, type, name); |
1046 | } |
1047 | |
1048 | inline void QOpenGLFunctions_3_1::glEnableVertexAttribArray(GLuint index) |
1049 | { |
1050 | d_2_0_Core->f.EnableVertexAttribArray(index); |
1051 | } |
1052 | |
1053 | inline void QOpenGLFunctions_3_1::glDisableVertexAttribArray(GLuint index) |
1054 | { |
1055 | d_2_0_Core->f.DisableVertexAttribArray(index); |
1056 | } |
1057 | |
1058 | inline void QOpenGLFunctions_3_1::glDetachShader(GLuint program, GLuint shader) |
1059 | { |
1060 | d_2_0_Core->f.DetachShader(program, shader); |
1061 | } |
1062 | |
1063 | inline void QOpenGLFunctions_3_1::glDeleteShader(GLuint shader) |
1064 | { |
1065 | d_2_0_Core->f.DeleteShader(shader); |
1066 | } |
1067 | |
1068 | inline void QOpenGLFunctions_3_1::glDeleteProgram(GLuint program) |
1069 | { |
1070 | d_2_0_Core->f.DeleteProgram(program); |
1071 | } |
1072 | |
1073 | inline GLuint QOpenGLFunctions_3_1::glCreateShader(GLenum type) |
1074 | { |
1075 | return d_2_0_Core->f.CreateShader(type); |
1076 | } |
1077 | |
1078 | inline GLuint QOpenGLFunctions_3_1::glCreateProgram() |
1079 | { |
1080 | return d_2_0_Core->f.CreateProgram(); |
1081 | } |
1082 | |
1083 | inline void QOpenGLFunctions_3_1::glCompileShader(GLuint shader) |
1084 | { |
1085 | d_2_0_Core->f.CompileShader(shader); |
1086 | } |
1087 | |
1088 | inline void QOpenGLFunctions_3_1::glBindAttribLocation(GLuint program, GLuint index, const GLchar *name) |
1089 | { |
1090 | d_2_0_Core->f.BindAttribLocation(program, index, name); |
1091 | } |
1092 | |
1093 | inline void QOpenGLFunctions_3_1::glAttachShader(GLuint program, GLuint shader) |
1094 | { |
1095 | d_2_0_Core->f.AttachShader(program, shader); |
1096 | } |
1097 | |
1098 | inline void QOpenGLFunctions_3_1::glStencilMaskSeparate(GLenum face, GLuint mask) |
1099 | { |
1100 | d_2_0_Core->f.StencilMaskSeparate(face, mask); |
1101 | } |
1102 | |
1103 | inline void QOpenGLFunctions_3_1::glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) |
1104 | { |
1105 | d_2_0_Core->f.StencilFuncSeparate(face, func, ref, mask); |
1106 | } |
1107 | |
1108 | inline void QOpenGLFunctions_3_1::glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass) |
1109 | { |
1110 | d_2_0_Core->f.StencilOpSeparate(face, sfail, dpfail, dppass); |
1111 | } |
1112 | |
1113 | inline void QOpenGLFunctions_3_1::glDrawBuffers(GLsizei n, const GLenum *bufs) |
1114 | { |
1115 | d_2_0_Core->f.DrawBuffers(n, bufs); |
1116 | } |
1117 | |
1118 | inline void QOpenGLFunctions_3_1::glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) |
1119 | { |
1120 | d_2_0_Core->f.BlendEquationSeparate(modeRGB, modeAlpha); |
1121 | } |
1122 | |
1123 | |
1124 | // OpenGL 2.1 core functions |
1125 | inline void QOpenGLFunctions_3_1::glUniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
1126 | { |
1127 | d_2_1_Core->f.UniformMatrix4x3fv(location, count, transpose, value); |
1128 | } |
1129 | |
1130 | inline void QOpenGLFunctions_3_1::glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
1131 | { |
1132 | d_2_1_Core->f.UniformMatrix3x4fv(location, count, transpose, value); |
1133 | } |
1134 | |
1135 | inline void QOpenGLFunctions_3_1::glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
1136 | { |
1137 | d_2_1_Core->f.UniformMatrix4x2fv(location, count, transpose, value); |
1138 | } |
1139 | |
1140 | inline void QOpenGLFunctions_3_1::glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
1141 | { |
1142 | d_2_1_Core->f.UniformMatrix2x4fv(location, count, transpose, value); |
1143 | } |
1144 | |
1145 | inline void QOpenGLFunctions_3_1::glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
1146 | { |
1147 | d_2_1_Core->f.UniformMatrix3x2fv(location, count, transpose, value); |
1148 | } |
1149 | |
1150 | inline void QOpenGLFunctions_3_1::glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
1151 | { |
1152 | d_2_1_Core->f.UniformMatrix2x3fv(location, count, transpose, value); |
1153 | } |
1154 | |
1155 | |
1156 | // OpenGL 3.0 core functions |
1157 | inline GLboolean QOpenGLFunctions_3_1::glIsVertexArray(GLuint array) |
1158 | { |
1159 | return d_3_0_Core->f.IsVertexArray(array); |
1160 | } |
1161 | |
1162 | inline void QOpenGLFunctions_3_1::glGenVertexArrays(GLsizei n, GLuint *arrays) |
1163 | { |
1164 | d_3_0_Core->f.GenVertexArrays(n, arrays); |
1165 | } |
1166 | |
1167 | inline void QOpenGLFunctions_3_1::glDeleteVertexArrays(GLsizei n, const GLuint *arrays) |
1168 | { |
1169 | d_3_0_Core->f.DeleteVertexArrays(n, arrays); |
1170 | } |
1171 | |
1172 | inline void QOpenGLFunctions_3_1::glBindVertexArray(GLuint array) |
1173 | { |
1174 | d_3_0_Core->f.BindVertexArray(array); |
1175 | } |
1176 | |
1177 | inline void QOpenGLFunctions_3_1::glFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length) |
1178 | { |
1179 | d_3_0_Core->f.FlushMappedBufferRange(target, offset, length); |
1180 | } |
1181 | |
1182 | inline GLvoid* QOpenGLFunctions_3_1::glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access) |
1183 | { |
1184 | return d_3_0_Core->f.MapBufferRange(target, offset, length, access); |
1185 | } |
1186 | |
1187 | inline void QOpenGLFunctions_3_1::glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer) |
1188 | { |
1189 | d_3_0_Core->f.FramebufferTextureLayer(target, attachment, texture, level, layer); |
1190 | } |
1191 | |
1192 | inline void QOpenGLFunctions_3_1::glRenderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height) |
1193 | { |
1194 | d_3_0_Core->f.RenderbufferStorageMultisample(target, samples, internalformat, width, height); |
1195 | } |
1196 | |
1197 | inline void QOpenGLFunctions_3_1::glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) |
1198 | { |
1199 | d_3_0_Core->f.BlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); |
1200 | } |
1201 | |
1202 | inline void QOpenGLFunctions_3_1::glGenerateMipmap(GLenum target) |
1203 | { |
1204 | d_3_0_Core->f.GenerateMipmap(target); |
1205 | } |
1206 | |
1207 | inline void QOpenGLFunctions_3_1::glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params) |
1208 | { |
1209 | d_3_0_Core->f.GetFramebufferAttachmentParameteriv(target, attachment, pname, params); |
1210 | } |
1211 | |
1212 | inline void QOpenGLFunctions_3_1::glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) |
1213 | { |
1214 | d_3_0_Core->f.FramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer); |
1215 | } |
1216 | |
1217 | inline void QOpenGLFunctions_3_1::glFramebufferTexture3D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset) |
1218 | { |
1219 | d_3_0_Core->f.FramebufferTexture3D(target, attachment, textarget, texture, level, zoffset); |
1220 | } |
1221 | |
1222 | inline void QOpenGLFunctions_3_1::glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) |
1223 | { |
1224 | d_3_0_Core->f.FramebufferTexture2D(target, attachment, textarget, texture, level); |
1225 | } |
1226 | |
1227 | inline void QOpenGLFunctions_3_1::glFramebufferTexture1D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) |
1228 | { |
1229 | d_3_0_Core->f.FramebufferTexture1D(target, attachment, textarget, texture, level); |
1230 | } |
1231 | |
1232 | inline GLenum QOpenGLFunctions_3_1::glCheckFramebufferStatus(GLenum target) |
1233 | { |
1234 | return d_3_0_Core->f.CheckFramebufferStatus(target); |
1235 | } |
1236 | |
1237 | inline void QOpenGLFunctions_3_1::glGenFramebuffers(GLsizei n, GLuint *framebuffers) |
1238 | { |
1239 | d_3_0_Core->f.GenFramebuffers(n, framebuffers); |
1240 | } |
1241 | |
1242 | inline void QOpenGLFunctions_3_1::glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers) |
1243 | { |
1244 | d_3_0_Core->f.DeleteFramebuffers(n, framebuffers); |
1245 | } |
1246 | |
1247 | inline void QOpenGLFunctions_3_1::glBindFramebuffer(GLenum target, GLuint framebuffer) |
1248 | { |
1249 | d_3_0_Core->f.BindFramebuffer(target, framebuffer); |
1250 | } |
1251 | |
1252 | inline GLboolean QOpenGLFunctions_3_1::glIsFramebuffer(GLuint framebuffer) |
1253 | { |
1254 | return d_3_0_Core->f.IsFramebuffer(framebuffer); |
1255 | } |
1256 | |
1257 | inline void QOpenGLFunctions_3_1::glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params) |
1258 | { |
1259 | d_3_0_Core->f.GetRenderbufferParameteriv(target, pname, params); |
1260 | } |
1261 | |
1262 | inline void QOpenGLFunctions_3_1::glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) |
1263 | { |
1264 | d_3_0_Core->f.RenderbufferStorage(target, internalformat, width, height); |
1265 | } |
1266 | |
1267 | inline void QOpenGLFunctions_3_1::glGenRenderbuffers(GLsizei n, GLuint *renderbuffers) |
1268 | { |
1269 | d_3_0_Core->f.GenRenderbuffers(n, renderbuffers); |
1270 | } |
1271 | |
1272 | inline void QOpenGLFunctions_3_1::glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers) |
1273 | { |
1274 | d_3_0_Core->f.DeleteRenderbuffers(n, renderbuffers); |
1275 | } |
1276 | |
1277 | inline void QOpenGLFunctions_3_1::glBindRenderbuffer(GLenum target, GLuint renderbuffer) |
1278 | { |
1279 | d_3_0_Core->f.BindRenderbuffer(target, renderbuffer); |
1280 | } |
1281 | |
1282 | inline GLboolean QOpenGLFunctions_3_1::glIsRenderbuffer(GLuint renderbuffer) |
1283 | { |
1284 | return d_3_0_Core->f.IsRenderbuffer(renderbuffer); |
1285 | } |
1286 | |
1287 | inline const GLubyte * QOpenGLFunctions_3_1::glGetStringi(GLenum name, GLuint index) |
1288 | { |
1289 | return d_3_0_Core->f.GetStringi(name, index); |
1290 | } |
1291 | |
1292 | inline void QOpenGLFunctions_3_1::glClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil) |
1293 | { |
1294 | d_3_0_Core->f.ClearBufferfi(buffer, drawbuffer, depth, stencil); |
1295 | } |
1296 | |
1297 | inline void QOpenGLFunctions_3_1::glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value) |
1298 | { |
1299 | d_3_0_Core->f.ClearBufferfv(buffer, drawbuffer, value); |
1300 | } |
1301 | |
1302 | inline void QOpenGLFunctions_3_1::glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value) |
1303 | { |
1304 | d_3_0_Core->f.ClearBufferuiv(buffer, drawbuffer, value); |
1305 | } |
1306 | |
1307 | inline void QOpenGLFunctions_3_1::glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value) |
1308 | { |
1309 | d_3_0_Core->f.ClearBufferiv(buffer, drawbuffer, value); |
1310 | } |
1311 | |
1312 | inline void QOpenGLFunctions_3_1::glGetTexParameterIuiv(GLenum target, GLenum pname, GLuint *params) |
1313 | { |
1314 | d_3_0_Core->f.GetTexParameterIuiv(target, pname, params); |
1315 | } |
1316 | |
1317 | inline void QOpenGLFunctions_3_1::glGetTexParameterIiv(GLenum target, GLenum pname, GLint *params) |
1318 | { |
1319 | d_3_0_Core->f.GetTexParameterIiv(target, pname, params); |
1320 | } |
1321 | |
1322 | inline void QOpenGLFunctions_3_1::glTexParameterIuiv(GLenum target, GLenum pname, const GLuint *params) |
1323 | { |
1324 | d_3_0_Core->f.TexParameterIuiv(target, pname, params); |
1325 | } |
1326 | |
1327 | inline void QOpenGLFunctions_3_1::glTexParameterIiv(GLenum target, GLenum pname, const GLint *params) |
1328 | { |
1329 | d_3_0_Core->f.TexParameterIiv(target, pname, params); |
1330 | } |
1331 | |
1332 | inline void QOpenGLFunctions_3_1::glUniform4uiv(GLint location, GLsizei count, const GLuint *value) |
1333 | { |
1334 | d_3_0_Core->f.Uniform4uiv(location, count, value); |
1335 | } |
1336 | |
1337 | inline void QOpenGLFunctions_3_1::glUniform3uiv(GLint location, GLsizei count, const GLuint *value) |
1338 | { |
1339 | d_3_0_Core->f.Uniform3uiv(location, count, value); |
1340 | } |
1341 | |
1342 | inline void QOpenGLFunctions_3_1::glUniform2uiv(GLint location, GLsizei count, const GLuint *value) |
1343 | { |
1344 | d_3_0_Core->f.Uniform2uiv(location, count, value); |
1345 | } |
1346 | |
1347 | inline void QOpenGLFunctions_3_1::glUniform1uiv(GLint location, GLsizei count, const GLuint *value) |
1348 | { |
1349 | d_3_0_Core->f.Uniform1uiv(location, count, value); |
1350 | } |
1351 | |
1352 | inline void QOpenGLFunctions_3_1::glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) |
1353 | { |
1354 | d_3_0_Core->f.Uniform4ui(location, v0, v1, v2, v3); |
1355 | } |
1356 | |
1357 | inline void QOpenGLFunctions_3_1::glUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2) |
1358 | { |
1359 | d_3_0_Core->f.Uniform3ui(location, v0, v1, v2); |
1360 | } |
1361 | |
1362 | inline void QOpenGLFunctions_3_1::glUniform2ui(GLint location, GLuint v0, GLuint v1) |
1363 | { |
1364 | d_3_0_Core->f.Uniform2ui(location, v0, v1); |
1365 | } |
1366 | |
1367 | inline void QOpenGLFunctions_3_1::glUniform1ui(GLint location, GLuint v0) |
1368 | { |
1369 | d_3_0_Core->f.Uniform1ui(location, v0); |
1370 | } |
1371 | |
1372 | inline GLint QOpenGLFunctions_3_1::glGetFragDataLocation(GLuint program, const GLchar *name) |
1373 | { |
1374 | return d_3_0_Core->f.GetFragDataLocation(program, name); |
1375 | } |
1376 | |
1377 | inline void QOpenGLFunctions_3_1::glBindFragDataLocation(GLuint program, GLuint color, const GLchar *name) |
1378 | { |
1379 | d_3_0_Core->f.BindFragDataLocation(program, color, name); |
1380 | } |
1381 | |
1382 | inline void QOpenGLFunctions_3_1::glGetUniformuiv(GLuint program, GLint location, GLuint *params) |
1383 | { |
1384 | d_3_0_Core->f.GetUniformuiv(program, location, params); |
1385 | } |
1386 | |
1387 | inline void QOpenGLFunctions_3_1::glGetVertexAttribIuiv(GLuint index, GLenum pname, GLuint *params) |
1388 | { |
1389 | d_3_0_Core->f.GetVertexAttribIuiv(index, pname, params); |
1390 | } |
1391 | |
1392 | inline void QOpenGLFunctions_3_1::glGetVertexAttribIiv(GLuint index, GLenum pname, GLint *params) |
1393 | { |
1394 | d_3_0_Core->f.GetVertexAttribIiv(index, pname, params); |
1395 | } |
1396 | |
1397 | inline void QOpenGLFunctions_3_1::glVertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) |
1398 | { |
1399 | d_3_0_Core->f.VertexAttribIPointer(index, size, type, stride, pointer); |
1400 | } |
1401 | |
1402 | inline void QOpenGLFunctions_3_1::glEndConditionalRender() |
1403 | { |
1404 | d_3_0_Core->f.EndConditionalRender(); |
1405 | } |
1406 | |
1407 | inline void QOpenGLFunctions_3_1::glBeginConditionalRender(GLuint id, GLenum mode) |
1408 | { |
1409 | d_3_0_Core->f.BeginConditionalRender(id, mode); |
1410 | } |
1411 | |
1412 | inline void QOpenGLFunctions_3_1::glClampColor(GLenum target, GLenum clamp) |
1413 | { |
1414 | d_3_0_Core->f.ClampColor(target, clamp); |
1415 | } |
1416 | |
1417 | inline void QOpenGLFunctions_3_1::glGetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name) |
1418 | { |
1419 | d_3_0_Core->f.GetTransformFeedbackVarying(program, index, bufSize, length, size, type, name); |
1420 | } |
1421 | |
1422 | inline void QOpenGLFunctions_3_1::glTransformFeedbackVaryings(GLuint program, GLsizei count, const GLchar* const *varyings, GLenum bufferMode) |
1423 | { |
1424 | d_3_0_Core->f.TransformFeedbackVaryings(program, count, varyings, bufferMode); |
1425 | } |
1426 | |
1427 | inline void QOpenGLFunctions_3_1::glBindBufferBase(GLenum target, GLuint index, GLuint buffer) |
1428 | { |
1429 | d_3_0_Core->f.BindBufferBase(target, index, buffer); |
1430 | } |
1431 | |
1432 | inline void QOpenGLFunctions_3_1::glBindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size) |
1433 | { |
1434 | d_3_0_Core->f.BindBufferRange(target, index, buffer, offset, size); |
1435 | } |
1436 | |
1437 | inline void QOpenGLFunctions_3_1::glEndTransformFeedback() |
1438 | { |
1439 | d_3_0_Core->f.EndTransformFeedback(); |
1440 | } |
1441 | |
1442 | inline void QOpenGLFunctions_3_1::glBeginTransformFeedback(GLenum primitiveMode) |
1443 | { |
1444 | d_3_0_Core->f.BeginTransformFeedback(primitiveMode); |
1445 | } |
1446 | |
1447 | inline GLboolean QOpenGLFunctions_3_1::glIsEnabledi(GLenum target, GLuint index) |
1448 | { |
1449 | return d_3_0_Core->f.IsEnabledi(target, index); |
1450 | } |
1451 | |
1452 | inline void QOpenGLFunctions_3_1::glDisablei(GLenum target, GLuint index) |
1453 | { |
1454 | d_3_0_Core->f.Disablei(target, index); |
1455 | } |
1456 | |
1457 | inline void QOpenGLFunctions_3_1::glEnablei(GLenum target, GLuint index) |
1458 | { |
1459 | d_3_0_Core->f.Enablei(target, index); |
1460 | } |
1461 | |
1462 | inline void QOpenGLFunctions_3_1::glGetIntegeri_v(GLenum target, GLuint index, GLint *data) |
1463 | { |
1464 | d_3_0_Core->f.GetIntegeri_v(target, index, data); |
1465 | } |
1466 | |
1467 | inline void QOpenGLFunctions_3_1::glGetBooleani_v(GLenum target, GLuint index, GLboolean *data) |
1468 | { |
1469 | d_3_0_Core->f.GetBooleani_v(target, index, data); |
1470 | } |
1471 | |
1472 | inline void QOpenGLFunctions_3_1::glColorMaski(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a) |
1473 | { |
1474 | d_3_0_Core->f.ColorMaski(index, r, g, b, a); |
1475 | } |
1476 | |
1477 | |
1478 | // OpenGL 3.1 core functions |
1479 | inline void QOpenGLFunctions_3_1::glCopyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size) |
1480 | { |
1481 | d_3_1_Core->f.CopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size); |
1482 | } |
1483 | |
1484 | inline void QOpenGLFunctions_3_1::glUniformBlockBinding(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding) |
1485 | { |
1486 | d_3_1_Core->f.UniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding); |
1487 | } |
1488 | |
1489 | inline void QOpenGLFunctions_3_1::glGetActiveUniformBlockName(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName) |
1490 | { |
1491 | d_3_1_Core->f.GetActiveUniformBlockName(program, uniformBlockIndex, bufSize, length, uniformBlockName); |
1492 | } |
1493 | |
1494 | inline void QOpenGLFunctions_3_1::glGetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params) |
1495 | { |
1496 | d_3_1_Core->f.GetActiveUniformBlockiv(program, uniformBlockIndex, pname, params); |
1497 | } |
1498 | |
1499 | inline GLuint QOpenGLFunctions_3_1::glGetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName) |
1500 | { |
1501 | return d_3_1_Core->f.GetUniformBlockIndex(program, uniformBlockName); |
1502 | } |
1503 | |
1504 | inline void QOpenGLFunctions_3_1::glGetActiveUniformName(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName) |
1505 | { |
1506 | d_3_1_Core->f.GetActiveUniformName(program, uniformIndex, bufSize, length, uniformName); |
1507 | } |
1508 | |
1509 | inline void QOpenGLFunctions_3_1::glGetActiveUniformsiv(GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params) |
1510 | { |
1511 | d_3_1_Core->f.GetActiveUniformsiv(program, uniformCount, uniformIndices, pname, params); |
1512 | } |
1513 | |
1514 | inline void QOpenGLFunctions_3_1::glGetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar* const *uniformNames, GLuint *uniformIndices) |
1515 | { |
1516 | d_3_1_Core->f.GetUniformIndices(program, uniformCount, uniformNames, uniformIndices); |
1517 | } |
1518 | |
1519 | inline void QOpenGLFunctions_3_1::glPrimitiveRestartIndex(GLuint index) |
1520 | { |
1521 | d_3_1_Core->f.PrimitiveRestartIndex(index); |
1522 | } |
1523 | |
1524 | inline void QOpenGLFunctions_3_1::glTexBuffer(GLenum target, GLenum internalformat, GLuint buffer) |
1525 | { |
1526 | d_3_1_Core->f.TexBuffer(target, internalformat, buffer); |
1527 | } |
1528 | |
1529 | inline void QOpenGLFunctions_3_1::glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount) |
1530 | { |
1531 | d_3_1_Core->f.DrawElementsInstanced(mode, count, type, indices, instancecount); |
1532 | } |
1533 | |
1534 | inline void QOpenGLFunctions_3_1::glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instancecount) |
1535 | { |
1536 | d_3_1_Core->f.DrawArraysInstanced(mode, first, count, instancecount); |
1537 | } |
1538 | |
1539 | |
1540 | |
1541 | QT_END_NAMESPACE |
1542 | |
1543 | #endif // QT_NO_OPENGL && !QT_CONFIG(opengles2) |
1544 | |
1545 | #endif |
1546 | |