1 | /**************************************************************************** |
2 | ** |
3 | ** Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB) |
4 | ** Copyright (C) 2016 The Qt Company Ltd. |
5 | ** Contact: https://www.qt.io/licensing/ |
6 | ** |
7 | ** This file is part of the QtGui module of the Qt Toolkit. |
8 | ** |
9 | ** $QT_BEGIN_LICENSE:LGPL$ |
10 | ** Commercial License Usage |
11 | ** Licensees holding valid commercial Qt licenses may use this file in |
12 | ** accordance with the commercial license agreement provided with the |
13 | ** Software or, alternatively, in accordance with the terms contained in |
14 | ** a written agreement between you and The Qt Company. For licensing terms |
15 | ** and conditions see https://www.qt.io/terms-conditions. For further |
16 | ** information use the contact form at https://www.qt.io/contact-us. |
17 | ** |
18 | ** GNU Lesser General Public License Usage |
19 | ** Alternatively, this file may be used under the terms of the GNU Lesser |
20 | ** General Public License version 3 as published by the Free Software |
21 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the |
22 | ** packaging of this file. Please review the following information to |
23 | ** ensure the GNU Lesser General Public License version 3 requirements |
24 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. |
25 | ** |
26 | ** GNU General Public License Usage |
27 | ** Alternatively, this file may be used under the terms of the GNU |
28 | ** General Public License version 2.0 or (at your option) the GNU General |
29 | ** Public license version 3 or any later version approved by the KDE Free |
30 | ** Qt Foundation. The licenses are as published by the Free Software |
31 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 |
32 | ** included in the packaging of this file. Please review the following |
33 | ** information to ensure the GNU General Public License requirements will |
34 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and |
35 | ** https://www.gnu.org/licenses/gpl-3.0.html. |
36 | ** |
37 | ** $QT_END_LICENSE$ |
38 | ** |
39 | ** |
40 | ** This file was generated by glgen version 0.1 |
41 | ** Command line was: glgen |
42 | ** |
43 | ** glgen is Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB) |
44 | ** |
45 | ** This is an auto-generated file. |
46 | ** Do not edit! All changes made to it will be lost. |
47 | ** |
48 | ****************************************************************************/ |
49 | |
50 | #ifndef QOPENGLVERSIONFUNCTIONS_3_2_COMPATIBILITY_H |
51 | #define QOPENGLVERSIONFUNCTIONS_3_2_COMPATIBILITY_H |
52 | |
53 | #include <QtGui/qtguiglobal.h> |
54 | |
55 | #if !defined(QT_NO_OPENGL) && !defined(QT_OPENGL_ES_2) |
56 | |
57 | #include <QtGui/QOpenGLVersionFunctions> |
58 | #include <QtGui/qopenglcontext.h> |
59 | |
60 | QT_BEGIN_NAMESPACE |
61 | |
62 | class Q_GUI_EXPORT QOpenGLFunctions_3_2_Compatibility : public QAbstractOpenGLFunctions |
63 | { |
64 | public: |
65 | QOpenGLFunctions_3_2_Compatibility(); |
66 | ~QOpenGLFunctions_3_2_Compatibility(); |
67 | |
68 | bool initializeOpenGLFunctions() override; |
69 | |
70 | // OpenGL 1.0 core functions |
71 | void glViewport(GLint x, GLint y, GLsizei width, GLsizei height); |
72 | void glDepthRange(GLdouble nearVal, GLdouble farVal); |
73 | GLboolean glIsEnabled(GLenum cap); |
74 | void glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params); |
75 | void glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params); |
76 | void glGetTexParameteriv(GLenum target, GLenum pname, GLint *params); |
77 | void glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params); |
78 | void glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); |
79 | const GLubyte * glGetString(GLenum name); |
80 | void glGetIntegerv(GLenum pname, GLint *params); |
81 | void glGetFloatv(GLenum pname, GLfloat *params); |
82 | GLenum glGetError(); |
83 | void glGetDoublev(GLenum pname, GLdouble *params); |
84 | void glGetBooleanv(GLenum pname, GLboolean *params); |
85 | void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); |
86 | void glReadBuffer(GLenum mode); |
87 | void glPixelStorei(GLenum pname, GLint param); |
88 | void glPixelStoref(GLenum pname, GLfloat param); |
89 | void glDepthFunc(GLenum func); |
90 | void glStencilOp(GLenum fail, GLenum zfail, GLenum zpass); |
91 | void glStencilFunc(GLenum func, GLint ref, GLuint mask); |
92 | void glLogicOp(GLenum opcode); |
93 | void glBlendFunc(GLenum sfactor, GLenum dfactor); |
94 | void glFlush(); |
95 | void glFinish(); |
96 | void glEnable(GLenum cap); |
97 | void glDisable(GLenum cap); |
98 | void glDepthMask(GLboolean flag); |
99 | void glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); |
100 | void glStencilMask(GLuint mask); |
101 | void glClearDepth(GLdouble depth); |
102 | void glClearStencil(GLint s); |
103 | void glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); |
104 | void glClear(GLbitfield mask); |
105 | void glDrawBuffer(GLenum mode); |
106 | void glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); |
107 | void glTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); |
108 | void glTexParameteriv(GLenum target, GLenum pname, const GLint *params); |
109 | void glTexParameteri(GLenum target, GLenum pname, GLint param); |
110 | void glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params); |
111 | void glTexParameterf(GLenum target, GLenum pname, GLfloat param); |
112 | void glScissor(GLint x, GLint y, GLsizei width, GLsizei height); |
113 | void glPolygonMode(GLenum face, GLenum mode); |
114 | void glPointSize(GLfloat size); |
115 | void glLineWidth(GLfloat width); |
116 | void glHint(GLenum target, GLenum mode); |
117 | void glFrontFace(GLenum mode); |
118 | void glCullFace(GLenum mode); |
119 | |
120 | // OpenGL 1.1 core functions |
121 | void glIndexubv(const GLubyte *c); |
122 | void glIndexub(GLubyte c); |
123 | GLboolean glIsTexture(GLuint texture); |
124 | void glGenTextures(GLsizei n, GLuint *textures); |
125 | void glDeleteTextures(GLsizei n, const GLuint *textures); |
126 | void glBindTexture(GLenum target, GLuint texture); |
127 | void glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); |
128 | void glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); |
129 | void glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); |
130 | void glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); |
131 | void glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); |
132 | void glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); |
133 | void glPolygonOffset(GLfloat factor, GLfloat units); |
134 | void glGetPointerv(GLenum pname, GLvoid* *params); |
135 | void glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); |
136 | void glDrawArrays(GLenum mode, GLint first, GLsizei count); |
137 | |
138 | // OpenGL 1.2 core functions |
139 | void glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); |
140 | void glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); |
141 | void glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); |
142 | void glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); |
143 | void glBlendEquation(GLenum mode); |
144 | void glBlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); |
145 | |
146 | // OpenGL 1.3 core functions |
147 | void glGetCompressedTexImage(GLenum target, GLint level, GLvoid *img); |
148 | void glCompressedTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data); |
149 | void glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); |
150 | void glCompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data); |
151 | void glCompressedTexImage1D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data); |
152 | void glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); |
153 | void glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data); |
154 | void glSampleCoverage(GLfloat value, GLboolean invert); |
155 | void glActiveTexture(GLenum texture); |
156 | |
157 | // OpenGL 1.4 core functions |
158 | void glPointParameteriv(GLenum pname, const GLint *params); |
159 | void glPointParameteri(GLenum pname, GLint param); |
160 | void glPointParameterfv(GLenum pname, const GLfloat *params); |
161 | void glPointParameterf(GLenum pname, GLfloat param); |
162 | void glMultiDrawElements(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount); |
163 | void glMultiDrawArrays(GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount); |
164 | void glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); |
165 | |
166 | // OpenGL 1.5 core functions |
167 | void glGetBufferPointerv(GLenum target, GLenum pname, GLvoid* *params); |
168 | void glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params); |
169 | GLboolean glUnmapBuffer(GLenum target); |
170 | GLvoid* glMapBuffer(GLenum target, GLenum access); |
171 | void glGetBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data); |
172 | void glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data); |
173 | void glBufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage); |
174 | GLboolean glIsBuffer(GLuint buffer); |
175 | void glGenBuffers(GLsizei n, GLuint *buffers); |
176 | void glDeleteBuffers(GLsizei n, const GLuint *buffers); |
177 | void glBindBuffer(GLenum target, GLuint buffer); |
178 | void glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params); |
179 | void glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params); |
180 | void glGetQueryiv(GLenum target, GLenum pname, GLint *params); |
181 | void glEndQuery(GLenum target); |
182 | void glBeginQuery(GLenum target, GLuint id); |
183 | GLboolean glIsQuery(GLuint id); |
184 | void glDeleteQueries(GLsizei n, const GLuint *ids); |
185 | void glGenQueries(GLsizei n, GLuint *ids); |
186 | |
187 | // OpenGL 2.0 core functions |
188 | void glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer); |
189 | void glValidateProgram(GLuint program); |
190 | void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
191 | void glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
192 | void glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
193 | void glUniform4iv(GLint location, GLsizei count, const GLint *value); |
194 | void glUniform3iv(GLint location, GLsizei count, const GLint *value); |
195 | void glUniform2iv(GLint location, GLsizei count, const GLint *value); |
196 | void glUniform1iv(GLint location, GLsizei count, const GLint *value); |
197 | void glUniform4fv(GLint location, GLsizei count, const GLfloat *value); |
198 | void glUniform3fv(GLint location, GLsizei count, const GLfloat *value); |
199 | void glUniform2fv(GLint location, GLsizei count, const GLfloat *value); |
200 | void glUniform1fv(GLint location, GLsizei count, const GLfloat *value); |
201 | void glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3); |
202 | void glUniform3i(GLint location, GLint v0, GLint v1, GLint v2); |
203 | void glUniform2i(GLint location, GLint v0, GLint v1); |
204 | void glUniform1i(GLint location, GLint v0); |
205 | void glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); |
206 | void glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2); |
207 | void glUniform2f(GLint location, GLfloat v0, GLfloat v1); |
208 | void glUniform1f(GLint location, GLfloat v0); |
209 | void glUseProgram(GLuint program); |
210 | void glShaderSource(GLuint shader, GLsizei count, const GLchar* const *string, const GLint *length); |
211 | void glLinkProgram(GLuint program); |
212 | GLboolean glIsShader(GLuint shader); |
213 | GLboolean glIsProgram(GLuint program); |
214 | void glGetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid* *pointer); |
215 | void glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params); |
216 | void glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params); |
217 | void glGetVertexAttribdv(GLuint index, GLenum pname, GLdouble *params); |
218 | void glGetUniformiv(GLuint program, GLint location, GLint *params); |
219 | void glGetUniformfv(GLuint program, GLint location, GLfloat *params); |
220 | GLint glGetUniformLocation(GLuint program, const GLchar *name); |
221 | void glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source); |
222 | void glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); |
223 | void glGetShaderiv(GLuint shader, GLenum pname, GLint *params); |
224 | void glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); |
225 | void glGetProgramiv(GLuint program, GLenum pname, GLint *params); |
226 | GLint glGetAttribLocation(GLuint program, const GLchar *name); |
227 | void glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj); |
228 | void glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); |
229 | void glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); |
230 | void glEnableVertexAttribArray(GLuint index); |
231 | void glDisableVertexAttribArray(GLuint index); |
232 | void glDetachShader(GLuint program, GLuint shader); |
233 | void glDeleteShader(GLuint shader); |
234 | void glDeleteProgram(GLuint program); |
235 | GLuint glCreateShader(GLenum type); |
236 | GLuint glCreateProgram(); |
237 | void glCompileShader(GLuint shader); |
238 | void glBindAttribLocation(GLuint program, GLuint index, const GLchar *name); |
239 | void glAttachShader(GLuint program, GLuint shader); |
240 | void glStencilMaskSeparate(GLenum face, GLuint mask); |
241 | void glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask); |
242 | void glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); |
243 | void glDrawBuffers(GLsizei n, const GLenum *bufs); |
244 | void glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha); |
245 | |
246 | // OpenGL 2.1 core functions |
247 | void glUniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
248 | void glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
249 | void glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
250 | void glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
251 | void glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
252 | void glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
253 | |
254 | // OpenGL 3.0 core functions |
255 | GLboolean glIsVertexArray(GLuint array); |
256 | void glGenVertexArrays(GLsizei n, GLuint *arrays); |
257 | void glDeleteVertexArrays(GLsizei n, const GLuint *arrays); |
258 | void glBindVertexArray(GLuint array); |
259 | void glFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length); |
260 | GLvoid* glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); |
261 | void glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); |
262 | void glRenderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); |
263 | void glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); |
264 | void glGenerateMipmap(GLenum target); |
265 | void glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params); |
266 | void glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); |
267 | void glFramebufferTexture3D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); |
268 | void glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); |
269 | void glFramebufferTexture1D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); |
270 | GLenum glCheckFramebufferStatus(GLenum target); |
271 | void glGenFramebuffers(GLsizei n, GLuint *framebuffers); |
272 | void glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers); |
273 | void glBindFramebuffer(GLenum target, GLuint framebuffer); |
274 | GLboolean glIsFramebuffer(GLuint framebuffer); |
275 | void glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params); |
276 | void glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height); |
277 | void glGenRenderbuffers(GLsizei n, GLuint *renderbuffers); |
278 | void glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers); |
279 | void glBindRenderbuffer(GLenum target, GLuint renderbuffer); |
280 | GLboolean glIsRenderbuffer(GLuint renderbuffer); |
281 | const GLubyte * glGetStringi(GLenum name, GLuint index); |
282 | void glClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); |
283 | void glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value); |
284 | void glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value); |
285 | void glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value); |
286 | void glGetTexParameterIuiv(GLenum target, GLenum pname, GLuint *params); |
287 | void glGetTexParameterIiv(GLenum target, GLenum pname, GLint *params); |
288 | void glTexParameterIuiv(GLenum target, GLenum pname, const GLuint *params); |
289 | void glTexParameterIiv(GLenum target, GLenum pname, const GLint *params); |
290 | void glUniform4uiv(GLint location, GLsizei count, const GLuint *value); |
291 | void glUniform3uiv(GLint location, GLsizei count, const GLuint *value); |
292 | void glUniform2uiv(GLint location, GLsizei count, const GLuint *value); |
293 | void glUniform1uiv(GLint location, GLsizei count, const GLuint *value); |
294 | void glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); |
295 | void glUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2); |
296 | void glUniform2ui(GLint location, GLuint v0, GLuint v1); |
297 | void glUniform1ui(GLint location, GLuint v0); |
298 | GLint glGetFragDataLocation(GLuint program, const GLchar *name); |
299 | void glBindFragDataLocation(GLuint program, GLuint color, const GLchar *name); |
300 | void glGetUniformuiv(GLuint program, GLint location, GLuint *params); |
301 | void glGetVertexAttribIuiv(GLuint index, GLenum pname, GLuint *params); |
302 | void glGetVertexAttribIiv(GLuint index, GLenum pname, GLint *params); |
303 | void glVertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); |
304 | void glEndConditionalRender(); |
305 | void glBeginConditionalRender(GLuint id, GLenum mode); |
306 | void glClampColor(GLenum target, GLenum clamp); |
307 | void glGetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); |
308 | void glTransformFeedbackVaryings(GLuint program, GLsizei count, const GLchar* const *varyings, GLenum bufferMode); |
309 | void glBindBufferBase(GLenum target, GLuint index, GLuint buffer); |
310 | void glBindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); |
311 | void glEndTransformFeedback(); |
312 | void glBeginTransformFeedback(GLenum primitiveMode); |
313 | GLboolean glIsEnabledi(GLenum target, GLuint index); |
314 | void glDisablei(GLenum target, GLuint index); |
315 | void glEnablei(GLenum target, GLuint index); |
316 | void glGetIntegeri_v(GLenum target, GLuint index, GLint *data); |
317 | void glGetBooleani_v(GLenum target, GLuint index, GLboolean *data); |
318 | void glColorMaski(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); |
319 | |
320 | // OpenGL 3.1 core functions |
321 | void glCopyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); |
322 | void glUniformBlockBinding(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); |
323 | void glGetActiveUniformBlockName(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName); |
324 | void glGetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params); |
325 | GLuint glGetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName); |
326 | void glGetActiveUniformName(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName); |
327 | void glGetActiveUniformsiv(GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params); |
328 | void glGetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar* const *uniformNames, GLuint *uniformIndices); |
329 | void glPrimitiveRestartIndex(GLuint index); |
330 | void glTexBuffer(GLenum target, GLenum internalformat, GLuint buffer); |
331 | void glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount); |
332 | void glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instancecount); |
333 | |
334 | // OpenGL 3.2 core functions |
335 | void glSampleMaski(GLuint index, GLbitfield mask); |
336 | void glGetMultisamplefv(GLenum pname, GLuint index, GLfloat *val); |
337 | void glTexImage3DMultisample(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); |
338 | void glTexImage2DMultisample(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); |
339 | void glGetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values); |
340 | void glGetInteger64v(GLenum pname, GLint64 *params); |
341 | void glWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout); |
342 | GLenum glClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout); |
343 | void glDeleteSync(GLsync sync); |
344 | GLboolean glIsSync(GLsync sync); |
345 | GLsync glFenceSync(GLenum condition, GLbitfield flags); |
346 | void glProvokingVertex(GLenum mode); |
347 | void glMultiDrawElementsBaseVertex(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount, const GLint *basevertex); |
348 | void glDrawElementsInstancedBaseVertex(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount, GLint basevertex); |
349 | void glDrawRangeElementsBaseVertex(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex); |
350 | void glDrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex); |
351 | void glFramebufferTexture(GLenum target, GLenum attachment, GLuint texture, GLint level); |
352 | void glGetBufferParameteri64v(GLenum target, GLenum pname, GLint64 *params); |
353 | void glGetInteger64i_v(GLenum target, GLuint index, GLint64 *data); |
354 | |
355 | // OpenGL 1.0 deprecated functions |
356 | void glTranslatef(GLfloat x, GLfloat y, GLfloat z); |
357 | void glTranslated(GLdouble x, GLdouble y, GLdouble z); |
358 | void glScalef(GLfloat x, GLfloat y, GLfloat z); |
359 | void glScaled(GLdouble x, GLdouble y, GLdouble z); |
360 | void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z); |
361 | void glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z); |
362 | void glPushMatrix(); |
363 | void glPopMatrix(); |
364 | void glOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); |
365 | void glMultMatrixd(const GLdouble *m); |
366 | void glMultMatrixf(const GLfloat *m); |
367 | void glMatrixMode(GLenum mode); |
368 | void glLoadMatrixd(const GLdouble *m); |
369 | void glLoadMatrixf(const GLfloat *m); |
370 | void glLoadIdentity(); |
371 | void glFrustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); |
372 | GLboolean glIsList(GLuint list); |
373 | void glGetTexGeniv(GLenum coord, GLenum pname, GLint *params); |
374 | void glGetTexGenfv(GLenum coord, GLenum pname, GLfloat *params); |
375 | void glGetTexGendv(GLenum coord, GLenum pname, GLdouble *params); |
376 | void glGetTexEnviv(GLenum target, GLenum pname, GLint *params); |
377 | void glGetTexEnvfv(GLenum target, GLenum pname, GLfloat *params); |
378 | void glGetPolygonStipple(GLubyte *mask); |
379 | void glGetPixelMapusv(GLenum map, GLushort *values); |
380 | void glGetPixelMapuiv(GLenum map, GLuint *values); |
381 | void glGetPixelMapfv(GLenum map, GLfloat *values); |
382 | void glGetMaterialiv(GLenum face, GLenum pname, GLint *params); |
383 | void glGetMaterialfv(GLenum face, GLenum pname, GLfloat *params); |
384 | void glGetMapiv(GLenum target, GLenum query, GLint *v); |
385 | void glGetMapfv(GLenum target, GLenum query, GLfloat *v); |
386 | void glGetMapdv(GLenum target, GLenum query, GLdouble *v); |
387 | void glGetLightiv(GLenum light, GLenum pname, GLint *params); |
388 | void glGetLightfv(GLenum light, GLenum pname, GLfloat *params); |
389 | void glGetClipPlane(GLenum plane, GLdouble *equation); |
390 | void glDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); |
391 | void glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); |
392 | void glPixelMapusv(GLenum map, GLint mapsize, const GLushort *values); |
393 | void glPixelMapuiv(GLenum map, GLint mapsize, const GLuint *values); |
394 | void glPixelMapfv(GLenum map, GLint mapsize, const GLfloat *values); |
395 | void glPixelTransferi(GLenum pname, GLint param); |
396 | void glPixelTransferf(GLenum pname, GLfloat param); |
397 | void glPixelZoom(GLfloat xfactor, GLfloat yfactor); |
398 | void glAlphaFunc(GLenum func, GLfloat ref); |
399 | void glEvalPoint2(GLint i, GLint j); |
400 | void glEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2); |
401 | void glEvalPoint1(GLint i); |
402 | void glEvalMesh1(GLenum mode, GLint i1, GLint i2); |
403 | void glEvalCoord2fv(const GLfloat *u); |
404 | void glEvalCoord2f(GLfloat u, GLfloat v); |
405 | void glEvalCoord2dv(const GLdouble *u); |
406 | void glEvalCoord2d(GLdouble u, GLdouble v); |
407 | void glEvalCoord1fv(const GLfloat *u); |
408 | void glEvalCoord1f(GLfloat u); |
409 | void glEvalCoord1dv(const GLdouble *u); |
410 | void glEvalCoord1d(GLdouble u); |
411 | void glMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2); |
412 | void glMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2); |
413 | void glMapGrid1f(GLint un, GLfloat u1, GLfloat u2); |
414 | void glMapGrid1d(GLint un, GLdouble u1, GLdouble u2); |
415 | void glMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points); |
416 | void glMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points); |
417 | void glMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points); |
418 | void glMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points); |
419 | void glPushAttrib(GLbitfield mask); |
420 | void glPopAttrib(); |
421 | void glAccum(GLenum op, GLfloat value); |
422 | void glIndexMask(GLuint mask); |
423 | void glClearIndex(GLfloat c); |
424 | void glClearAccum(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); |
425 | void glPushName(GLuint name); |
426 | void glPopName(); |
427 | void glPassThrough(GLfloat token); |
428 | void glLoadName(GLuint name); |
429 | void glInitNames(); |
430 | GLint glRenderMode(GLenum mode); |
431 | void glSelectBuffer(GLsizei size, GLuint *buffer); |
432 | void glFeedbackBuffer(GLsizei size, GLenum type, GLfloat *buffer); |
433 | void glTexGeniv(GLenum coord, GLenum pname, const GLint *params); |
434 | void glTexGeni(GLenum coord, GLenum pname, GLint param); |
435 | void glTexGenfv(GLenum coord, GLenum pname, const GLfloat *params); |
436 | void glTexGenf(GLenum coord, GLenum pname, GLfloat param); |
437 | void glTexGendv(GLenum coord, GLenum pname, const GLdouble *params); |
438 | void glTexGend(GLenum coord, GLenum pname, GLdouble param); |
439 | void glTexEnviv(GLenum target, GLenum pname, const GLint *params); |
440 | void glTexEnvi(GLenum target, GLenum pname, GLint param); |
441 | void glTexEnvfv(GLenum target, GLenum pname, const GLfloat *params); |
442 | void glTexEnvf(GLenum target, GLenum pname, GLfloat param); |
443 | void glShadeModel(GLenum mode); |
444 | void glPolygonStipple(const GLubyte *mask); |
445 | void glMaterialiv(GLenum face, GLenum pname, const GLint *params); |
446 | void glMateriali(GLenum face, GLenum pname, GLint param); |
447 | void glMaterialfv(GLenum face, GLenum pname, const GLfloat *params); |
448 | void glMaterialf(GLenum face, GLenum pname, GLfloat param); |
449 | void glLineStipple(GLint factor, GLushort pattern); |
450 | void glLightModeliv(GLenum pname, const GLint *params); |
451 | void glLightModeli(GLenum pname, GLint param); |
452 | void glLightModelfv(GLenum pname, const GLfloat *params); |
453 | void glLightModelf(GLenum pname, GLfloat param); |
454 | void glLightiv(GLenum light, GLenum pname, const GLint *params); |
455 | void glLighti(GLenum light, GLenum pname, GLint param); |
456 | void glLightfv(GLenum light, GLenum pname, const GLfloat *params); |
457 | void glLightf(GLenum light, GLenum pname, GLfloat param); |
458 | void glFogiv(GLenum pname, const GLint *params); |
459 | void glFogi(GLenum pname, GLint param); |
460 | void glFogfv(GLenum pname, const GLfloat *params); |
461 | void glFogf(GLenum pname, GLfloat param); |
462 | void glColorMaterial(GLenum face, GLenum mode); |
463 | void glClipPlane(GLenum plane, const GLdouble *equation); |
464 | void glVertex4sv(const GLshort *v); |
465 | void glVertex4s(GLshort x, GLshort y, GLshort z, GLshort w); |
466 | void glVertex4iv(const GLint *v); |
467 | void glVertex4i(GLint x, GLint y, GLint z, GLint w); |
468 | void glVertex4fv(const GLfloat *v); |
469 | void glVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w); |
470 | void glVertex4dv(const GLdouble *v); |
471 | void glVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w); |
472 | void glVertex3sv(const GLshort *v); |
473 | void glVertex3s(GLshort x, GLshort y, GLshort z); |
474 | void glVertex3iv(const GLint *v); |
475 | void glVertex3i(GLint x, GLint y, GLint z); |
476 | void glVertex3fv(const GLfloat *v); |
477 | void glVertex3f(GLfloat x, GLfloat y, GLfloat z); |
478 | void glVertex3dv(const GLdouble *v); |
479 | void glVertex3d(GLdouble x, GLdouble y, GLdouble z); |
480 | void glVertex2sv(const GLshort *v); |
481 | void glVertex2s(GLshort x, GLshort y); |
482 | void glVertex2iv(const GLint *v); |
483 | void glVertex2i(GLint x, GLint y); |
484 | void glVertex2fv(const GLfloat *v); |
485 | void glVertex2f(GLfloat x, GLfloat y); |
486 | void glVertex2dv(const GLdouble *v); |
487 | void glVertex2d(GLdouble x, GLdouble y); |
488 | void glTexCoord4sv(const GLshort *v); |
489 | void glTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q); |
490 | void glTexCoord4iv(const GLint *v); |
491 | void glTexCoord4i(GLint s, GLint t, GLint r, GLint q); |
492 | void glTexCoord4fv(const GLfloat *v); |
493 | void glTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q); |
494 | void glTexCoord4dv(const GLdouble *v); |
495 | void glTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q); |
496 | void glTexCoord3sv(const GLshort *v); |
497 | void glTexCoord3s(GLshort s, GLshort t, GLshort r); |
498 | void glTexCoord3iv(const GLint *v); |
499 | void glTexCoord3i(GLint s, GLint t, GLint r); |
500 | void glTexCoord3fv(const GLfloat *v); |
501 | void glTexCoord3f(GLfloat s, GLfloat t, GLfloat r); |
502 | void glTexCoord3dv(const GLdouble *v); |
503 | void glTexCoord3d(GLdouble s, GLdouble t, GLdouble r); |
504 | void glTexCoord2sv(const GLshort *v); |
505 | void glTexCoord2s(GLshort s, GLshort t); |
506 | void glTexCoord2iv(const GLint *v); |
507 | void glTexCoord2i(GLint s, GLint t); |
508 | void glTexCoord2fv(const GLfloat *v); |
509 | void glTexCoord2f(GLfloat s, GLfloat t); |
510 | void glTexCoord2dv(const GLdouble *v); |
511 | void glTexCoord2d(GLdouble s, GLdouble t); |
512 | void glTexCoord1sv(const GLshort *v); |
513 | void glTexCoord1s(GLshort s); |
514 | void glTexCoord1iv(const GLint *v); |
515 | void glTexCoord1i(GLint s); |
516 | void glTexCoord1fv(const GLfloat *v); |
517 | void glTexCoord1f(GLfloat s); |
518 | void glTexCoord1dv(const GLdouble *v); |
519 | void glTexCoord1d(GLdouble s); |
520 | void glRectsv(const GLshort *v1, const GLshort *v2); |
521 | void glRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2); |
522 | void glRectiv(const GLint *v1, const GLint *v2); |
523 | void glRecti(GLint x1, GLint y1, GLint x2, GLint y2); |
524 | void glRectfv(const GLfloat *v1, const GLfloat *v2); |
525 | void glRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); |
526 | void glRectdv(const GLdouble *v1, const GLdouble *v2); |
527 | void glRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); |
528 | void glRasterPos4sv(const GLshort *v); |
529 | void glRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w); |
530 | void glRasterPos4iv(const GLint *v); |
531 | void glRasterPos4i(GLint x, GLint y, GLint z, GLint w); |
532 | void glRasterPos4fv(const GLfloat *v); |
533 | void glRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w); |
534 | void glRasterPos4dv(const GLdouble *v); |
535 | void glRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w); |
536 | void glRasterPos3sv(const GLshort *v); |
537 | void glRasterPos3s(GLshort x, GLshort y, GLshort z); |
538 | void glRasterPos3iv(const GLint *v); |
539 | void glRasterPos3i(GLint x, GLint y, GLint z); |
540 | void glRasterPos3fv(const GLfloat *v); |
541 | void glRasterPos3f(GLfloat x, GLfloat y, GLfloat z); |
542 | void glRasterPos3dv(const GLdouble *v); |
543 | void glRasterPos3d(GLdouble x, GLdouble y, GLdouble z); |
544 | void glRasterPos2sv(const GLshort *v); |
545 | void glRasterPos2s(GLshort x, GLshort y); |
546 | void glRasterPos2iv(const GLint *v); |
547 | void glRasterPos2i(GLint x, GLint y); |
548 | void glRasterPos2fv(const GLfloat *v); |
549 | void glRasterPos2f(GLfloat x, GLfloat y); |
550 | void glRasterPos2dv(const GLdouble *v); |
551 | void glRasterPos2d(GLdouble x, GLdouble y); |
552 | void glNormal3sv(const GLshort *v); |
553 | void glNormal3s(GLshort nx, GLshort ny, GLshort nz); |
554 | void glNormal3iv(const GLint *v); |
555 | void glNormal3i(GLint nx, GLint ny, GLint nz); |
556 | void glNormal3fv(const GLfloat *v); |
557 | void glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz); |
558 | void glNormal3dv(const GLdouble *v); |
559 | void glNormal3d(GLdouble nx, GLdouble ny, GLdouble nz); |
560 | void glNormal3bv(const GLbyte *v); |
561 | void glNormal3b(GLbyte nx, GLbyte ny, GLbyte nz); |
562 | void glIndexsv(const GLshort *c); |
563 | void glIndexs(GLshort c); |
564 | void glIndexiv(const GLint *c); |
565 | void glIndexi(GLint c); |
566 | void glIndexfv(const GLfloat *c); |
567 | void glIndexf(GLfloat c); |
568 | void glIndexdv(const GLdouble *c); |
569 | void glIndexd(GLdouble c); |
570 | void glEnd(); |
571 | void glEdgeFlagv(const GLboolean *flag); |
572 | void glEdgeFlag(GLboolean flag); |
573 | void glColor4usv(const GLushort *v); |
574 | void glColor4us(GLushort red, GLushort green, GLushort blue, GLushort alpha); |
575 | void glColor4uiv(const GLuint *v); |
576 | void glColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alpha); |
577 | void glColor4ubv(const GLubyte *v); |
578 | void glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); |
579 | void glColor4sv(const GLshort *v); |
580 | void glColor4s(GLshort red, GLshort green, GLshort blue, GLshort alpha); |
581 | void glColor4iv(const GLint *v); |
582 | void glColor4i(GLint red, GLint green, GLint blue, GLint alpha); |
583 | void glColor4fv(const GLfloat *v); |
584 | void glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); |
585 | void glColor4dv(const GLdouble *v); |
586 | void glColor4d(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); |
587 | void glColor4bv(const GLbyte *v); |
588 | void glColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); |
589 | void glColor3usv(const GLushort *v); |
590 | void glColor3us(GLushort red, GLushort green, GLushort blue); |
591 | void glColor3uiv(const GLuint *v); |
592 | void glColor3ui(GLuint red, GLuint green, GLuint blue); |
593 | void glColor3ubv(const GLubyte *v); |
594 | void glColor3ub(GLubyte red, GLubyte green, GLubyte blue); |
595 | void glColor3sv(const GLshort *v); |
596 | void glColor3s(GLshort red, GLshort green, GLshort blue); |
597 | void glColor3iv(const GLint *v); |
598 | void glColor3i(GLint red, GLint green, GLint blue); |
599 | void glColor3fv(const GLfloat *v); |
600 | void glColor3f(GLfloat red, GLfloat green, GLfloat blue); |
601 | void glColor3dv(const GLdouble *v); |
602 | void glColor3d(GLdouble red, GLdouble green, GLdouble blue); |
603 | void glColor3bv(const GLbyte *v); |
604 | void glColor3b(GLbyte red, GLbyte green, GLbyte blue); |
605 | void glBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap); |
606 | void glBegin(GLenum mode); |
607 | void glListBase(GLuint base); |
608 | GLuint glGenLists(GLsizei range); |
609 | void glDeleteLists(GLuint list, GLsizei range); |
610 | void glCallLists(GLsizei n, GLenum type, const GLvoid *lists); |
611 | void glCallList(GLuint list); |
612 | void glEndList(); |
613 | void glNewList(GLuint list, GLenum mode); |
614 | |
615 | // OpenGL 1.1 deprecated functions |
616 | void glPushClientAttrib(GLbitfield mask); |
617 | void glPopClientAttrib(); |
618 | void glPrioritizeTextures(GLsizei n, const GLuint *textures, const GLfloat *priorities); |
619 | GLboolean glAreTexturesResident(GLsizei n, const GLuint *textures, GLboolean *residences); |
620 | void glVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); |
621 | void glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); |
622 | void glNormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer); |
623 | void glInterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer); |
624 | void glIndexPointer(GLenum type, GLsizei stride, const GLvoid *pointer); |
625 | void glEnableClientState(GLenum array); |
626 | void glEdgeFlagPointer(GLsizei stride, const GLvoid *pointer); |
627 | void glDisableClientState(GLenum array); |
628 | void glColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); |
629 | void glArrayElement(GLint i); |
630 | |
631 | // OpenGL 1.2 deprecated functions |
632 | void glResetMinmax(GLenum target); |
633 | void glResetHistogram(GLenum target); |
634 | void glMinmax(GLenum target, GLenum internalformat, GLboolean sink); |
635 | void glHistogram(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); |
636 | void glGetMinmaxParameteriv(GLenum target, GLenum pname, GLint *params); |
637 | void glGetMinmaxParameterfv(GLenum target, GLenum pname, GLfloat *params); |
638 | void glGetMinmax(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); |
639 | void glGetHistogramParameteriv(GLenum target, GLenum pname, GLint *params); |
640 | void glGetHistogramParameterfv(GLenum target, GLenum pname, GLfloat *params); |
641 | void glGetHistogram(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); |
642 | void glSeparableFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column); |
643 | void glGetSeparableFilter(GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span); |
644 | void glGetConvolutionParameteriv(GLenum target, GLenum pname, GLint *params); |
645 | void glGetConvolutionParameterfv(GLenum target, GLenum pname, GLfloat *params); |
646 | void glGetConvolutionFilter(GLenum target, GLenum format, GLenum type, GLvoid *image); |
647 | void glCopyConvolutionFilter2D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); |
648 | void glCopyConvolutionFilter1D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); |
649 | void glConvolutionParameteriv(GLenum target, GLenum pname, const GLint *params); |
650 | void glConvolutionParameteri(GLenum target, GLenum pname, GLint params); |
651 | void glConvolutionParameterfv(GLenum target, GLenum pname, const GLfloat *params); |
652 | void glConvolutionParameterf(GLenum target, GLenum pname, GLfloat params); |
653 | void glConvolutionFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image); |
654 | void glConvolutionFilter1D(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image); |
655 | void glCopyColorSubTable(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); |
656 | void glColorSubTable(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data); |
657 | void glGetColorTableParameteriv(GLenum target, GLenum pname, GLint *params); |
658 | void glGetColorTableParameterfv(GLenum target, GLenum pname, GLfloat *params); |
659 | void glGetColorTable(GLenum target, GLenum format, GLenum type, GLvoid *table); |
660 | void glCopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); |
661 | void glColorTableParameteriv(GLenum target, GLenum pname, const GLint *params); |
662 | void glColorTableParameterfv(GLenum target, GLenum pname, const GLfloat *params); |
663 | void glColorTable(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); |
664 | |
665 | // OpenGL 1.3 deprecated functions |
666 | void glMultTransposeMatrixd(const GLdouble *m); |
667 | void glMultTransposeMatrixf(const GLfloat *m); |
668 | void glLoadTransposeMatrixd(const GLdouble *m); |
669 | void glLoadTransposeMatrixf(const GLfloat *m); |
670 | void glMultiTexCoord4sv(GLenum target, const GLshort *v); |
671 | void glMultiTexCoord4s(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); |
672 | void glMultiTexCoord4iv(GLenum target, const GLint *v); |
673 | void glMultiTexCoord4i(GLenum target, GLint s, GLint t, GLint r, GLint q); |
674 | void glMultiTexCoord4fv(GLenum target, const GLfloat *v); |
675 | void glMultiTexCoord4f(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); |
676 | void glMultiTexCoord4dv(GLenum target, const GLdouble *v); |
677 | void glMultiTexCoord4d(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); |
678 | void glMultiTexCoord3sv(GLenum target, const GLshort *v); |
679 | void glMultiTexCoord3s(GLenum target, GLshort s, GLshort t, GLshort r); |
680 | void glMultiTexCoord3iv(GLenum target, const GLint *v); |
681 | void glMultiTexCoord3i(GLenum target, GLint s, GLint t, GLint r); |
682 | void glMultiTexCoord3fv(GLenum target, const GLfloat *v); |
683 | void glMultiTexCoord3f(GLenum target, GLfloat s, GLfloat t, GLfloat r); |
684 | void glMultiTexCoord3dv(GLenum target, const GLdouble *v); |
685 | void glMultiTexCoord3d(GLenum target, GLdouble s, GLdouble t, GLdouble r); |
686 | void glMultiTexCoord2sv(GLenum target, const GLshort *v); |
687 | void glMultiTexCoord2s(GLenum target, GLshort s, GLshort t); |
688 | void glMultiTexCoord2iv(GLenum target, const GLint *v); |
689 | void glMultiTexCoord2i(GLenum target, GLint s, GLint t); |
690 | void glMultiTexCoord2fv(GLenum target, const GLfloat *v); |
691 | void glMultiTexCoord2f(GLenum target, GLfloat s, GLfloat t); |
692 | void glMultiTexCoord2dv(GLenum target, const GLdouble *v); |
693 | void glMultiTexCoord2d(GLenum target, GLdouble s, GLdouble t); |
694 | void glMultiTexCoord1sv(GLenum target, const GLshort *v); |
695 | void glMultiTexCoord1s(GLenum target, GLshort s); |
696 | void glMultiTexCoord1iv(GLenum target, const GLint *v); |
697 | void glMultiTexCoord1i(GLenum target, GLint s); |
698 | void glMultiTexCoord1fv(GLenum target, const GLfloat *v); |
699 | void glMultiTexCoord1f(GLenum target, GLfloat s); |
700 | void glMultiTexCoord1dv(GLenum target, const GLdouble *v); |
701 | void glMultiTexCoord1d(GLenum target, GLdouble s); |
702 | void glClientActiveTexture(GLenum texture); |
703 | |
704 | // OpenGL 1.4 deprecated functions |
705 | void glWindowPos3sv(const GLshort *v); |
706 | void glWindowPos3s(GLshort x, GLshort y, GLshort z); |
707 | void glWindowPos3iv(const GLint *v); |
708 | void glWindowPos3i(GLint x, GLint y, GLint z); |
709 | void glWindowPos3fv(const GLfloat *v); |
710 | void glWindowPos3f(GLfloat x, GLfloat y, GLfloat z); |
711 | void glWindowPos3dv(const GLdouble *v); |
712 | void glWindowPos3d(GLdouble x, GLdouble y, GLdouble z); |
713 | void glWindowPos2sv(const GLshort *v); |
714 | void glWindowPos2s(GLshort x, GLshort y); |
715 | void glWindowPos2iv(const GLint *v); |
716 | void glWindowPos2i(GLint x, GLint y); |
717 | void glWindowPos2fv(const GLfloat *v); |
718 | void glWindowPos2f(GLfloat x, GLfloat y); |
719 | void glWindowPos2dv(const GLdouble *v); |
720 | void glWindowPos2d(GLdouble x, GLdouble y); |
721 | void glSecondaryColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); |
722 | void glSecondaryColor3usv(const GLushort *v); |
723 | void glSecondaryColor3us(GLushort red, GLushort green, GLushort blue); |
724 | void glSecondaryColor3uiv(const GLuint *v); |
725 | void glSecondaryColor3ui(GLuint red, GLuint green, GLuint blue); |
726 | void glSecondaryColor3ubv(const GLubyte *v); |
727 | void glSecondaryColor3ub(GLubyte red, GLubyte green, GLubyte blue); |
728 | void glSecondaryColor3sv(const GLshort *v); |
729 | void glSecondaryColor3s(GLshort red, GLshort green, GLshort blue); |
730 | void glSecondaryColor3iv(const GLint *v); |
731 | void glSecondaryColor3i(GLint red, GLint green, GLint blue); |
732 | void glSecondaryColor3fv(const GLfloat *v); |
733 | void glSecondaryColor3f(GLfloat red, GLfloat green, GLfloat blue); |
734 | void glSecondaryColor3dv(const GLdouble *v); |
735 | void glSecondaryColor3d(GLdouble red, GLdouble green, GLdouble blue); |
736 | void glSecondaryColor3bv(const GLbyte *v); |
737 | void glSecondaryColor3b(GLbyte red, GLbyte green, GLbyte blue); |
738 | void glFogCoordPointer(GLenum type, GLsizei stride, const GLvoid *pointer); |
739 | void glFogCoorddv(const GLdouble *coord); |
740 | void glFogCoordd(GLdouble coord); |
741 | void glFogCoordfv(const GLfloat *coord); |
742 | void glFogCoordf(GLfloat coord); |
743 | |
744 | // OpenGL 1.5 deprecated functions |
745 | |
746 | // OpenGL 2.0 deprecated functions |
747 | void glVertexAttrib4usv(GLuint index, const GLushort *v); |
748 | void glVertexAttrib4uiv(GLuint index, const GLuint *v); |
749 | void glVertexAttrib4ubv(GLuint index, const GLubyte *v); |
750 | void glVertexAttrib4sv(GLuint index, const GLshort *v); |
751 | void glVertexAttrib4s(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); |
752 | void glVertexAttrib4iv(GLuint index, const GLint *v); |
753 | void glVertexAttrib4fv(GLuint index, const GLfloat *v); |
754 | void glVertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); |
755 | void glVertexAttrib4dv(GLuint index, const GLdouble *v); |
756 | void glVertexAttrib4d(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); |
757 | void glVertexAttrib4bv(GLuint index, const GLbyte *v); |
758 | void glVertexAttrib4Nusv(GLuint index, const GLushort *v); |
759 | void glVertexAttrib4Nuiv(GLuint index, const GLuint *v); |
760 | void glVertexAttrib4Nubv(GLuint index, const GLubyte *v); |
761 | void glVertexAttrib4Nub(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); |
762 | void glVertexAttrib4Nsv(GLuint index, const GLshort *v); |
763 | void glVertexAttrib4Niv(GLuint index, const GLint *v); |
764 | void glVertexAttrib4Nbv(GLuint index, const GLbyte *v); |
765 | void glVertexAttrib3sv(GLuint index, const GLshort *v); |
766 | void glVertexAttrib3s(GLuint index, GLshort x, GLshort y, GLshort z); |
767 | void glVertexAttrib3fv(GLuint index, const GLfloat *v); |
768 | void glVertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z); |
769 | void glVertexAttrib3dv(GLuint index, const GLdouble *v); |
770 | void glVertexAttrib3d(GLuint index, GLdouble x, GLdouble y, GLdouble z); |
771 | void glVertexAttrib2sv(GLuint index, const GLshort *v); |
772 | void glVertexAttrib2s(GLuint index, GLshort x, GLshort y); |
773 | void glVertexAttrib2fv(GLuint index, const GLfloat *v); |
774 | void glVertexAttrib2f(GLuint index, GLfloat x, GLfloat y); |
775 | void glVertexAttrib2dv(GLuint index, const GLdouble *v); |
776 | void glVertexAttrib2d(GLuint index, GLdouble x, GLdouble y); |
777 | void glVertexAttrib1sv(GLuint index, const GLshort *v); |
778 | void glVertexAttrib1s(GLuint index, GLshort x); |
779 | void glVertexAttrib1fv(GLuint index, const GLfloat *v); |
780 | void glVertexAttrib1f(GLuint index, GLfloat x); |
781 | void glVertexAttrib1dv(GLuint index, const GLdouble *v); |
782 | void glVertexAttrib1d(GLuint index, GLdouble x); |
783 | |
784 | // OpenGL 2.1 deprecated functions |
785 | |
786 | // OpenGL 3.0 deprecated functions |
787 | void glVertexAttribI4usv(GLuint index, const GLushort *v); |
788 | void glVertexAttribI4ubv(GLuint index, const GLubyte *v); |
789 | void glVertexAttribI4sv(GLuint index, const GLshort *v); |
790 | void glVertexAttribI4bv(GLuint index, const GLbyte *v); |
791 | void glVertexAttribI4uiv(GLuint index, const GLuint *v); |
792 | void glVertexAttribI3uiv(GLuint index, const GLuint *v); |
793 | void glVertexAttribI2uiv(GLuint index, const GLuint *v); |
794 | void glVertexAttribI1uiv(GLuint index, const GLuint *v); |
795 | void glVertexAttribI4iv(GLuint index, const GLint *v); |
796 | void glVertexAttribI3iv(GLuint index, const GLint *v); |
797 | void glVertexAttribI2iv(GLuint index, const GLint *v); |
798 | void glVertexAttribI1iv(GLuint index, const GLint *v); |
799 | void glVertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); |
800 | void glVertexAttribI3ui(GLuint index, GLuint x, GLuint y, GLuint z); |
801 | void glVertexAttribI2ui(GLuint index, GLuint x, GLuint y); |
802 | void glVertexAttribI1ui(GLuint index, GLuint x); |
803 | void glVertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint w); |
804 | void glVertexAttribI3i(GLuint index, GLint x, GLint y, GLint z); |
805 | void glVertexAttribI2i(GLuint index, GLint x, GLint y); |
806 | void glVertexAttribI1i(GLuint index, GLint x); |
807 | |
808 | // OpenGL 3.1 deprecated functions |
809 | |
810 | // OpenGL 3.2 deprecated functions |
811 | |
812 | private: |
813 | friend class QOpenGLContext; |
814 | |
815 | static bool isContextCompatible(QOpenGLContext *context); |
816 | static QOpenGLVersionProfile versionProfile(); |
817 | |
818 | QOpenGLFunctions_1_0_CoreBackend* d_1_0_Core; |
819 | QOpenGLFunctions_1_1_CoreBackend* d_1_1_Core; |
820 | QOpenGLFunctions_1_2_CoreBackend* d_1_2_Core; |
821 | QOpenGLFunctions_1_3_CoreBackend* d_1_3_Core; |
822 | QOpenGLFunctions_1_4_CoreBackend* d_1_4_Core; |
823 | QOpenGLFunctions_1_5_CoreBackend* d_1_5_Core; |
824 | QOpenGLFunctions_2_0_CoreBackend* d_2_0_Core; |
825 | QOpenGLFunctions_2_1_CoreBackend* d_2_1_Core; |
826 | QOpenGLFunctions_3_0_CoreBackend* d_3_0_Core; |
827 | QOpenGLFunctions_3_1_CoreBackend* d_3_1_Core; |
828 | QOpenGLFunctions_3_2_CoreBackend* d_3_2_Core; |
829 | QOpenGLFunctions_1_0_DeprecatedBackend* d_1_0_Deprecated; |
830 | QOpenGLFunctions_1_1_DeprecatedBackend* d_1_1_Deprecated; |
831 | QOpenGLFunctions_1_2_DeprecatedBackend* d_1_2_Deprecated; |
832 | QOpenGLFunctions_1_3_DeprecatedBackend* d_1_3_Deprecated; |
833 | QOpenGLFunctions_1_4_DeprecatedBackend* d_1_4_Deprecated; |
834 | void *m_reserved_2_0_Deprecated; // To maintain BC |
835 | void *m_reserved_3_0_Deprecated; // To maintain BC |
836 | }; |
837 | |
838 | // OpenGL 1.0 core functions |
839 | inline void QOpenGLFunctions_3_2_Compatibility::glViewport(GLint x, GLint y, GLsizei width, GLsizei height) |
840 | { |
841 | d_1_0_Core->f.Viewport(x, y, width, height); |
842 | } |
843 | |
844 | inline void QOpenGLFunctions_3_2_Compatibility::glDepthRange(GLdouble nearVal, GLdouble farVal) |
845 | { |
846 | d_1_0_Core->f.DepthRange(nearVal, farVal); |
847 | } |
848 | |
849 | inline GLboolean QOpenGLFunctions_3_2_Compatibility::glIsEnabled(GLenum cap) |
850 | { |
851 | return d_1_0_Core->f.IsEnabled(cap); |
852 | } |
853 | |
854 | inline void QOpenGLFunctions_3_2_Compatibility::glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params) |
855 | { |
856 | d_1_0_Core->f.GetTexLevelParameteriv(target, level, pname, params); |
857 | } |
858 | |
859 | inline void QOpenGLFunctions_3_2_Compatibility::glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params) |
860 | { |
861 | d_1_0_Core->f.GetTexLevelParameterfv(target, level, pname, params); |
862 | } |
863 | |
864 | inline void QOpenGLFunctions_3_2_Compatibility::glGetTexParameteriv(GLenum target, GLenum pname, GLint *params) |
865 | { |
866 | d_1_0_Core->f.GetTexParameteriv(target, pname, params); |
867 | } |
868 | |
869 | inline void QOpenGLFunctions_3_2_Compatibility::glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params) |
870 | { |
871 | d_1_0_Core->f.GetTexParameterfv(target, pname, params); |
872 | } |
873 | |
874 | inline void QOpenGLFunctions_3_2_Compatibility::glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels) |
875 | { |
876 | d_1_0_Core->f.GetTexImage(target, level, format, type, pixels); |
877 | } |
878 | |
879 | inline const GLubyte * QOpenGLFunctions_3_2_Compatibility::glGetString(GLenum name) |
880 | { |
881 | return d_1_0_Core->f.GetString(name); |
882 | } |
883 | |
884 | inline void QOpenGLFunctions_3_2_Compatibility::glGetIntegerv(GLenum pname, GLint *params) |
885 | { |
886 | d_1_0_Core->f.GetIntegerv(pname, params); |
887 | } |
888 | |
889 | inline void QOpenGLFunctions_3_2_Compatibility::glGetFloatv(GLenum pname, GLfloat *params) |
890 | { |
891 | d_1_0_Core->f.GetFloatv(pname, params); |
892 | } |
893 | |
894 | inline GLenum QOpenGLFunctions_3_2_Compatibility::glGetError() |
895 | { |
896 | return d_1_0_Core->f.GetError(); |
897 | } |
898 | |
899 | inline void QOpenGLFunctions_3_2_Compatibility::glGetDoublev(GLenum pname, GLdouble *params) |
900 | { |
901 | d_1_0_Core->f.GetDoublev(pname, params); |
902 | } |
903 | |
904 | inline void QOpenGLFunctions_3_2_Compatibility::glGetBooleanv(GLenum pname, GLboolean *params) |
905 | { |
906 | d_1_0_Core->f.GetBooleanv(pname, params); |
907 | } |
908 | |
909 | inline void QOpenGLFunctions_3_2_Compatibility::glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels) |
910 | { |
911 | d_1_0_Core->f.ReadPixels(x, y, width, height, format, type, pixels); |
912 | } |
913 | |
914 | inline void QOpenGLFunctions_3_2_Compatibility::glReadBuffer(GLenum mode) |
915 | { |
916 | d_1_0_Core->f.ReadBuffer(mode); |
917 | } |
918 | |
919 | inline void QOpenGLFunctions_3_2_Compatibility::glPixelStorei(GLenum pname, GLint param) |
920 | { |
921 | d_1_0_Core->f.PixelStorei(pname, param); |
922 | } |
923 | |
924 | inline void QOpenGLFunctions_3_2_Compatibility::glPixelStoref(GLenum pname, GLfloat param) |
925 | { |
926 | d_1_0_Core->f.PixelStoref(pname, param); |
927 | } |
928 | |
929 | inline void QOpenGLFunctions_3_2_Compatibility::glDepthFunc(GLenum func) |
930 | { |
931 | d_1_0_Core->f.DepthFunc(func); |
932 | } |
933 | |
934 | inline void QOpenGLFunctions_3_2_Compatibility::glStencilOp(GLenum fail, GLenum zfail, GLenum zpass) |
935 | { |
936 | d_1_0_Core->f.StencilOp(fail, zfail, zpass); |
937 | } |
938 | |
939 | inline void QOpenGLFunctions_3_2_Compatibility::glStencilFunc(GLenum func, GLint ref, GLuint mask) |
940 | { |
941 | d_1_0_Core->f.StencilFunc(func, ref, mask); |
942 | } |
943 | |
944 | inline void QOpenGLFunctions_3_2_Compatibility::glLogicOp(GLenum opcode) |
945 | { |
946 | d_1_0_Core->f.LogicOp(opcode); |
947 | } |
948 | |
949 | inline void QOpenGLFunctions_3_2_Compatibility::glBlendFunc(GLenum sfactor, GLenum dfactor) |
950 | { |
951 | d_1_0_Core->f.BlendFunc(sfactor, dfactor); |
952 | } |
953 | |
954 | inline void QOpenGLFunctions_3_2_Compatibility::glFlush() |
955 | { |
956 | d_1_0_Core->f.Flush(); |
957 | } |
958 | |
959 | inline void QOpenGLFunctions_3_2_Compatibility::glFinish() |
960 | { |
961 | d_1_0_Core->f.Finish(); |
962 | } |
963 | |
964 | inline void QOpenGLFunctions_3_2_Compatibility::glEnable(GLenum cap) |
965 | { |
966 | d_1_0_Core->f.Enable(cap); |
967 | } |
968 | |
969 | inline void QOpenGLFunctions_3_2_Compatibility::glDisable(GLenum cap) |
970 | { |
971 | d_1_0_Core->f.Disable(cap); |
972 | } |
973 | |
974 | inline void QOpenGLFunctions_3_2_Compatibility::glDepthMask(GLboolean flag) |
975 | { |
976 | d_1_0_Core->f.DepthMask(flag); |
977 | } |
978 | |
979 | inline void QOpenGLFunctions_3_2_Compatibility::glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) |
980 | { |
981 | d_1_0_Core->f.ColorMask(red, green, blue, alpha); |
982 | } |
983 | |
984 | inline void QOpenGLFunctions_3_2_Compatibility::glStencilMask(GLuint mask) |
985 | { |
986 | d_1_0_Core->f.StencilMask(mask); |
987 | } |
988 | |
989 | inline void QOpenGLFunctions_3_2_Compatibility::glClearDepth(GLdouble depth) |
990 | { |
991 | d_1_0_Core->f.ClearDepth(depth); |
992 | } |
993 | |
994 | inline void QOpenGLFunctions_3_2_Compatibility::glClearStencil(GLint s) |
995 | { |
996 | d_1_0_Core->f.ClearStencil(s); |
997 | } |
998 | |
999 | inline void QOpenGLFunctions_3_2_Compatibility::glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) |
1000 | { |
1001 | d_1_0_Core->f.ClearColor(red, green, blue, alpha); |
1002 | } |
1003 | |
1004 | inline void QOpenGLFunctions_3_2_Compatibility::glClear(GLbitfield mask) |
1005 | { |
1006 | d_1_0_Core->f.Clear(mask); |
1007 | } |
1008 | |
1009 | inline void QOpenGLFunctions_3_2_Compatibility::glDrawBuffer(GLenum mode) |
1010 | { |
1011 | d_1_0_Core->f.DrawBuffer(mode); |
1012 | } |
1013 | |
1014 | inline void QOpenGLFunctions_3_2_Compatibility::glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels) |
1015 | { |
1016 | d_1_0_Core->f.TexImage2D(target, level, internalformat, width, height, border, format, type, pixels); |
1017 | } |
1018 | |
1019 | inline void QOpenGLFunctions_3_2_Compatibility::glTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels) |
1020 | { |
1021 | d_1_0_Core->f.TexImage1D(target, level, internalformat, width, border, format, type, pixels); |
1022 | } |
1023 | |
1024 | inline void QOpenGLFunctions_3_2_Compatibility::glTexParameteriv(GLenum target, GLenum pname, const GLint *params) |
1025 | { |
1026 | d_1_0_Core->f.TexParameteriv(target, pname, params); |
1027 | } |
1028 | |
1029 | inline void QOpenGLFunctions_3_2_Compatibility::glTexParameteri(GLenum target, GLenum pname, GLint param) |
1030 | { |
1031 | d_1_0_Core->f.TexParameteri(target, pname, param); |
1032 | } |
1033 | |
1034 | inline void QOpenGLFunctions_3_2_Compatibility::glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params) |
1035 | { |
1036 | d_1_0_Core->f.TexParameterfv(target, pname, params); |
1037 | } |
1038 | |
1039 | inline void QOpenGLFunctions_3_2_Compatibility::glTexParameterf(GLenum target, GLenum pname, GLfloat param) |
1040 | { |
1041 | d_1_0_Core->f.TexParameterf(target, pname, param); |
1042 | } |
1043 | |
1044 | inline void QOpenGLFunctions_3_2_Compatibility::glScissor(GLint x, GLint y, GLsizei width, GLsizei height) |
1045 | { |
1046 | d_1_0_Core->f.Scissor(x, y, width, height); |
1047 | } |
1048 | |
1049 | inline void QOpenGLFunctions_3_2_Compatibility::glPolygonMode(GLenum face, GLenum mode) |
1050 | { |
1051 | d_1_0_Core->f.PolygonMode(face, mode); |
1052 | } |
1053 | |
1054 | inline void QOpenGLFunctions_3_2_Compatibility::glPointSize(GLfloat size) |
1055 | { |
1056 | d_1_0_Core->f.PointSize(size); |
1057 | } |
1058 | |
1059 | inline void QOpenGLFunctions_3_2_Compatibility::glLineWidth(GLfloat width) |
1060 | { |
1061 | d_1_0_Core->f.LineWidth(width); |
1062 | } |
1063 | |
1064 | inline void QOpenGLFunctions_3_2_Compatibility::glHint(GLenum target, GLenum mode) |
1065 | { |
1066 | d_1_0_Core->f.Hint(target, mode); |
1067 | } |
1068 | |
1069 | inline void QOpenGLFunctions_3_2_Compatibility::glFrontFace(GLenum mode) |
1070 | { |
1071 | d_1_0_Core->f.FrontFace(mode); |
1072 | } |
1073 | |
1074 | inline void QOpenGLFunctions_3_2_Compatibility::glCullFace(GLenum mode) |
1075 | { |
1076 | d_1_0_Core->f.CullFace(mode); |
1077 | } |
1078 | |
1079 | |
1080 | // OpenGL 1.1 core functions |
1081 | inline void QOpenGLFunctions_3_2_Compatibility::glIndexubv(const GLubyte *c) |
1082 | { |
1083 | d_1_1_Deprecated->f.Indexubv(c); |
1084 | } |
1085 | |
1086 | inline void QOpenGLFunctions_3_2_Compatibility::glIndexub(GLubyte c) |
1087 | { |
1088 | d_1_1_Deprecated->f.Indexub(c); |
1089 | } |
1090 | |
1091 | inline GLboolean QOpenGLFunctions_3_2_Compatibility::glIsTexture(GLuint texture) |
1092 | { |
1093 | return d_1_1_Core->f.IsTexture(texture); |
1094 | } |
1095 | |
1096 | inline void QOpenGLFunctions_3_2_Compatibility::glGenTextures(GLsizei n, GLuint *textures) |
1097 | { |
1098 | d_1_1_Core->f.GenTextures(n, textures); |
1099 | } |
1100 | |
1101 | inline void QOpenGLFunctions_3_2_Compatibility::glDeleteTextures(GLsizei n, const GLuint *textures) |
1102 | { |
1103 | d_1_1_Core->f.DeleteTextures(n, textures); |
1104 | } |
1105 | |
1106 | inline void QOpenGLFunctions_3_2_Compatibility::glBindTexture(GLenum target, GLuint texture) |
1107 | { |
1108 | d_1_1_Core->f.BindTexture(target, texture); |
1109 | } |
1110 | |
1111 | inline void QOpenGLFunctions_3_2_Compatibility::glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels) |
1112 | { |
1113 | d_1_1_Core->f.TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels); |
1114 | } |
1115 | |
1116 | inline void QOpenGLFunctions_3_2_Compatibility::glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels) |
1117 | { |
1118 | d_1_1_Core->f.TexSubImage1D(target, level, xoffset, width, format, type, pixels); |
1119 | } |
1120 | |
1121 | inline void QOpenGLFunctions_3_2_Compatibility::glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) |
1122 | { |
1123 | d_1_1_Core->f.CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height); |
1124 | } |
1125 | |
1126 | inline void QOpenGLFunctions_3_2_Compatibility::glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width) |
1127 | { |
1128 | d_1_1_Core->f.CopyTexSubImage1D(target, level, xoffset, x, y, width); |
1129 | } |
1130 | |
1131 | inline void QOpenGLFunctions_3_2_Compatibility::glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) |
1132 | { |
1133 | d_1_1_Core->f.CopyTexImage2D(target, level, internalformat, x, y, width, height, border); |
1134 | } |
1135 | |
1136 | inline void QOpenGLFunctions_3_2_Compatibility::glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border) |
1137 | { |
1138 | d_1_1_Core->f.CopyTexImage1D(target, level, internalformat, x, y, width, border); |
1139 | } |
1140 | |
1141 | inline void QOpenGLFunctions_3_2_Compatibility::glPolygonOffset(GLfloat factor, GLfloat units) |
1142 | { |
1143 | d_1_1_Core->f.PolygonOffset(factor, units); |
1144 | } |
1145 | |
1146 | inline void QOpenGLFunctions_3_2_Compatibility::glGetPointerv(GLenum pname, GLvoid* *params) |
1147 | { |
1148 | d_1_1_Deprecated->f.GetPointerv(pname, params); |
1149 | } |
1150 | |
1151 | inline void QOpenGLFunctions_3_2_Compatibility::glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) |
1152 | { |
1153 | d_1_1_Core->f.DrawElements(mode, count, type, indices); |
1154 | } |
1155 | |
1156 | inline void QOpenGLFunctions_3_2_Compatibility::glDrawArrays(GLenum mode, GLint first, GLsizei count) |
1157 | { |
1158 | d_1_1_Core->f.DrawArrays(mode, first, count); |
1159 | } |
1160 | |
1161 | |
1162 | // OpenGL 1.2 core functions |
1163 | inline void QOpenGLFunctions_3_2_Compatibility::glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height) |
1164 | { |
1165 | d_1_2_Core->f.CopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height); |
1166 | } |
1167 | |
1168 | inline void QOpenGLFunctions_3_2_Compatibility::glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, |
---|