Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qopenglversionfunctions.h
Go to the documentation of this file.
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_H
16#define QOPENGLVERSIONFUNCTIONS_H
17
18#include <QtOpenGL/qtopenglglobal.h>
19
20#ifndef QT_NO_OPENGL
21
22#include <QtCore/qhashfunctions.h>
23#include <QtCore/qpair.h>
24#include <QtGui/qopengl.h>
25
26// MemoryBarrier is a macro on some architectures on Windows
27#ifdef Q_OS_WIN
28#pragma push_macro("MemoryBarrier")
29#undef MemoryBarrier
30#endif
31
33
34class QOpenGLContext;
35
36#if 0
37// silence syncqt warnings
38#pragma qt_class(QOpenGLVersionFunctions)
39#pragma qt_sync_stop_processing
40#endif
41
43{
49
51 : version(0, 0),
53 {}
54
55 constexpr QOpenGLVersionStatus(int majorVersion, int minorVersion, QOpenGLVersionStatus::OpenGLStatus functionStatus)
56 : version(majorVersion, minorVersion),
57 status(functionStatus)
58 {}
59
60 QPair<int, int> version;
62
63 friend constexpr bool operator==(const QOpenGLVersionStatus &lhs, const QOpenGLVersionStatus &rhs) noexcept
64 {
65 return lhs.status == rhs.status && lhs.version == rhs.version;
66 }
67
68 friend constexpr bool operator!=(const QOpenGLVersionStatus &lhs, const QOpenGLVersionStatus &rhs) noexcept
69 {
70 return !(lhs == rhs);
71 }
72};
73
74inline size_t qHash(const QOpenGLVersionStatus &v, size_t seed = 0) noexcept
75{
76 return qHash(static_cast<int>(v.status * 1000)
77 + v.version.first * 100 + v.version.second * 10, seed);
78}
79
80#define QT_OPENGL_DECLARE_FUNCTIONS(ret, name, args) \
81 ret (QOPENGLF_APIENTRYP name)args;
82#define QT_OPENGL_COUNT_FUNCTIONS(ret, name, args) +1
83
84#define QT_OPENGL_DECLARE(FUNCTIONS) \
85public: \
86 struct Functions { \
87 FUNCTIONS(QT_OPENGL_DECLARE_FUNCTIONS) \
88 }; \
89 union { \
90 QFunctionPointer functions[FUNCTIONS(QT_OPENGL_COUNT_FUNCTIONS)]; \
91 Functions f; \
92 }; \
93private: \
94 void init()
95
97{
98public:
99#define QT_OPENGL_VERSIONS(F) \
100 F(1_0_Core) \
101 F(1_1_Core) \
102 F(1_2_Core) \
103 F(1_3_Core) \
104 F(1_4_Core) \
105 F(1_5_Core) \
106 F(2_0_Core) \
107 F(2_1_Core) \
108 F(3_0_Core) \
109 F(3_1_Core) \
110 F(3_2_Core) \
111 F(3_3_Core) \
112 F(4_0_Core) \
113 F(4_1_Core) \
114 F(4_2_Core) \
115 F(4_3_Core) \
116 F(4_4_Core) \
117 F(4_5_Core) \
118 F(1_0_Deprecated) \
119 F(1_1_Deprecated) \
120 F(1_2_Deprecated) \
121 F(1_3_Deprecated) \
122 F(1_4_Deprecated) \
123 F(2_0_Deprecated) \
124 F(3_0_Deprecated) \
125 F(3_3_Deprecated) \
126 F(4_5_Deprecated) \
127
128#define VERSION_ENUM(X) OpenGL_##X,
133#undef VERSION_ENUM
134
138
141};
142
153
155
173
174class Q_OPENGL_EXPORT QAbstractOpenGLFunctions
175{
176public:
178
179 virtual bool initializeOpenGLFunctions();
180
181 Q_DISABLE_COPY(QAbstractOpenGLFunctions)
182 Q_DECLARE_PRIVATE(QAbstractOpenGLFunctions)
183
184protected:
187
188 bool isInitialized() const;
189
190 void setOwningContext(const QOpenGLContext *context);
191 QOpenGLContext *owningContext() const;
192
194};
195
200
201#if !QT_CONFIG(opengles2)
202
204{
205public:
211
212 constexpr static Version versionStatus()
213 { return OpenGL_1_0_Core; }
214
215 // OpenGL 1.0 core functions
216#define QT_OPENGL_1_0_FUNCTIONS(F) \
217 F(void, Viewport, (GLint x, GLint y, GLsizei width, GLsizei height)) \
218 F(void, DepthRange, (GLdouble nearVal, GLdouble farVal)) \
219 F(GLboolean, IsEnabled, (GLenum cap)) \
220 F(void, GetTexLevelParameteriv, (GLenum target, GLint level, GLenum pname, GLint *params)) \
221 F(void, GetTexLevelParameterfv, (GLenum target, GLint level, GLenum pname, GLfloat *params)) \
222 F(void, GetTexParameteriv, (GLenum target, GLenum pname, GLint *params)) \
223 F(void, GetTexParameterfv, (GLenum target, GLenum pname, GLfloat *params)) \
224 F(void, GetTexImage, (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels)) \
225 F(const GLubyte *, GetString, (GLenum name)) \
226 F(void, GetIntegerv, (GLenum pname, GLint *data)) \
227 F(void, GetFloatv, (GLenum pname, GLfloat *data)) \
228 F(GLenum, GetError, ()) \
229 F(void, GetDoublev, (GLenum pname, GLdouble *data)) \
230 F(void, GetBooleanv, (GLenum pname, GLboolean *data)) \
231 F(void, ReadPixels, (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)) \
232 F(void, ReadBuffer, (GLenum src)) \
233 F(void, PixelStorei, (GLenum pname, GLint param)) \
234 F(void, PixelStoref, (GLenum pname, GLfloat param)) \
235 F(void, DepthFunc, (GLenum func)) \
236 F(void, StencilOp, (GLenum fail, GLenum zfail, GLenum zpass)) \
237 F(void, StencilFunc, (GLenum func, GLint ref, GLuint mask)) \
238 F(void, LogicOp, (GLenum opcode)) \
239 F(void, BlendFunc, (GLenum sfactor, GLenum dfactor)) \
240 F(void, Flush, ()) \
241 F(void, Finish, ()) \
242 F(void, Enable, (GLenum cap)) \
243 F(void, Disable, (GLenum cap)) \
244 F(void, DepthMask, (GLboolean flag)) \
245 F(void, ColorMask, (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)) \
246 F(void, StencilMask, (GLuint mask)) \
247 F(void, ClearDepth, (GLdouble depth)) \
248 F(void, ClearStencil, (GLint s)) \
249 F(void, ClearColor, (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)) \
250 F(void, Clear, (GLbitfield mask)) \
251 F(void, DrawBuffer, (GLenum buf)) \
252 F(void, TexImage2D, (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)) \
253 F(void, TexImage1D, (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels)) \
254 F(void, TexParameteriv, (GLenum target, GLenum pname, const GLint *params)) \
255 F(void, TexParameteri, (GLenum target, GLenum pname, GLint param)) \
256 F(void, TexParameterfv, (GLenum target, GLenum pname, const GLfloat *params)) \
257 F(void, TexParameterf, (GLenum target, GLenum pname, GLfloat param)) \
258 F(void, Scissor, (GLint x, GLint y, GLsizei width, GLsizei height)) \
259 F(void, PolygonMode, (GLenum face, GLenum mode)) \
260 F(void, PointSize, (GLfloat size)) \
261 F(void, LineWidth, (GLfloat width)) \
262 F(void, Hint, (GLenum target, GLenum mode)) \
263 F(void, FrontFace, (GLenum mode)) \
264 F(void, CullFace, (GLenum mode)) \
265
267};
268
270{
271public:
277
278 constexpr static Version versionStatus()
279 { return OpenGL_1_1_Core; }
280
281 // OpenGL 1.1 core functions
282#define QT_OPENGL_1_1_FUNCTIONS(F) \
283 F(void, Indexubv, (const GLubyte *c)) \
284 F(void, Indexub, (GLubyte c)) \
285 F(GLboolean, IsTexture, (GLuint texture)) \
286 F(void, GenTextures, (GLsizei n, GLuint *textures)) \
287 F(void, DeleteTextures, (GLsizei n, const GLuint *textures)) \
288 F(void, BindTexture, (GLenum target, GLuint texture)) \
289 F(void, TexSubImage2D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)) \
290 F(void, TexSubImage1D, (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels)) \
291 F(void, CopyTexSubImage2D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)) \
292 F(void, CopyTexSubImage1D, (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)) \
293 F(void, CopyTexImage2D, (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)) \
294 F(void, CopyTexImage1D, (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border)) \
295 F(void, PolygonOffset, (GLfloat factor, GLfloat units)) \
296 F(void, GetPointerv, (GLenum pname, GLvoid* *params)) \
297 F(void, DrawElements, (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)) \
298 F(void, DrawArrays, (GLenum mode, GLint first, GLsizei count)) \
299
301};
302
304{
305public:
311
312 constexpr static Version versionStatus()
313 { return OpenGL_1_2_Core; }
314
315 // OpenGL 1.2 core functions
316#define QT_OPENGL_1_2_FUNCTIONS(F) \
317 F(void, CopyTexSubImage3D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)) \
318 F(void, TexSubImage3D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels)) \
319 F(void, TexImage3D, (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels)) \
320 F(void, DrawRangeElements, (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices)) \
321 F(void, BlendEquation, (GLenum mode)) \
322 F(void, BlendColor, (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)) \
323
325};
326
328{
329public:
335
336 constexpr static Version versionStatus()
337 { return OpenGL_1_3_Core; }
338
339 // OpenGL 1.3 core functions
340#define QT_OPENGL_1_3_FUNCTIONS(F) \
341 F(void, GetCompressedTexImage, (GLenum target, GLint level, GLvoid *img)) \
342 F(void, CompressedTexSubImage1D, (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data)) \
343 F(void, CompressedTexSubImage2D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data)) \
344 F(void, CompressedTexSubImage3D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data)) \
345 F(void, CompressedTexImage1D, (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data)) \
346 F(void, CompressedTexImage2D, (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data)) \
347 F(void, CompressedTexImage3D, (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data)) \
348 F(void, SampleCoverage, (GLfloat value, GLboolean invert)) \
349 F(void, ActiveTexture, (GLenum texture)) \
350
352};
353
355{
356public:
362
363 constexpr static Version versionStatus()
364 { return OpenGL_1_4_Core; }
365
366 // OpenGL 1.4 core functions
367#define QT_OPENGL_1_4_FUNCTIONS(F) \
368 F(void, PointParameteriv, (GLenum pname, const GLint *params)) \
369 F(void, PointParameteri, (GLenum pname, GLint param)) \
370 F(void, PointParameterfv, (GLenum pname, const GLfloat *params)) \
371 F(void, PointParameterf, (GLenum pname, GLfloat param)) \
372 F(void, MultiDrawElements, (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount)) \
373 F(void, MultiDrawArrays, (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount)) \
374 F(void, BlendFuncSeparate, (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha)) \
375
377};
378
380{
381public:
387
388 constexpr static Version versionStatus()
389 { return OpenGL_1_5_Core; }
390
391 // OpenGL 1.5 core functions
392#define QT_OPENGL_1_5_FUNCTIONS(F) \
393 F(void, GetBufferPointerv, (GLenum target, GLenum pname, GLvoid* *params)) \
394 F(void, GetBufferParameteriv, (GLenum target, GLenum pname, GLint *params)) \
395 F(GLboolean, UnmapBuffer, (GLenum target)) \
396 F(GLvoid*, MapBuffer, (GLenum target, GLenum access)) \
397 F(void, GetBufferSubData, (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data)) \
398 F(void, BufferSubData, (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data)) \
399 F(void, BufferData, (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage)) \
400 F(GLboolean, IsBuffer, (GLuint buffer)) \
401 F(void, GenBuffers, (GLsizei n, GLuint *buffers)) \
402 F(void, DeleteBuffers, (GLsizei n, const GLuint *buffers)) \
403 F(void, BindBuffer, (GLenum target, GLuint buffer)) \
404 F(void, GetQueryObjectuiv, (GLuint id, GLenum pname, GLuint *params)) \
405 F(void, GetQueryObjectiv, (GLuint id, GLenum pname, GLint *params)) \
406 F(void, GetQueryiv, (GLenum target, GLenum pname, GLint *params)) \
407 F(void, EndQuery, (GLenum target)) \
408 F(void, BeginQuery, (GLenum target, GLuint id)) \
409 F(GLboolean, IsQuery, (GLuint id)) \
410 F(void, DeleteQueries, (GLsizei n, const GLuint *ids)) \
411 F(void, GenQueries, (GLsizei n, GLuint *ids)) \
412
414};
415
417{
418public:
424
425 constexpr static Version versionStatus()
426 { return OpenGL_2_0_Core; }
427
428 // OpenGL 2.0 core functions
429#define QT_OPENGL_2_0_FUNCTIONS(F) \
430 F(void, VertexAttribPointer, (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer)) \
431 F(void, ValidateProgram, (GLuint program)) \
432 F(void, UniformMatrix4fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) \
433 F(void, UniformMatrix3fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) \
434 F(void, UniformMatrix2fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) \
435 F(void, Uniform4iv, (GLint location, GLsizei count, const GLint *value)) \
436 F(void, Uniform3iv, (GLint location, GLsizei count, const GLint *value)) \
437 F(void, Uniform2iv, (GLint location, GLsizei count, const GLint *value)) \
438 F(void, Uniform1iv, (GLint location, GLsizei count, const GLint *value)) \
439 F(void, Uniform4fv, (GLint location, GLsizei count, const GLfloat *value)) \
440 F(void, Uniform3fv, (GLint location, GLsizei count, const GLfloat *value)) \
441 F(void, Uniform2fv, (GLint location, GLsizei count, const GLfloat *value)) \
442 F(void, Uniform1fv, (GLint location, GLsizei count, const GLfloat *value)) \
443 F(void, Uniform4i, (GLint location, GLint v0, GLint v1, GLint v2, GLint v3)) \
444 F(void, Uniform3i, (GLint location, GLint v0, GLint v1, GLint v2)) \
445 F(void, Uniform2i, (GLint location, GLint v0, GLint v1)) \
446 F(void, Uniform1i, (GLint location, GLint v0)) \
447 F(void, Uniform4f, (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)) \
448 F(void, Uniform3f, (GLint location, GLfloat v0, GLfloat v1, GLfloat v2)) \
449 F(void, Uniform2f, (GLint location, GLfloat v0, GLfloat v1)) \
450 F(void, Uniform1f, (GLint location, GLfloat v0)) \
451 F(void, UseProgram, (GLuint program)) \
452 F(void, ShaderSource, (GLuint shader, GLsizei count, const GLchar* const *string, const GLint *length)) \
453 F(void, LinkProgram, (GLuint program)) \
454 F(GLboolean, IsShader, (GLuint shader)) \
455 F(GLboolean, IsProgram, (GLuint program)) \
456 F(void, GetVertexAttribPointerv, (GLuint index, GLenum pname, GLvoid* *pointer)) \
457 F(void, GetVertexAttribiv, (GLuint index, GLenum pname, GLint *params)) \
458 F(void, GetVertexAttribfv, (GLuint index, GLenum pname, GLfloat *params)) \
459 F(void, GetVertexAttribdv, (GLuint index, GLenum pname, GLdouble *params)) \
460 F(void, GetUniformiv, (GLuint program, GLint location, GLint *params)) \
461 F(void, GetUniformfv, (GLuint program, GLint location, GLfloat *params)) \
462 F(GLint, GetUniformLocation, (GLuint program, const GLchar *name)) \
463 F(void, GetShaderSource, (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source)) \
464 F(void, GetShaderInfoLog, (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog)) \
465 F(void, GetShaderiv, (GLuint shader, GLenum pname, GLint *params)) \
466 F(void, GetProgramInfoLog, (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog)) \
467 F(void, GetProgramiv, (GLuint program, GLenum pname, GLint *params)) \
468 F(GLint, GetAttribLocation, (GLuint program, const GLchar *name)) \
469 F(void, GetAttachedShaders, (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders)) \
470 F(void, GetActiveUniform, (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)) \
471 F(void, GetActiveAttrib, (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)) \
472 F(void, EnableVertexAttribArray, (GLuint index)) \
473 F(void, DisableVertexAttribArray, (GLuint index)) \
474 F(void, DetachShader, (GLuint program, GLuint shader)) \
475 F(void, DeleteShader, (GLuint shader)) \
476 F(void, DeleteProgram, (GLuint program)) \
477 F(GLuint, CreateShader, (GLenum type)) \
478 F(GLuint, CreateProgram, ()) \
479 F(void, CompileShader, (GLuint shader)) \
480 F(void, BindAttribLocation, (GLuint program, GLuint index, const GLchar *name)) \
481 F(void, AttachShader, (GLuint program, GLuint shader)) \
482 F(void, StencilMaskSeparate, (GLenum face, GLuint mask)) \
483 F(void, StencilFuncSeparate, (GLenum face, GLenum func, GLint ref, GLuint mask)) \
484 F(void, StencilOpSeparate, (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass)) \
485 F(void, DrawBuffers, (GLsizei n, const GLenum *bufs)) \
486 F(void, BlendEquationSeparate, (GLenum modeRGB, GLenum modeAlpha)) \
487 F(void, VertexAttrib4usv, (GLuint index, const GLushort *v)) \
488 F(void, VertexAttrib4uiv, (GLuint index, const GLuint *v)) \
489 F(void, VertexAttrib4ubv, (GLuint index, const GLubyte *v)) \
490 F(void, VertexAttrib4sv, (GLuint index, const GLshort *v)) \
491 F(void, VertexAttrib4s, (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w)) \
492 F(void, VertexAttrib4iv, (GLuint index, const GLint *v)) \
493 F(void, VertexAttrib4fv, (GLuint index, const GLfloat *v)) \
494 F(void, VertexAttrib4f, (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)) \
495 F(void, VertexAttrib4dv, (GLuint index, const GLdouble *v)) \
496 F(void, VertexAttrib4d, (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w)) \
497 F(void, VertexAttrib4bv, (GLuint index, const GLbyte *v)) \
498 F(void, VertexAttrib4Nusv, (GLuint index, const GLushort *v)) \
499 F(void, VertexAttrib4Nuiv, (GLuint index, const GLuint *v)) \
500 F(void, VertexAttrib4Nubv, (GLuint index, const GLubyte *v)) \
501 F(void, VertexAttrib4Nub, (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w)) \
502 F(void, VertexAttrib4Nsv, (GLuint index, const GLshort *v)) \
503 F(void, VertexAttrib4Niv, (GLuint index, const GLint *v)) \
504 F(void, VertexAttrib4Nbv, (GLuint index, const GLbyte *v)) \
505 F(void, VertexAttrib3sv, (GLuint index, const GLshort *v)) \
506 F(void, VertexAttrib3s, (GLuint index, GLshort x, GLshort y, GLshort z)) \
507 F(void, VertexAttrib3fv, (GLuint index, const GLfloat *v)) \
508 F(void, VertexAttrib3f, (GLuint index, GLfloat x, GLfloat y, GLfloat z)) \
509 F(void, VertexAttrib3dv, (GLuint index, const GLdouble *v)) \
510 F(void, VertexAttrib3d, (GLuint index, GLdouble x, GLdouble y, GLdouble z)) \
511 F(void, VertexAttrib2sv, (GLuint index, const GLshort *v)) \
512 F(void, VertexAttrib2s, (GLuint index, GLshort x, GLshort y)) \
513 F(void, VertexAttrib2fv, (GLuint index, const GLfloat *v)) \
514 F(void, VertexAttrib2f, (GLuint index, GLfloat x, GLfloat y)) \
515 F(void, VertexAttrib2dv, (GLuint index, const GLdouble *v)) \
516 F(void, VertexAttrib2d, (GLuint index, GLdouble x, GLdouble y)) \
517 F(void, VertexAttrib1sv, (GLuint index, const GLshort *v)) \
518 F(void, VertexAttrib1s, (GLuint index, GLshort x)) \
519 F(void, VertexAttrib1fv, (GLuint index, const GLfloat *v)) \
520 F(void, VertexAttrib1f, (GLuint index, GLfloat x)) \
521 F(void, VertexAttrib1dv, (GLuint index, const GLdouble *v)) \
522 F(void, VertexAttrib1d, (GLuint index, GLdouble x)) \
523
525};
526
528{
529public:
535
536 constexpr static Version versionStatus()
537 { return OpenGL_2_1_Core; }
538
539 // OpenGL 2.1 core functions
540#define QT_OPENGL_2_1_FUNCTIONS(F) \
541 F(void, UniformMatrix4x3fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) \
542 F(void, UniformMatrix3x4fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) \
543 F(void, UniformMatrix4x2fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) \
544 F(void, UniformMatrix2x4fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) \
545 F(void, UniformMatrix3x2fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) \
546 F(void, UniformMatrix2x3fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) \
547
549};
550
552{
553public:
559
560 constexpr static Version versionStatus()
561 { return OpenGL_3_0_Core; }
562
563 // OpenGL 3.0 core functions
564#define QT_OPENGL_3_0_FUNCTIONS(F) \
565 F(GLboolean, IsVertexArray, (GLuint array)) \
566 F(void, GenVertexArrays, (GLsizei n, GLuint *arrays)) \
567 F(void, DeleteVertexArrays, (GLsizei n, const GLuint *arrays)) \
568 F(void, BindVertexArray, (GLuint array)) \
569 F(void, FlushMappedBufferRange, (GLenum target, GLintptr offset, GLsizeiptr length)) \
570 F(GLvoid *, MapBufferRange, (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access)) \
571 F(void, FramebufferTextureLayer, (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer)) \
572 F(void, RenderbufferStorageMultisample, (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height)) \
573 F(void, BlitFramebuffer, (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)) \
574 F(void, GenerateMipmap, (GLenum target)) \
575 F(void, GetFramebufferAttachmentParameteriv, (GLenum target, GLenum attachment, GLenum pname, GLint *params)) \
576 F(void, FramebufferRenderbuffer, (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)) \
577 F(void, FramebufferTexture3D, (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset)) \
578 F(void, FramebufferTexture2D, (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)) \
579 F(void, FramebufferTexture1D, (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)) \
580 F(GLenum, CheckFramebufferStatus, (GLenum target)) \
581 F(void, GenFramebuffers, (GLsizei n, GLuint *framebuffers)) \
582 F(void, DeleteFramebuffers, (GLsizei n, const GLuint *framebuffers)) \
583 F(void, BindFramebuffer, (GLenum target, GLuint framebuffer)) \
584 F(GLboolean, IsFramebuffer, (GLuint framebuffer)) \
585 F(void, GetRenderbufferParameteriv, (GLenum target, GLenum pname, GLint *params)) \
586 F(void, RenderbufferStorage, (GLenum target, GLenum internalformat, GLsizei width, GLsizei height)) \
587 F(void, GenRenderbuffers, (GLsizei n, GLuint *renderbuffers)) \
588 F(void, DeleteRenderbuffers, (GLsizei n, const GLuint *renderbuffers)) \
589 F(void, BindRenderbuffer, (GLenum target, GLuint renderbuffer)) \
590 F(GLboolean, IsRenderbuffer, (GLuint renderbuffer)) \
591 F(const GLubyte *, GetStringi, (GLenum name, GLuint index)) \
592 F(void, ClearBufferfi, (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil)) \
593 F(void, ClearBufferfv, (GLenum buffer, GLint drawbuffer, const GLfloat *value)) \
594 F(void, ClearBufferuiv, (GLenum buffer, GLint drawbuffer, const GLuint *value)) \
595 F(void, ClearBufferiv, (GLenum buffer, GLint drawbuffer, const GLint *value)) \
596 F(void, GetTexParameterIuiv, (GLenum target, GLenum pname, GLuint *params)) \
597 F(void, GetTexParameterIiv, (GLenum target, GLenum pname, GLint *params)) \
598 F(void, TexParameterIuiv, (GLenum target, GLenum pname, const GLuint *params)) \
599 F(void, TexParameterIiv, (GLenum target, GLenum pname, const GLint *params)) \
600 F(void, Uniform4uiv, (GLint location, GLsizei count, const GLuint *value)) \
601 F(void, Uniform3uiv, (GLint location, GLsizei count, const GLuint *value)) \
602 F(void, Uniform2uiv, (GLint location, GLsizei count, const GLuint *value)) \
603 F(void, Uniform1uiv, (GLint location, GLsizei count, const GLuint *value)) \
604 F(void, Uniform4ui, (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3)) \
605 F(void, Uniform3ui, (GLint location, GLuint v0, GLuint v1, GLuint v2)) \
606 F(void, Uniform2ui, (GLint location, GLuint v0, GLuint v1)) \
607 F(void, Uniform1ui, (GLint location, GLuint v0)) \
608 F(GLint, GetFragDataLocation, (GLuint program, const GLchar *name)) \
609 F(void, BindFragDataLocation, (GLuint program, GLuint color, const GLchar *name)) \
610 F(void, GetUniformuiv, (GLuint program, GLint location, GLuint *params)) \
611 F(void, GetVertexAttribIuiv, (GLuint index, GLenum pname, GLuint *params)) \
612 F(void, GetVertexAttribIiv, (GLuint index, GLenum pname, GLint *params)) \
613 F(void, VertexAttribIPointer, (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)) \
614 F(void, EndConditionalRender, ()) \
615 F(void, BeginConditionalRender, (GLuint id, GLenum mode)) \
616 F(void, ClampColor, (GLenum target, GLenum clamp)) \
617 F(void, GetTransformFeedbackVarying, (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name)) \
618 F(void, TransformFeedbackVaryings, (GLuint program, GLsizei count, const GLchar* const *varyings, GLenum bufferMode)) \
619 F(void, BindBufferBase, (GLenum target, GLuint index, GLuint buffer)) \
620 F(void, BindBufferRange, (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size)) \
621 F(void, EndTransformFeedback, ()) \
622 F(void, BeginTransformFeedback, (GLenum primitiveMode)) \
623 F(GLboolean, IsEnabledi, (GLenum target, GLuint index)) \
624 F(void, Disablei, (GLenum target, GLuint index)) \
625 F(void, Enablei, (GLenum target, GLuint index)) \
626 F(void, GetIntegeri_v,(GLenum target, GLuint index, GLint *data)) \
627 F(void, GetBooleani_v,(GLenum target, GLuint index, GLboolean *data)) \
628 F(void, ColorMaski, (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a)) \
629 F(void, VertexAttribI4usv, (GLuint index, const GLushort *v)) \
630 F(void, VertexAttribI4ubv, (GLuint index, const GLubyte *v)) \
631 F(void, VertexAttribI4sv, (GLuint index, const GLshort *v)) \
632 F(void, VertexAttribI4bv, (GLuint index, const GLbyte *v)) \
633 F(void, VertexAttribI4uiv, (GLuint index, const GLuint *v)) \
634 F(void, VertexAttribI3uiv, (GLuint index, const GLuint *v)) \
635 F(void, VertexAttribI2uiv, (GLuint index, const GLuint *v)) \
636 F(void, VertexAttribI1uiv, (GLuint index, const GLuint *v)) \
637 F(void, VertexAttribI4iv, (GLuint index, const GLint *v)) \
638 F(void, VertexAttribI3iv, (GLuint index, const GLint *v)) \
639 F(void, VertexAttribI2iv, (GLuint index, const GLint *v)) \
640 F(void, VertexAttribI1iv, (GLuint index, const GLint *v)) \
641 F(void, VertexAttribI4ui, (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w)) \
642 F(void, VertexAttribI3ui, (GLuint index, GLuint x, GLuint y, GLuint z)) \
643 F(void, VertexAttribI2ui, (GLuint index, GLuint x, GLuint y)) \
644 F(void, VertexAttribI1ui, (GLuint index, GLuint x)) \
645 F(void, VertexAttribI4i, (GLuint index, GLint x, GLint y, GLint z, GLint w)) \
646 F(void, VertexAttribI3i, (GLuint index, GLint x, GLint y, GLint z)) \
647 F(void, VertexAttribI2i, (GLuint index, GLint x, GLint y)) \
648 F(void, VertexAttribI1i, (GLuint index, GLint x)) \
649
651};
652
654{
655public:
661
662 constexpr static Version versionStatus()
663 { return OpenGL_3_1_Core; }
664
665 // OpenGL 3.1 core functions
666#define QT_OPENGL_3_1_FUNCTIONS(F) \
667 F(void, CopyBufferSubData, (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size)) \
668 F(void, UniformBlockBinding, (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding)) \
669 F(void, GetActiveUniformBlockName, (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName)) \
670 F(void, GetActiveUniformBlockiv, (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params)) \
671 F(GLuint, GetUniformBlockIndex, (GLuint program, const GLchar *uniformBlockName)) \
672 F(void, GetActiveUniformName, (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName)) \
673 F(void, GetActiveUniformsiv, (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params)) \
674 F(void, GetUniformIndices, (GLuint program, GLsizei uniformCount, const GLchar* const *uniformNames, GLuint *uniformIndices)) \
675 F(void, PrimitiveRestartIndex, (GLuint index)) \
676 F(void, TexBuffer, (GLenum target, GLenum internalformat, GLuint buffer)) \
677 F(void, DrawElementsInstanced, (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount)) \
678 F(void, DrawArraysInstanced, (GLenum mode, GLint first, GLsizei count, GLsizei instancecount)) \
679
681};
682
684{
685public:
691
692 constexpr static Version versionStatus()
693 { return OpenGL_3_2_Core; }
694
695 // OpenGL 3.2 core functions
696#define QT_OPENGL_3_2_FUNCTIONS(F) \
697 F(void, SampleMaski, (GLuint maskNumber, GLbitfield mask)) \
698 F(void, GetMultisamplefv, (GLenum pname, GLuint index, GLfloat *val)) \
699 F(void, TexImage3DMultisample, (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations)) \
700 F(void, TexImage2DMultisample, (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations)) \
701 F(void, GetSynciv, (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values)) \
702 F(void, GetInteger64v, (GLenum pname, GLint64 *data)) \
703 F(void, WaitSync, (GLsync sync, GLbitfield flags, GLuint64 timeout)) \
704 F(GLenum, ClientWaitSync, (GLsync sync, GLbitfield flags, GLuint64 timeout)) \
705 F(void, DeleteSync, (GLsync sync)) \
706 F(GLboolean, IsSync, (GLsync sync)) \
707 F(GLsync, FenceSync, (GLenum condition, GLbitfield flags)) \
708 F(void, ProvokingVertex, (GLenum mode)) \
709 F(void, MultiDrawElementsBaseVertex, (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount, const GLint *basevertex)) \
710 F(void, DrawElementsInstancedBaseVertex, (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount, GLint basevertex)) \
711 F(void, DrawRangeElementsBaseVertex, (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex)) \
712 F(void, DrawElementsBaseVertex, (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex)) \
713 F(void, FramebufferTexture, (GLenum target, GLenum attachment, GLuint texture, GLint level)) \
714 F(void, GetBufferParameteri64v, (GLenum target, GLenum pname, GLint64 *params)) \
715 F(void, GetInteger64i_v,(GLenum target, GLuint index, GLint64 *data))
716
718};
719
721{
722public:
728
729 constexpr static Version versionStatus()
730 { return OpenGL_3_3_Core; }
731
732 // OpenGL 3.3 core functions
733#define QT_OPENGL_3_3_FUNCTIONS(F) \
734 F(void, VertexAttribP4uiv, (GLuint index, GLenum type, GLboolean normalized, const GLuint *value)) \
735 F(void, VertexAttribP4ui, (GLuint index, GLenum type, GLboolean normalized, GLuint value)) \
736 F(void, VertexAttribP3uiv, (GLuint index, GLenum type, GLboolean normalized, const GLuint *value)) \
737 F(void, VertexAttribP3ui, (GLuint index, GLenum type, GLboolean normalized, GLuint value)) \
738 F(void, VertexAttribP2uiv, (GLuint index, GLenum type, GLboolean normalized, const GLuint *value)) \
739 F(void, VertexAttribP2ui, (GLuint index, GLenum type, GLboolean normalized, GLuint value)) \
740 F(void, VertexAttribP1uiv, (GLuint index, GLenum type, GLboolean normalized, const GLuint *value)) \
741 F(void, VertexAttribP1ui, (GLuint index, GLenum type, GLboolean normalized, GLuint value)) \
742 F(void, SecondaryColorP3uiv, (GLenum type, const GLuint *color)) \
743 F(void, SecondaryColorP3ui, (GLenum type, GLuint color)) \
744 F(void, ColorP4uiv, (GLenum type, const GLuint *color)) \
745 F(void, ColorP4ui, (GLenum type, GLuint color)) \
746 F(void, ColorP3uiv, (GLenum type, const GLuint *color)) \
747 F(void, ColorP3ui, (GLenum type, GLuint color)) \
748 F(void, NormalP3uiv, (GLenum type, const GLuint *coords)) \
749 F(void, NormalP3ui, (GLenum type, GLuint coords)) \
750 F(void, MultiTexCoordP4uiv, (GLenum texture, GLenum type, const GLuint *coords)) \
751 F(void, MultiTexCoordP4ui, (GLenum texture, GLenum type, GLuint coords)) \
752 F(void, MultiTexCoordP3uiv, (GLenum texture, GLenum type, const GLuint *coords)) \
753 F(void, MultiTexCoordP3ui, (GLenum texture, GLenum type, GLuint coords)) \
754 F(void, MultiTexCoordP2uiv, (GLenum texture, GLenum type, const GLuint *coords)) \
755 F(void, MultiTexCoordP2ui, (GLenum texture, GLenum type, GLuint coords)) \
756 F(void, MultiTexCoordP1uiv, (GLenum texture, GLenum type, const GLuint *coords)) \
757 F(void, MultiTexCoordP1ui, (GLenum texture, GLenum type, GLuint coords)) \
758 F(void, TexCoordP4uiv, (GLenum type, const GLuint *coords)) \
759 F(void, TexCoordP4ui, (GLenum type, GLuint coords)) \
760 F(void, TexCoordP3uiv, (GLenum type, const GLuint *coords)) \
761 F(void, TexCoordP3ui, (GLenum type, GLuint coords)) \
762 F(void, TexCoordP2uiv, (GLenum type, const GLuint *coords)) \
763 F(void, TexCoordP2ui, (GLenum type, GLuint coords)) \
764 F(void, TexCoordP1uiv, (GLenum type, const GLuint *coords)) \
765 F(void, TexCoordP1ui, (GLenum type, GLuint coords)) \
766 F(void, VertexP4uiv, (GLenum type, const GLuint *value)) \
767 F(void, VertexP4ui, (GLenum type, GLuint value)) \
768 F(void, VertexP3uiv, (GLenum type, const GLuint *value)) \
769 F(void, VertexP3ui, (GLenum type, GLuint value)) \
770 F(void, VertexP2uiv, (GLenum type, const GLuint *value)) \
771 F(void, VertexP2ui, (GLenum type, GLuint value)) \
772 F(void, GetQueryObjectui64v, (GLuint id, GLenum pname, GLuint64 *params)) \
773 F(void, GetQueryObjecti64v, (GLuint id, GLenum pname, GLint64 *params)) \
774 F(void, QueryCounter, (GLuint id, GLenum target)) \
775 F(void, GetSamplerParameterIuiv, (GLuint sampler, GLenum pname, GLuint *params)) \
776 F(void, GetSamplerParameterfv, (GLuint sampler, GLenum pname, GLfloat *params)) \
777 F(void, GetSamplerParameterIiv, (GLuint sampler, GLenum pname, GLint *params)) \
778 F(void, GetSamplerParameteriv, (GLuint sampler, GLenum pname, GLint *params)) \
779 F(void, SamplerParameterIuiv, (GLuint sampler, GLenum pname, const GLuint *param)) \
780 F(void, SamplerParameterIiv, (GLuint sampler, GLenum pname, const GLint *param)) \
781 F(void, SamplerParameterfv, (GLuint sampler, GLenum pname, const GLfloat *param)) \
782 F(void, SamplerParameterf, (GLuint sampler, GLenum pname, GLfloat param)) \
783 F(void, SamplerParameteriv, (GLuint sampler, GLenum pname, const GLint *param)) \
784 F(void, SamplerParameteri, (GLuint sampler, GLenum pname, GLint param)) \
785 F(void, BindSampler, (GLuint unit, GLuint sampler)) \
786 F(GLboolean, IsSampler, (GLuint sampler)) \
787 F(void, DeleteSamplers, (GLsizei count, const GLuint *samplers)) \
788 F(void, GenSamplers, (GLsizei count, GLuint *samplers)) \
789 F(GLint, GetFragDataIndex, (GLuint program, const GLchar *name)) \
790 F(void, BindFragDataLocationIndexed, (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name)) \
791 F(void, VertexAttribDivisor, (GLuint index, GLuint divisor)) \
792
794};
795
797{
798public:
804
805 constexpr static Version versionStatus()
806 { return OpenGL_4_0_Core; }
807
808 // OpenGL 4.0 core functions
809#define QT_OPENGL_4_0_FUNCTIONS(F) \
810 F(void, GetQueryIndexediv, (GLenum target, GLuint index, GLenum pname, GLint *params)) \
811 F(void, EndQueryIndexed, (GLenum target, GLuint index)) \
812 F(void, BeginQueryIndexed, (GLenum target, GLuint index, GLuint id)) \
813 F(void, DrawTransformFeedbackStream, (GLenum mode, GLuint id, GLuint stream)) \
814 F(void, DrawTransformFeedback, (GLenum mode, GLuint id)) \
815 F(void, ResumeTransformFeedback, ()) \
816 F(void, PauseTransformFeedback, ()) \
817 F(GLboolean, IsTransformFeedback, (GLuint id)) \
818 F(void, GenTransformFeedbacks, (GLsizei n, GLuint *ids)) \
819 F(void, DeleteTransformFeedbacks, (GLsizei n, const GLuint *ids)) \
820 F(void, BindTransformFeedback, (GLenum target, GLuint id)) \
821 F(void, PatchParameterfv, (GLenum pname, const GLfloat *values)) \
822 F(void, PatchParameteri, (GLenum pname, GLint value)) \
823 F(void, GetProgramStageiv, (GLuint program, GLenum shadertype, GLenum pname, GLint *values)) \
824 F(void, GetUniformSubroutineuiv, (GLenum shadertype, GLint location, GLuint *params)) \
825 F(void, UniformSubroutinesuiv, (GLenum shadertype, GLsizei count, const GLuint *indices)) \
826 F(void, GetActiveSubroutineName, (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name)) \
827 F(void, GetActiveSubroutineUniformName, (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name)) \
828 F(void, GetActiveSubroutineUniformiv, (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values)) \
829 F(GLuint, GetSubroutineIndex, (GLuint program, GLenum shadertype, const GLchar *name)) \
830 F(GLint, GetSubroutineUniformLocation, (GLuint program, GLenum shadertype, const GLchar *name)) \
831 F(void, GetUniformdv, (GLuint program, GLint location, GLdouble *params)) \
832 F(void, UniformMatrix4x3dv, (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)) \
833 F(void, UniformMatrix4x2dv, (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)) \
834 F(void, UniformMatrix3x4dv, (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)) \
835 F(void, UniformMatrix3x2dv, (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)) \
836 F(void, UniformMatrix2x4dv, (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)) \
837 F(void, UniformMatrix2x3dv, (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)) \
838 F(void, UniformMatrix4dv, (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)) \
839 F(void, UniformMatrix3dv, (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)) \
840 F(void, UniformMatrix2dv, (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)) \
841 F(void, Uniform4dv, (GLint location, GLsizei count, const GLdouble *value)) \
842 F(void, Uniform3dv, (GLint location, GLsizei count, const GLdouble *value)) \
843 F(void, Uniform2dv, (GLint location, GLsizei count, const GLdouble *value)) \
844 F(void, Uniform1dv, (GLint location, GLsizei count, const GLdouble *value)) \
845 F(void, Uniform4d, (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w)) \
846 F(void, Uniform3d, (GLint location, GLdouble x, GLdouble y, GLdouble z)) \
847 F(void, Uniform2d, (GLint location, GLdouble x, GLdouble y)) \
848 F(void, Uniform1d, (GLint location, GLdouble x)) \
849 F(void, DrawElementsIndirect, (GLenum mode, GLenum type, const GLvoid *indirect)) \
850 F(void, DrawArraysIndirect, (GLenum mode, const GLvoid *indirect)) \
851 F(void, BlendFuncSeparatei, (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)) \
852 F(void, BlendFunci, (GLuint buf, GLenum src, GLenum dst)) \
853 F(void, BlendEquationSeparatei, (GLuint buf, GLenum modeRGB, GLenum modeAlpha)) \
854 F(void, BlendEquationi, (GLuint buf, GLenum mode)) \
855 F(void, MinSampleShading, (GLfloat value)) \
856
858};
859
861{
862public:
868
869 constexpr static Version versionStatus()
870 { return OpenGL_4_1_Core; }
871
872 // OpenGL 4.1 core functions
873#define QT_OPENGL_4_1_FUNCTIONS(F) \
874 F(void, GetDoublei_v, (GLenum target, GLuint index, GLdouble *data)) \
875 F(void, GetFloati_v,(GLenum target, GLuint index, GLfloat *data)) \
876 F(void, DepthRangeIndexed, (GLuint index, GLdouble n, GLdouble f)) \
877 F(void, DepthRangeArrayv, (GLuint first, GLsizei count, const GLdouble *v)) \
878 F(void, ScissorIndexedv, (GLuint index, const GLint *v)) \
879 F(void, ScissorIndexed, (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height)) \
880 F(void, ScissorArrayv, (GLuint first, GLsizei count, const GLint *v)) \
881 F(void, ViewportIndexedfv, (GLuint index, const GLfloat *v)) \
882 F(void, ViewportIndexedf, (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h)) \
883 F(void, ViewportArrayv, (GLuint first, GLsizei count, const GLfloat *v)) \
884 F(void, GetVertexAttribLdv, (GLuint index, GLenum pname, GLdouble *params)) \
885 F(void, VertexAttribLPointer, (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)) \
886 F(void, VertexAttribL4dv, (GLuint index, const GLdouble *v)) \
887 F(void, VertexAttribL3dv, (GLuint index, const GLdouble *v)) \
888 F(void, VertexAttribL2dv, (GLuint index, const GLdouble *v)) \
889 F(void, VertexAttribL1dv, (GLuint index, const GLdouble *v)) \
890 F(void, VertexAttribL4d, (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w)) \
891 F(void, VertexAttribL3d, (GLuint index, GLdouble x, GLdouble y, GLdouble z)) \
892 F(void, VertexAttribL2d, (GLuint index, GLdouble x, GLdouble y)) \
893 F(void, VertexAttribL1d, (GLuint index, GLdouble x)) \
894 F(void, GetProgramPipelineInfoLog, (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog)) \
895 F(void, ValidateProgramPipeline, (GLuint pipeline)) \
896 F(void, ProgramUniformMatrix4x3dv, (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)) \
897 F(void, ProgramUniformMatrix3x4dv, (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)) \
898 F(void, ProgramUniformMatrix4x2dv, (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)) \
899 F(void, ProgramUniformMatrix2x4dv, (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)) \
900 F(void, ProgramUniformMatrix3x2dv, (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)) \
901 F(void, ProgramUniformMatrix2x3dv, (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)) \
902 F(void, ProgramUniformMatrix4x3fv, (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) \
903 F(void, ProgramUniformMatrix3x4fv, (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) \
904 F(void, ProgramUniformMatrix4x2fv, (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) \
905 F(void, ProgramUniformMatrix2x4fv, (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) \
906 F(void, ProgramUniformMatrix3x2fv, (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) \
907 F(void, ProgramUniformMatrix2x3fv, (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) \
908 F(void, ProgramUniformMatrix4dv, (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)) \
909 F(void, ProgramUniformMatrix3dv, (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)) \
910 F(void, ProgramUniformMatrix2dv, (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)) \
911 F(void, ProgramUniformMatrix4fv, (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) \
912 F(void, ProgramUniformMatrix3fv, (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) \
913 F(void, ProgramUniformMatrix2fv, (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) \
914 F(void, ProgramUniform4uiv, (GLuint program, GLint location, GLsizei count, const GLuint *value)) \
915 F(void, ProgramUniform4ui, (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3)) \
916 F(void, ProgramUniform4dv, (GLuint program, GLint location, GLsizei count, const GLdouble *value)) \
917 F(void, ProgramUniform4d, (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3)) \
918 F(void, ProgramUniform4fv, (GLuint program, GLint location, GLsizei count, const GLfloat *value)) \
919 F(void, ProgramUniform4f, (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)) \
920 F(void, ProgramUniform4iv, (GLuint program, GLint location, GLsizei count, const GLint *value)) \
921 F(void, ProgramUniform4i, (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3)) \
922 F(void, ProgramUniform3uiv, (GLuint program, GLint location, GLsizei count, const GLuint *value)) \
923 F(void, ProgramUniform3ui, (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2)) \
924 F(void, ProgramUniform3dv, (GLuint program, GLint location, GLsizei count, const GLdouble *value)) \
925 F(void, ProgramUniform3d, (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2)) \
926 F(void, ProgramUniform3fv, (GLuint program, GLint location, GLsizei count, const GLfloat *value)) \
927 F(void, ProgramUniform3f, (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2)) \
928 F(void, ProgramUniform3iv, (GLuint program, GLint location, GLsizei count, const GLint *value)) \
929 F(void, ProgramUniform3i, (GLuint program, GLint location, GLint v0, GLint v1, GLint v2)) \
930 F(void, ProgramUniform2uiv, (GLuint program, GLint location, GLsizei count, const GLuint *value)) \
931 F(void, ProgramUniform2ui, (GLuint program, GLint location, GLuint v0, GLuint v1)) \
932 F(void, ProgramUniform2dv, (GLuint program, GLint location, GLsizei count, const GLdouble *value)) \
933 F(void, ProgramUniform2d, (GLuint program, GLint location, GLdouble v0, GLdouble v1)) \
934 F(void, ProgramUniform2fv, (GLuint program, GLint location, GLsizei count, const GLfloat *value)) \
935 F(void, ProgramUniform2f, (GLuint program, GLint location, GLfloat v0, GLfloat v1)) \
936 F(void, ProgramUniform2iv, (GLuint program, GLint location, GLsizei count, const GLint *value)) \
937 F(void, ProgramUniform2i, (GLuint program, GLint location, GLint v0, GLint v1)) \
938 F(void, ProgramUniform1uiv, (GLuint program, GLint location, GLsizei count, const GLuint *value)) \
939 F(void, ProgramUniform1ui, (GLuint program, GLint location, GLuint v0)) \
940 F(void, ProgramUniform1dv, (GLuint program, GLint location, GLsizei count, const GLdouble *value)) \
941 F(void, ProgramUniform1d, (GLuint program, GLint location, GLdouble v0)) \
942 F(void, ProgramUniform1fv, (GLuint program, GLint location, GLsizei count, const GLfloat *value)) \
943 F(void, ProgramUniform1f, (GLuint program, GLint location, GLfloat v0)) \
944 F(void, ProgramUniform1iv, (GLuint program, GLint location, GLsizei count, const GLint *value)) \
945 F(void, ProgramUniform1i, (GLuint program, GLint location, GLint v0)) \
946 F(void, GetProgramPipelineiv, (GLuint pipeline, GLenum pname, GLint *params)) \
947 F(GLboolean, IsProgramPipeline, (GLuint pipeline)) \
948 F(void, GenProgramPipelines, (GLsizei n, GLuint *pipelines)) \
949 F(void, DeleteProgramPipelines, (GLsizei n, const GLuint *pipelines)) \
950 F(void, BindProgramPipeline, (GLuint pipeline)) \
951 F(GLuint, CreateShaderProgramv, (GLenum type, GLsizei count, const GLchar* const *strings)) \
952 F(void, ActiveShaderProgram, (GLuint pipeline, GLuint program)) \
953 F(void, UseProgramStages, (GLuint pipeline, GLbitfield stages, GLuint program)) \
954 F(void, ProgramParameteri, (GLuint program, GLenum pname, GLint value)) \
955 F(void, ProgramBinary, (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLsizei length)) \
956 F(void, GetProgramBinary, (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary)) \
957 F(void, ClearDepthf, (GLfloat dd)) \
958 F(void, DepthRangef, (GLfloat n, GLfloat f)) \
959 F(void, GetShaderPrecisionFormat, (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)) \
960 F(void, ShaderBinary, (GLsizei count, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length)) \
961 F(void, ReleaseShaderCompiler, ()) \
962
964};
965
967{
968public:
974
975 constexpr static Version versionStatus()
976 { return OpenGL_4_2_Core; }
977
978 // OpenGL 4.2 core functions
979#define QT_OPENGL_4_2_FUNCTIONS(F) \
980 F(void, TexStorage3D, (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth)) \
981 F(void, TexStorage2D, (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height)) \
982 F(void, TexStorage1D, (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width)) \
983 F(void, MemoryBarrier, (GLbitfield barriers)) \
984 F(void, BindImageTexture, (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format)) \
985 F(void, GetActiveAtomicCounterBufferiv, (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params)) \
986 F(void, GetInternalformativ, (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params)) \
987 F(void, DrawTransformFeedbackStreamInstanced, (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount)) \
988 F(void, DrawTransformFeedbackInstanced, (GLenum mode, GLuint id, GLsizei instancecount)) \
989 F(void, DrawElementsInstancedBaseVertexBaseInstance, (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance)) \
990 F(void, DrawElementsInstancedBaseInstance, (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance)) \
991 F(void, DrawArraysInstancedBaseInstance, (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance)) \
992
994};
995
997{
998public:
1004
1005 constexpr static Version versionStatus()
1006 { return OpenGL_4_3_Core; }
1007
1008 // OpenGL 4.3 core functions
1009#define QT_OPENGL_4_3_FUNCTIONS(F) \
1010 F(void, TexStorage3DMultisample, (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations)) \
1011 F(void, TexStorage2DMultisample, (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations)) \
1012 F(void, TexBufferRange, (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size)) \
1013 F(void, ShaderStorageBlockBinding, (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding)) \
1014 F(GLint, GetProgramResourceLocationIndex, (GLuint program, GLenum programInterface, const GLchar *name)) \
1015 F(GLint, GetProgramResourceLocation, (GLuint program, GLenum programInterface, const GLchar *name)) \
1016 F(void, GetProgramResourceiv, (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params)) \
1017 F(void, GetProgramResourceName, (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name)) \
1018 F(GLuint, GetProgramResourceIndex, (GLuint program, GLenum programInterface, const GLchar *name)) \
1019 F(void, GetProgramInterfaceiv, (GLuint program, GLenum programInterface, GLenum pname, GLint *params)) \
1020 F(void, MultiDrawElementsIndirect, (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride)) \
1021 F(void, MultiDrawArraysIndirect, (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride)) \
1022 F(void, InvalidateSubFramebuffer, (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height)) \
1023 F(void, InvalidateFramebuffer, (GLenum target, GLsizei numAttachments, const GLenum *attachments)) \
1024 F(void, InvalidateBufferData, (GLuint buffer)) \
1025 F(void, InvalidateBufferSubData, (GLuint buffer, GLintptr offset, GLsizeiptr length)) \
1026 F(void, InvalidateTexImage, (GLuint texture, GLint level)) \
1027 F(void, InvalidateTexSubImage, (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth)) \
1028 F(void, GetInternalformati64v, (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params)) \
1029 F(void, GetFramebufferParameteriv, (GLenum target, GLenum pname, GLint *params)) \
1030 F(void, FramebufferParameteri, (GLenum target, GLenum pname, GLint param)) \
1031 F(void, VertexBindingDivisor, (GLuint bindingindex, GLuint divisor)) \
1032 F(void, VertexAttribBinding, (GLuint attribindex, GLuint bindingindex)) \
1033 F(void, VertexAttribLFormat, (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset)) \
1034 F(void, VertexAttribIFormat, (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset)) \
1035 F(void, VertexAttribFormat, (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset)) \
1036 F(void, BindVertexBuffer, (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride)) \
1037 F(void, TextureView, (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers)) \
1038 F(void, CopyImageSubData, (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth)) \
1039 F(void, DispatchComputeIndirect, (GLintptr indirect)) \
1040 F(void, DispatchCompute, (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z)) \
1041 F(void, ClearBufferSubData, (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data)) \
1042 F(void, ClearBufferData, (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data)) \
1043 F(void, GetObjectPtrLabel, (const GLvoid *ptr, GLsizei bufSize, GLsizei *length, GLchar *label)) \
1044 F(void, ObjectPtrLabel, (const GLvoid *ptr, GLsizei length, const GLchar *label)) \
1045 F(void, GetObjectLabel, (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label)) \
1046 F(void, ObjectLabel, (GLenum identifier, GLuint name, GLsizei length, const GLchar *label)) \
1047 F(void, PopDebugGroup, ()) \
1048 F(void, PushDebugGroup, (GLenum source, GLuint id, GLsizei length, const GLchar *message)) \
1049 F(GLuint, GetDebugMessageLog, (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog)) \
1050 F(void, DebugMessageCallback, (GLDEBUGPROC callback, const GLvoid *userParam)) \
1051 F(void, DebugMessageInsert, (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf)) \
1052 F(void, DebugMessageControl, (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled)) \
1053
1055};
1056
1058{
1059public:
1065
1066 constexpr static Version versionStatus()
1067 { return OpenGL_4_4_Core; }
1068
1069 // OpenGL 4.4 core functions
1070#define QT_OPENGL_4_4_FUNCTIONS(F) \
1071 F(void, BindVertexBuffers, (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides)) \
1072 F(void, BindImageTextures, (GLuint first, GLsizei count, const GLuint *textures)) \
1073 F(void, BindSamplers, (GLuint first, GLsizei count, const GLuint *samplers)) \
1074 F(void, BindTextures, (GLuint first, GLsizei count, const GLuint *textures)) \
1075 F(void, BindBuffersRange, (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes)) \
1076 F(void, BindBuffersBase, (GLenum target, GLuint first, GLsizei count, const GLuint *buffers)) \
1077 F(void, ClearTexSubImage, (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data)) \
1078 F(void, ClearTexImage, (GLuint texture, GLint level, GLenum format, GLenum type, const void *data)) \
1079 F(void, BufferStorage, (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags)) \
1080
1082};
1083
1085{
1086public:
1092
1093 constexpr static Version versionStatus()
1094 { return OpenGL_4_5_Core; }
1095
1096 // OpenGL 4.5 core functions
1097#define QT_OPENGL_4_5_FUNCTIONS(F) \
1098 F(void, TextureBarrier, ()) \
1099 F(void, ReadnPixels, (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data)) \
1100 F(void, GetnUniformuiv, (GLuint program, GLint location, GLsizei bufSize, GLuint *params)) \
1101 F(void, GetnUniformiv, (GLuint program, GLint location, GLsizei bufSize, GLint *params)) \
1102 F(void, GetnUniformfv, (GLuint program, GLint location, GLsizei bufSize, GLfloat *params)) \
1103 F(void, GetnUniformdv, (GLuint program, GLint location, GLsizei bufSize, GLdouble *params)) \
1104 F(void, GetnTexImage, (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels)) \
1105 F(void, GetnCompressedTexImage, (GLenum target, GLint lod, GLsizei bufSize, void *pixels)) \
1106 F(GLenum, GetGraphicsResetStatus, ()) \
1107 F(void, GetCompressedTextureSubImage, (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels)) \
1108 F(void, GetTextureSubImage, (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void *pixels)) \
1109 F(void, MemoryBarrierByRegion, (GLbitfield barriers)) \
1110 F(void, CreateQueries, (GLenum target, GLsizei n, GLuint *ids)) \
1111 F(void, CreateProgramPipelines, (GLsizei n, GLuint *pipelines)) \
1112 F(void, CreateSamplers, (GLsizei n, GLuint *samplers)) \
1113 F(void, GetVertexArrayIndexed64iv, (GLuint vaobj, GLuint index, GLenum pname, GLint64 *param)) \
1114 F(void, GetVertexArrayIndexediv, (GLuint vaobj, GLuint index, GLenum pname, GLint *param)) \
1115 F(void, GetVertexArrayiv, (GLuint vaobj, GLenum pname, GLint *param)) \
1116 F(void, VertexArrayBindingDivisor, (GLuint vaobj, GLuint bindingindex, GLuint divisor)) \
1117 F(void, VertexArrayAttribLFormat, (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset)) \
1118 F(void, VertexArrayAttribIFormat, (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset)) \
1119 F(void, VertexArrayAttribFormat, (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset)) \
1120 F(void, VertexArrayAttribBinding, (GLuint vaobj, GLuint attribindex, GLuint bindingindex)) \
1121 F(void, VertexArrayVertexBuffers, (GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides)) \
1122 F(void, VertexArrayVertexBuffer, (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride)) \
1123 F(void, VertexArrayElementBuffer, (GLuint vaobj, GLuint buffer)) \
1124 F(void, EnableVertexArrayAttrib, (GLuint vaobj, GLuint index)) \
1125 F(void, DisableVertexArrayAttrib, (GLuint vaobj, GLuint index)) \
1126 F(void, CreateVertexArrays, (GLsizei n, GLuint *arrays)) \
1127 F(void, GetTextureParameteriv, (GLuint texture, GLenum pname, GLint *params)) \
1128 F(void, GetTextureParameterIuiv, (GLuint texture, GLenum pname, GLuint *params)) \
1129 F(void, GetTextureParameterIiv, (GLuint texture, GLenum pname, GLint *params)) \
1130 F(void, GetTextureParameterfv, (GLuint texture, GLenum pname, GLfloat *params)) \
1131 F(void, GetTextureLevelParameteriv, (GLuint texture, GLint level, GLenum pname, GLint *params)) \
1132 F(void, GetTextureLevelParameterfv, (GLuint texture, GLint level, GLenum pname, GLfloat *params)) \
1133 F(void, GetCompressedTextureImage, (GLuint texture, GLint level, GLsizei bufSize, void *pixels)) \
1134 F(void, GetTextureImage, (GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels)) \
1135 F(void, BindTextureUnit, (GLuint unit, GLuint texture)) \
1136 F(void, GenerateTextureMipmap, (GLuint texture)) \
1137 F(void, TextureParameteriv, (GLuint texture, GLenum pname, const GLint *param)) \
1138 F(void, TextureParameterIuiv, (GLuint texture, GLenum pname, const GLuint *params)) \
1139 F(void, TextureParameterIiv, (GLuint texture, GLenum pname, const GLint *params)) \
1140 F(void, TextureParameteri, (GLuint texture, GLenum pname, GLint param)) \
1141 F(void, TextureParameterfv, (GLuint texture, GLenum pname, const GLfloat *param)) \
1142 F(void, TextureParameterf, (GLuint texture, GLenum pname, GLfloat param)) \
1143 F(void, CopyTextureSubImage3D, (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)) \
1144 F(void, CopyTextureSubImage2D, (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)) \
1145 F(void, CopyTextureSubImage1D, (GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)) \
1146 F(void, CompressedTextureSubImage3D, (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data)) \
1147 F(void, CompressedTextureSubImage2D, (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data)) \
1148 F(void, CompressedTextureSubImage1D, (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data)) \
1149 F(void, TextureSubImage3D, (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels)) \
1150 F(void, TextureSubImage2D, (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels)) \
1151 F(void, TextureSubImage1D, (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels)) \
1152 F(void, TextureStorage3DMultisample, (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations)) \
1153 F(void, TextureStorage2DMultisample, (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations)) \
1154 F(void, TextureStorage3D, (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth)) \
1155 F(void, TextureStorage2D, (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height)) \
1156 F(void, TextureStorage1D, (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width)) \
1157 F(void, TextureBufferRange, (GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizei size)) \
1158 F(void, TextureBuffer, (GLuint texture, GLenum internalformat, GLuint buffer)) \
1159 F(void, CreateTextures, (GLenum target, GLsizei n, GLuint *textures)) \
1160 F(void, GetNamedRenderbufferParameteriv, (GLuint renderbuffer, GLenum pname, GLint *params)) \
1161 F(void, NamedRenderbufferStorageMultisample, (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height)) \
1162 F(void, NamedRenderbufferStorage, (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height)) \
1163 F(void, CreateRenderbuffers, (GLsizei n, GLuint *renderbuffers)) \
1164 F(void, GetNamedFramebufferAttachmentParameteriv, (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params)) \
1165 F(void, GetNamedFramebufferParameteriv, (GLuint framebuffer, GLenum pname, GLint *param)) \
1166 F(GLenum, CheckNamedFramebufferStatus, (GLuint framebuffer, GLenum target)) \
1167 F(void, BlitNamedFramebuffer, (GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)) \
1168 F(void, ClearNamedFramebufferfi, (GLuint framebuffer, GLenum buffer, GLfloat depth, GLint stencil)) \
1169 F(void, ClearNamedFramebufferfv, (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value)) \
1170 F(void, ClearNamedFramebufferuiv, (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value)) \
1171 F(void, ClearNamedFramebufferiv, (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value)) \
1172 F(void, InvalidateNamedFramebufferSubData, (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height)) \
1173 F(void, InvalidateNamedFramebufferData, (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments)) \
1174 F(void, NamedFramebufferReadBuffer, (GLuint framebuffer, GLenum src)) \
1175 F(void, NamedFramebufferDrawBuffers, (GLuint framebuffer, GLsizei n, const GLenum *bufs)) \
1176 F(void, NamedFramebufferDrawBuffer, (GLuint framebuffer, GLenum buf)) \
1177 F(void, NamedFramebufferTextureLayer, (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer)) \
1178 F(void, NamedFramebufferTexture, (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level)) \
1179 F(void, NamedFramebufferParameteri, (GLuint framebuffer, GLenum pname, GLint param)) \
1180 F(void, NamedFramebufferRenderbuffer, (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)) \
1181 F(void, CreateFramebuffers, (GLsizei n, GLuint *framebuffers)) \
1182 F(void, GetNamedBufferSubData, (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data)) \
1183 F(void, GetNamedBufferPointerv, (GLuint buffer, GLenum pname, GLvoid* *params)) \
1184 F(void, GetNamedBufferParameteri64v, (GLuint buffer, GLenum pname, GLint64 *params)) \
1185 F(void, GetNamedBufferParameteriv, (GLuint buffer, GLenum pname, GLint *params)) \
1186 F(void, FlushMappedNamedBufferRange, (GLuint buffer, GLintptr offset, GLsizeiptr length)) \
1187 F(GLboolean, UnmapNamedBuffer, (GLuint buffer)) \
1188 F(GLvoid *, MapNamedBufferRange, (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access)) \
1189 F(GLvoid *, MapNamedBuffer, (GLuint buffer, GLenum access)) \
1190 F(void, ClearNamedBufferSubData, (GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data)) \
1191 F(void, ClearNamedBufferData, (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data)) \
1192 F(void, CopyNamedBufferSubData, (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size)) \
1193 F(void, NamedBufferSubData, (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data)) \
1194 F(void, NamedBufferData, (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage)) \
1195 F(void, NamedBufferStorage, (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags)) \
1196 F(void, CreateBuffers, (GLsizei n, GLuint *buffers)) \
1197 F(void, GetTransformFeedbacki64_v,(GLuint xfb, GLenum pname, GLuint index, GLint64 *param)) \
1198 F(void, GetTransformFeedbacki_v,(GLuint xfb, GLenum pname, GLuint index, GLint *param)) \
1199 F(void, GetTransformFeedbackiv, (GLuint xfb, GLenum pname, GLint *param)) \
1200 F(void, TransformFeedbackBufferRange, (GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size)) \
1201 F(void, TransformFeedbackBufferBase, (GLuint xfb, GLuint index, GLuint buffer)) \
1202 F(void, CreateTransformFeedbacks, (GLsizei n, GLuint *ids)) \
1203 F(void, ClipControl, (GLenum origin, GLenum depth)) \
1204
1206};
1207
1209{
1210public:
1216
1217 constexpr static Version versionStatus()
1218 { return OpenGL_1_0_Deprecated; }
1219
1220 // OpenGL 1.0 deprecated functions
1221#define QT_OPENGL_1_0_DEPRECATED_FUNCTIONS(F) \
1222 F(void, Translatef, (GLfloat x, GLfloat y, GLfloat z)) \
1223 F(void, Translated, (GLdouble x, GLdouble y, GLdouble z)) \
1224 F(void, Scalef, (GLfloat x, GLfloat y, GLfloat z)) \
1225 F(void, Scaled, (GLdouble x, GLdouble y, GLdouble z)) \
1226 F(void, Rotatef, (GLfloat angle, GLfloat x, GLfloat y, GLfloat z)) \
1227 F(void, Rotated, (GLdouble angle, GLdouble x, GLdouble y, GLdouble z)) \
1228 F(void, PushMatrix, ()) \
1229 F(void, PopMatrix, ()) \
1230 F(void, Ortho, (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)) \
1231 F(void, MultMatrixd, (const GLdouble *m)) \
1232 F(void, MultMatrixf, (const GLfloat *m)) \
1233 F(void, MatrixMode, (GLenum mode)) \
1234 F(void, LoadMatrixd, (const GLdouble *m)) \
1235 F(void, LoadMatrixf, (const GLfloat *m)) \
1236 F(void, LoadIdentity, ()) \
1237 F(void, Frustum, (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)) \
1238 F(GLboolean, IsList, (GLuint list)) \
1239 F(void, GetTexGeniv, (GLenum coord, GLenum pname, GLint *params)) \
1240 F(void, GetTexGenfv, (GLenum coord, GLenum pname, GLfloat *params)) \
1241 F(void, GetTexGendv, (GLenum coord, GLenum pname, GLdouble *params)) \
1242 F(void, GetTexEnviv, (GLenum target, GLenum pname, GLint *params)) \
1243 F(void, GetTexEnvfv, (GLenum target, GLenum pname, GLfloat *params)) \
1244 F(void, GetPolygonStipple, (GLubyte *mask)) \
1245 F(void, GetPixelMapusv, (GLenum map, GLushort *values)) \
1246 F(void, GetPixelMapuiv, (GLenum map, GLuint *values)) \
1247 F(void, GetPixelMapfv, (GLenum map, GLfloat *values)) \
1248 F(void, GetMaterialiv, (GLenum face, GLenum pname, GLint *params)) \
1249 F(void, GetMaterialfv, (GLenum face, GLenum pname, GLfloat *params)) \
1250 F(void, GetMapiv, (GLenum target, GLenum query, GLint *v)) \
1251 F(void, GetMapfv, (GLenum target, GLenum query, GLfloat *v)) \
1252 F(void, GetMapdv, (GLenum target, GLenum query, GLdouble *v)) \
1253 F(void, GetLightiv, (GLenum light, GLenum pname, GLint *params)) \
1254 F(void, GetLightfv, (GLenum light, GLenum pname, GLfloat *params)) \
1255 F(void, GetClipPlane, (GLenum plane, GLdouble *equation)) \
1256 F(void, DrawPixels, (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)) \
1257 F(void, CopyPixels, (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type)) \
1258 F(void, PixelMapusv, (GLenum map, GLsizei mapsize, const GLushort *values)) \
1259 F(void, PixelMapuiv, (GLenum map, GLsizei mapsize, const GLuint *values)) \
1260 F(void, PixelMapfv, (GLenum map, GLsizei mapsize, const GLfloat *values)) \
1261 F(void, PixelTransferi, (GLenum pname, GLint param)) \
1262 F(void, PixelTransferf, (GLenum pname, GLfloat param)) \
1263 F(void, PixelZoom, (GLfloat xfactor, GLfloat yfactor)) \
1264 F(void, AlphaFunc, (GLenum func, GLfloat ref)) \
1265 F(void, EvalPoint2, (GLint i, GLint j)) \
1266 F(void, EvalMesh2, (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)) \
1267 F(void, EvalPoint1, (GLint i)) \
1268 F(void, EvalMesh1, (GLenum mode, GLint i1, GLint i2)) \
1269 F(void, EvalCoord2fv, (const GLfloat *u)) \
1270 F(void, EvalCoord2f, (GLfloat u, GLfloat v)) \
1271 F(void, EvalCoord2dv, (const GLdouble *u)) \
1272 F(void, EvalCoord2d, (GLdouble u, GLdouble v)) \
1273 F(void, EvalCoord1fv, (const GLfloat *u)) \
1274 F(void, EvalCoord1f, (GLfloat u)) \
1275 F(void, EvalCoord1dv, (const GLdouble *u)) \
1276 F(void, EvalCoord1d, (GLdouble u)) \
1277 F(void, MapGrid2f, (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)) \
1278 F(void, MapGrid2d, (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)) \
1279 F(void, MapGrid1f, (GLint un, GLfloat u1, GLfloat u2)) \
1280 F(void, MapGrid1d, (GLint un, GLdouble u1, GLdouble u2)) \
1281 F(void, Map2f, (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points)) \
1282 F(void, Map2d, (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points)) \
1283 F(void, Map1f, (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points)) \
1284 F(void, Map1d, (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points)) \
1285 F(void, PushAttrib, (GLbitfield mask)) \
1286 F(void, PopAttrib, ()) \
1287 F(void, Accum, (GLenum op, GLfloat value)) \
1288 F(void, IndexMask, (GLuint mask)) \
1289 F(void, ClearIndex, (GLfloat c)) \
1290 F(void, ClearAccum, (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)) \
1291 F(void, PushName, (GLuint name)) \
1292 F(void, PopName, ()) \
1293 F(void, PassThrough, (GLfloat token)) \
1294 F(void, LoadName, (GLuint name)) \
1295 F(void, InitNames, ()) \
1296 F(GLint, RenderMode, (GLenum mode)) \
1297 F(void, SelectBuffer, (GLsizei size, GLuint *buffer)) \
1298 F(void, FeedbackBuffer, (GLsizei size, GLenum type, GLfloat *buffer)) \
1299 F(void, TexGeniv, (GLenum coord, GLenum pname, const GLint *params)) \
1300 F(void, TexGeni, (GLenum coord, GLenum pname, GLint param)) \
1301 F(void, TexGenfv, (GLenum coord, GLenum pname, const GLfloat *params)) \
1302 F(void, TexGenf, (GLenum coord, GLenum pname, GLfloat param)) \
1303 F(void, TexGendv, (GLenum coord, GLenum pname, const GLdouble *params)) \
1304 F(void, TexGend, (GLenum coord, GLenum pname, GLdouble param)) \
1305 F(void, TexEnviv, (GLenum target, GLenum pname, const GLint *params)) \
1306 F(void, TexEnvi, (GLenum target, GLenum pname, GLint param)) \
1307 F(void, TexEnvfv, (GLenum target, GLenum pname, const GLfloat *params)) \
1308 F(void, TexEnvf, (GLenum target, GLenum pname, GLfloat param)) \
1309 F(void, ShadeModel, (GLenum mode)) \
1310 F(void, PolygonStipple, (const GLubyte *mask)) \
1311 F(void, Materialiv, (GLenum face, GLenum pname, const GLint *params)) \
1312 F(void, Materiali, (GLenum face, GLenum pname, GLint param)) \
1313 F(void, Materialfv, (GLenum face, GLenum pname, const GLfloat *params)) \
1314 F(void, Materialf, (GLenum face, GLenum pname, GLfloat param)) \
1315 F(void, LineStipple, (GLint factor, GLushort pattern)) \
1316 F(void, LightModeliv, (GLenum pname, const GLint *params)) \
1317 F(void, LightModeli, (GLenum pname, GLint param)) \
1318 F(void, LightModelfv, (GLenum pname, const GLfloat *params)) \
1319 F(void, LightModelf, (GLenum pname, GLfloat param)) \
1320 F(void, Lightiv, (GLenum light, GLenum pname, const GLint *params)) \
1321 F(void, Lighti, (GLenum light, GLenum pname, GLint param)) \
1322 F(void, Lightfv, (GLenum light, GLenum pname, const GLfloat *params)) \
1323 F(void, Lightf, (GLenum light, GLenum pname, GLfloat param)) \
1324 F(void, Fogiv, (GLenum pname, const GLint *params)) \
1325 F(void, Fogi, (GLenum pname, GLint param)) \
1326 F(void, Fogfv, (GLenum pname, const GLfloat *params)) \
1327 F(void, Fogf, (GLenum pname, GLfloat param)) \
1328 F(void, ColorMaterial, (GLenum face, GLenum mode)) \
1329 F(void, ClipPlane, (GLenum plane, const GLdouble *equation)) \
1330 F(void, Vertex4sv, (const GLshort *v)) \
1331 F(void, Vertex4s, (GLshort x, GLshort y, GLshort z, GLshort w)) \
1332 F(void, Vertex4iv, (const GLint *v)) \
1333 F(void, Vertex4i, (GLint x, GLint y, GLint z, GLint w)) \
1334 F(void, Vertex4fv, (const GLfloat *v)) \
1335 F(void, Vertex4f, (GLfloat x, GLfloat y, GLfloat z, GLfloat w)) \
1336 F(void, Vertex4dv, (const GLdouble *v)) \
1337 F(void, Vertex4d, (GLdouble x, GLdouble y, GLdouble z, GLdouble w)) \
1338 F(void, Vertex3sv, (const GLshort *v)) \
1339 F(void, Vertex3s, (GLshort x, GLshort y, GLshort z)) \
1340 F(void, Vertex3iv, (const GLint *v)) \
1341 F(void, Vertex3i, (GLint x, GLint y, GLint z)) \
1342 F(void, Vertex3fv, (const GLfloat *v)) \
1343 F(void, Vertex3f, (GLfloat x, GLfloat y, GLfloat z)) \
1344 F(void, Vertex3dv, (const GLdouble *v)) \
1345 F(void, Vertex3d, (GLdouble x, GLdouble y, GLdouble z)) \
1346 F(void, Vertex2sv, (const GLshort *v)) \
1347 F(void, Vertex2s, (GLshort x, GLshort y)) \
1348 F(void, Vertex2iv, (const GLint *v)) \
1349 F(void, Vertex2i, (GLint x, GLint y)) \
1350 F(void, Vertex2fv, (const GLfloat *v)) \
1351 F(void, Vertex2f, (GLfloat x, GLfloat y)) \
1352 F(void, Vertex2dv, (const GLdouble *v)) \
1353 F(void, Vertex2d, (GLdouble x, GLdouble y)) \
1354 F(void, TexCoord4sv, (const GLshort *v)) \
1355 F(void, TexCoord4s, (GLshort s, GLshort t, GLshort r, GLshort q)) \
1356 F(void, TexCoord4iv, (const GLint *v)) \
1357 F(void, TexCoord4i, (GLint s, GLint t, GLint r, GLint q)) \
1358 F(void, TexCoord4fv, (const GLfloat *v)) \
1359 F(void, TexCoord4f, (GLfloat s, GLfloat t, GLfloat r, GLfloat q)) \
1360 F(void, TexCoord4dv, (const GLdouble *v)) \
1361 F(void, TexCoord4d, (GLdouble s, GLdouble t, GLdouble r, GLdouble q)) \
1362 F(void, TexCoord3sv, (const GLshort *v)) \
1363 F(void, TexCoord3s, (GLshort s, GLshort t, GLshort r)) \
1364 F(void, TexCoord3iv, (const GLint *v)) \
1365 F(void, TexCoord3i, (GLint s, GLint t, GLint r)) \
1366 F(void, TexCoord3fv, (const GLfloat *v)) \
1367 F(void, TexCoord3f, (GLfloat s, GLfloat t, GLfloat r)) \
1368 F(void, TexCoord3dv, (const GLdouble *v)) \
1369 F(void, TexCoord3d, (GLdouble s, GLdouble t, GLdouble r)) \
1370 F(void, TexCoord2sv, (const GLshort *v)) \
1371 F(void, TexCoord2s, (GLshort s, GLshort t)) \
1372 F(void, TexCoord2iv, (const GLint *v)) \
1373 F(void, TexCoord2i, (GLint s, GLint t)) \
1374 F(void, TexCoord2fv, (const GLfloat *v)) \
1375 F(void, TexCoord2f, (GLfloat s, GLfloat t)) \
1376 F(void, TexCoord2dv, (const GLdouble *v)) \
1377 F(void, TexCoord2d, (GLdouble s, GLdouble t)) \
1378 F(void, TexCoord1sv, (const GLshort *v)) \
1379 F(void, TexCoord1s, (GLshort s)) \
1380 F(void, TexCoord1iv, (const GLint *v)) \
1381 F(void, TexCoord1i, (GLint s)) \
1382 F(void, TexCoord1fv, (const GLfloat *v)) \
1383 F(void, TexCoord1f, (GLfloat s)) \
1384 F(void, TexCoord1dv, (const GLdouble *v)) \
1385 F(void, TexCoord1d, (GLdouble s)) \
1386 F(void, Rectsv, (const GLshort *v1, const GLshort *v2)) \
1387 F(void, Rects, (GLshort x1, GLshort y1, GLshort x2, GLshort y2)) \
1388 F(void, Rectiv, (const GLint *v1, const GLint *v2)) \
1389 F(void, Recti, (GLint x1, GLint y1, GLint x2, GLint y2)) \
1390 F(void, Rectfv, (const GLfloat *v1, const GLfloat *v2)) \
1391 F(void, Rectf, (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)) \
1392 F(void, Rectdv, (const GLdouble *v1, const GLdouble *v2)) \
1393 F(void, Rectd, (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)) \
1394 F(void, RasterPos4sv, (const GLshort *v)) \
1395 F(void, RasterPos4s, (GLshort x, GLshort y, GLshort z, GLshort w)) \
1396 F(void, RasterPos4iv, (const GLint *v)) \
1397 F(void, RasterPos4i, (GLint x, GLint y, GLint z, GLint w)) \
1398 F(void, RasterPos4fv, (const GLfloat *v)) \
1399 F(void, RasterPos4f, (GLfloat x, GLfloat y, GLfloat z, GLfloat w)) \
1400 F(void, RasterPos4dv, (const GLdouble *v)) \
1401 F(void, RasterPos4d, (GLdouble x, GLdouble y, GLdouble z, GLdouble w)) \
1402 F(void, RasterPos3sv, (const GLshort *v)) \
1403 F(void, RasterPos3s, (GLshort x, GLshort y, GLshort z)) \
1404 F(void, RasterPos3iv, (const GLint *v)) \
1405 F(void, RasterPos3i, (GLint x, GLint y, GLint z)) \
1406 F(void, RasterPos3fv, (const GLfloat *v)) \
1407 F(void, RasterPos3f, (GLfloat x, GLfloat y, GLfloat z)) \
1408 F(void, RasterPos3dv, (const GLdouble *v)) \
1409 F(void, RasterPos3d, (GLdouble x, GLdouble y, GLdouble z)) \
1410 F(void, RasterPos2sv, (const GLshort *v)) \
1411 F(void, RasterPos2s, (GLshort x, GLshort y)) \
1412 F(void, RasterPos2iv, (const GLint *v)) \
1413 F(void, RasterPos2i, (GLint x, GLint y)) \
1414 F(void, RasterPos2fv, (const GLfloat *v)) \
1415 F(void, RasterPos2f, (GLfloat x, GLfloat y)) \
1416 F(void, RasterPos2dv, (const GLdouble *v)) \
1417 F(void, RasterPos2d, (GLdouble x, GLdouble y)) \
1418 F(void, Normal3sv, (const GLshort *v)) \
1419 F(void, Normal3s, (GLshort nx, GLshort ny, GLshort nz)) \
1420 F(void, Normal3iv, (const GLint *v)) \
1421 F(void, Normal3i, (GLint nx, GLint ny, GLint nz)) \
1422 F(void, Normal3fv, (const GLfloat *v)) \
1423 F(void, Normal3f, (GLfloat nx, GLfloat ny, GLfloat nz)) \
1424 F(void, Normal3dv, (const GLdouble *v)) \
1425 F(void, Normal3d, (GLdouble nx, GLdouble ny, GLdouble nz)) \
1426 F(void, Normal3bv, (const GLbyte *v)) \
1427 F(void, Normal3b, (GLbyte nx, GLbyte ny, GLbyte nz)) \
1428 F(void, Indexsv, (const GLshort *c)) \
1429 F(void, Indexs, (GLshort c)) \
1430 F(void, Indexiv, (const GLint *c)) \
1431 F(void, Indexi, (GLint c)) \
1432 F(void, Indexfv, (const GLfloat *c)) \
1433 F(void, Indexf, (GLfloat c)) \
1434 F(void, Indexdv, (const GLdouble *c)) \
1435 F(void, Indexd, (GLdouble c)) \
1436 F(void, End, ()) \
1437 F(void, EdgeFlagv, (const GLboolean *flag)) \
1438 F(void, EdgeFlag, (GLboolean flag)) \
1439 F(void, Color4usv, (const GLushort *v)) \
1440 F(void, Color4us, (GLushort red, GLushort green, GLushort blue, GLushort alpha)) \
1441 F(void, Color4uiv, (const GLuint *v)) \
1442 F(void, Color4ui, (GLuint red, GLuint green, GLuint blue, GLuint alpha)) \
1443 F(void, Color4ubv, (const GLubyte *v)) \
1444 F(void, Color4ub, (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)) \
1445 F(void, Color4sv, (const GLshort *v)) \
1446 F(void, Color4s, (GLshort red, GLshort green, GLshort blue, GLshort alpha)) \
1447 F(void, Color4iv, (const GLint *v)) \
1448 F(void, Color4i, (GLint red, GLint green, GLint blue, GLint alpha)) \
1449 F(void, Color4fv, (const GLfloat *v)) \
1450 F(void, Color4f, (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)) \
1451 F(void, Color4dv, (const GLdouble *v)) \
1452 F(void, Color4d, (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)) \
1453 F(void, Color4bv, (const GLbyte *v)) \
1454 F(void, Color4b, (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)) \
1455 F(void, Color3usv, (const GLushort *v)) \
1456 F(void, Color3us, (GLushort red, GLushort green, GLushort blue)) \
1457 F(void, Color3uiv, (const GLuint *v)) \
1458 F(void, Color3ui, (GLuint red, GLuint green, GLuint blue)) \
1459 F(void, Color3ubv, (const GLubyte *v)) \
1460 F(void, Color3ub, (GLubyte red, GLubyte green, GLubyte blue)) \
1461 F(void, Color3sv, (const GLshort *v)) \
1462 F(void, Color3s, (GLshort red, GLshort green, GLshort blue)) \
1463 F(void, Color3iv, (const GLint *v)) \
1464 F(void, Color3i, (GLint red, GLint green, GLint blue)) \
1465 F(void, Color3fv, (const GLfloat *v)) \
1466 F(void, Color3f, (GLfloat red, GLfloat green, GLfloat blue)) \
1467 F(void, Color3dv, (const GLdouble *v)) \
1468 F(void, Color3d, (GLdouble red, GLdouble green, GLdouble blue)) \
1469 F(void, Color3bv, (const GLbyte *v)) \
1470 F(void, Color3b, (GLbyte red, GLbyte green, GLbyte blue)) \
1471 F(void, Bitmap, (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap)) \
1472 F(void, Begin, (GLenum mode)) \
1473 F(void, ListBase, (GLuint base)) \
1474 F(GLuint, GenLists, (GLsizei range)) \
1475 F(void, DeleteLists, (GLuint list, GLsizei range)) \
1476 F(void, CallLists, (GLsizei n, GLenum type, const GLvoid *lists)) \
1477 F(void, CallList, (GLuint list)) \
1478 F(void, EndList, ()) \
1479 F(void, NewList, (GLuint list, GLenum mode)) \
1480
1482};
1483
1485{
1486public:
1492
1493 constexpr static Version versionStatus()
1494 { return OpenGL_1_1_Deprecated; }
1495
1496 // OpenGL 1.1 deprecated functions
1497#define QT_OPENGL_1_1_DEPRECATED_FUNCTIONS(F) \
1498 F(void, PushClientAttrib, (GLbitfield mask)) \
1499 F(void, PopClientAttrib, ()) \
1500 F(void, PrioritizeTextures, (GLsizei n, const GLuint *textures, const GLfloat *priorities)) \
1501 F(GLboolean, AreTexturesResident, (GLsizei n, const GLuint *textures, GLboolean *residences)) \
1502 F(void, VertexPointer, (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)) \
1503 F(void, TexCoordPointer, (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)) \
1504 F(void, NormalPointer, (GLenum type, GLsizei stride, const GLvoid *pointer)) \
1505 F(void, InterleavedArrays, (GLenum format, GLsizei stride, const GLvoid *pointer)) \
1506 F(void, IndexPointer, (GLenum type, GLsizei stride, const GLvoid *pointer)) \
1507 F(void, EnableClientState, (GLenum array)) \
1508 F(void, EdgeFlagPointer, (GLsizei stride, const GLvoid *pointer)) \
1509 F(void, DisableClientState, (GLenum array)) \
1510 F(void, ColorPointer, (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)) \
1511 F(void, ArrayElement, (GLint i)) \
1512 F(void, Indexubv, (const GLubyte *c)) \
1513 F(void, Indexub, (GLubyte c)) \
1514 F(void, GetPointerv, (GLenum pname, GLvoid* *params)) \
1515
1517};
1518
1520{
1521public:
1527
1528 constexpr static Version versionStatus()
1529 { return OpenGL_1_2_Deprecated; }
1530
1531 // OpenGL 1.2 deprecated functions
1532#define QT_OPENGL_1_2_DEPRECATED_FUNCTIONS(F) \
1533 F(void, ColorTableParameterfv, (GLenum target, GLenum pname, const GLfloat *params)) \
1534 F(void, ColorTableParameteriv, (GLenum target, GLenum pname, const GLint *params)) \
1535 F(void, CopyColorTable, (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width)) \
1536 F(void, GetColorTable, (GLenum target, GLenum format, GLenum type, GLvoid *table)) \
1537 F(void, GetColorTableParameterfv, (GLenum target, GLenum pname, GLfloat *params)) \
1538 F(void, GetColorTableParameteriv, (GLenum target, GLenum pname, GLint *params)) \
1539 F(void, ColorSubTable, (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data)) \
1540 F(void, CopyColorSubTable, (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width)) \
1541 F(void, ConvolutionFilter1D, (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image)) \
1542 F(void, ConvolutionFilter2D, (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image)) \
1543 F(void, ConvolutionParameterf, (GLenum target, GLenum pname, GLfloat params)) \
1544 F(void, ConvolutionParameterfv, (GLenum target, GLenum pname, const GLfloat *params)) \
1545 F(void, ConvolutionParameteri, (GLenum target, GLenum pname, GLint params)) \
1546 F(void, ConvolutionParameteriv, (GLenum target, GLenum pname, const GLint *params)) \
1547 F(void, CopyConvolutionFilter1D, (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width)) \
1548 F(void, CopyConvolutionFilter2D, (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height)) \
1549 F(void, GetConvolutionFilter, (GLenum target, GLenum format, GLenum type, GLvoid *image)) \
1550 F(void, GetConvolutionParameterfv, (GLenum target, GLenum pname, GLfloat *params)) \
1551 F(void, GetConvolutionParameteriv, (GLenum target, GLenum pname, GLint *params)) \
1552 F(void, GetSeparableFilter, (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span)) \
1553 F(void, SeparableFilter2D, (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column)) \
1554 F(void, GetHistogram, (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values)) \
1555 F(void, GetHistogramParameterfv, (GLenum target, GLenum pname, GLfloat *params)) \
1556 F(void, GetHistogramParameteriv, (GLenum target, GLenum pname, GLint *params)) \
1557 F(void, GetMinmax, (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values)) \
1558 F(void, GetMinmaxParameterfv, (GLenum target, GLenum pname, GLfloat *params)) \
1559 F(void, GetMinmaxParameteriv, (GLenum target, GLenum pname, GLint *params)) \
1560 F(void, Histogram, (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink)) \
1561 F(void, Minmax, (GLenum target, GLenum internalformat, GLboolean sink)) \
1562 F(void, ResetHistogram, (GLenum target)) \
1563 F(void, ResetMinmax, (GLenum target)) \
1564 F(void, ColorTable, (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table)) \
1565
1567};
1568
1570{
1571public:
1577
1578 constexpr static Version versionStatus()
1579 { return OpenGL_1_3_Deprecated; }
1580
1581 // OpenGL 1.3 deprecated functions
1582#define QT_OPENGL_1_3_DEPRECATED_FUNCTIONS(F) \
1583 F(void, MultTransposeMatrixd, (const GLdouble *m)) \
1584 F(void, MultTransposeMatrixf, (const GLfloat *m)) \
1585 F(void, LoadTransposeMatrixd, (const GLdouble *m)) \
1586 F(void, LoadTransposeMatrixf, (const GLfloat *m)) \
1587 F(void, MultiTexCoord4sv, (GLenum target, const GLshort *v)) \
1588 F(void, MultiTexCoord4s, (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q)) \
1589 F(void, MultiTexCoord4iv, (GLenum target, const GLint *v)) \
1590 F(void, MultiTexCoord4i, (GLenum target, GLint s, GLint t, GLint r, GLint q)) \
1591 F(void, MultiTexCoord4fv, (GLenum target, const GLfloat *v)) \
1592 F(void, MultiTexCoord4f, (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)) \
1593 F(void, MultiTexCoord4dv, (GLenum target, const GLdouble *v)) \
1594 F(void, MultiTexCoord4d, (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q)) \
1595 F(void, MultiTexCoord3sv, (GLenum target, const GLshort *v)) \
1596 F(void, MultiTexCoord3s, (GLenum target, GLshort s, GLshort t, GLshort r)) \
1597 F(void, MultiTexCoord3iv, (GLenum target, const GLint *v)) \
1598 F(void, MultiTexCoord3i, (GLenum target, GLint s, GLint t, GLint r)) \
1599 F(void, MultiTexCoord3fv, (GLenum target, const GLfloat *v)) \
1600 F(void, MultiTexCoord3f, (GLenum target, GLfloat s, GLfloat t, GLfloat r)) \
1601 F(void, MultiTexCoord3dv, (GLenum target, const GLdouble *v)) \
1602 F(void, MultiTexCoord3d, (GLenum target, GLdouble s, GLdouble t, GLdouble r)) \
1603 F(void, MultiTexCoord2sv, (GLenum target, const GLshort *v)) \
1604 F(void, MultiTexCoord2s, (GLenum target, GLshort s, GLshort t)) \
1605 F(void, MultiTexCoord2iv, (GLenum target, const GLint *v)) \
1606 F(void, MultiTexCoord2i, (GLenum target, GLint s, GLint t)) \
1607 F(void, MultiTexCoord2fv, (GLenum target, const GLfloat *v)) \
1608 F(void, MultiTexCoord2f, (GLenum target, GLfloat s, GLfloat t)) \
1609 F(void, MultiTexCoord2dv, (GLenum target, const GLdouble *v)) \
1610 F(void, MultiTexCoord2d, (GLenum target, GLdouble s, GLdouble t)) \
1611 F(void, MultiTexCoord1sv, (GLenum target, const GLshort *v)) \
1612 F(void, MultiTexCoord1s, (GLenum target, GLshort s)) \
1613 F(void, MultiTexCoord1iv, (GLenum target, const GLint *v)) \
1614 F(void, MultiTexCoord1i, (GLenum target, GLint s)) \
1615 F(void, MultiTexCoord1fv, (GLenum target, const GLfloat *v)) \
1616 F(void, MultiTexCoord1f, (GLenum target, GLfloat s)) \
1617 F(void, MultiTexCoord1dv, (GLenum target, const GLdouble *v)) \
1618 F(void, MultiTexCoord1d, (GLenum target, GLdouble s)) \
1619 F(void, ClientActiveTexture, (GLenum texture)) \
1620
1622};
1623
1625{
1626public:
1632
1633 constexpr static Version versionStatus()
1634 { return OpenGL_1_4_Deprecated; }
1635
1636 // OpenGL 1.4 deprecated functions
1637#define QT_OPENGL_1_4_DEPRECATED_FUNCTIONS(F) \
1638 F(void, WindowPos3sv, (const GLshort *v)) \
1639 F(void, WindowPos3s, (GLshort x, GLshort y, GLshort z)) \
1640 F(void, WindowPos3iv, (const GLint *v)) \
1641 F(void, WindowPos3i, (GLint x, GLint y, GLint z)) \
1642 F(void, WindowPos3fv, (const GLfloat *v)) \
1643 F(void, WindowPos3f, (GLfloat x, GLfloat y, GLfloat z)) \
1644 F(void, WindowPos3dv, (const GLdouble *v)) \
1645 F(void, WindowPos3d, (GLdouble x, GLdouble y, GLdouble z)) \
1646 F(void, WindowPos2sv, (const GLshort *v)) \
1647 F(void, WindowPos2s, (GLshort x, GLshort y)) \
1648 F(void, WindowPos2iv, (const GLint *v)) \
1649 F(void, WindowPos2i, (GLint x, GLint y)) \
1650 F(void, WindowPos2fv, (const GLfloat *v)) \
1651 F(void, WindowPos2f, (GLfloat x, GLfloat y)) \
1652 F(void, WindowPos2dv, (const GLdouble *v)) \
1653 F(void, WindowPos2d, (GLdouble x, GLdouble y)) \
1654 F(void, SecondaryColorPointer, (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)) \
1655 F(void, SecondaryColor3usv, (const GLushort *v)) \
1656 F(void, SecondaryColor3us, (GLushort red, GLushort green, GLushort blue)) \
1657 F(void, SecondaryColor3uiv, (const GLuint *v)) \
1658 F(void, SecondaryColor3ui, (GLuint red, GLuint green, GLuint blue)) \
1659 F(void, SecondaryColor3ubv, (const GLubyte *v)) \
1660 F(void, SecondaryColor3ub, (GLubyte red, GLubyte green, GLubyte blue)) \
1661 F(void, SecondaryColor3sv, (const GLshort *v)) \
1662 F(void, SecondaryColor3s, (GLshort red, GLshort green, GLshort blue)) \
1663 F(void, SecondaryColor3iv, (const GLint *v)) \
1664 F(void, SecondaryColor3i, (GLint red, GLint green, GLint blue)) \
1665 F(void, SecondaryColor3fv, (const GLfloat *v)) \
1666 F(void, SecondaryColor3f, (GLfloat red, GLfloat green, GLfloat blue)) \
1667 F(void, SecondaryColor3dv, (const GLdouble *v)) \
1668 F(void, SecondaryColor3d, (GLdouble red, GLdouble green, GLdouble blue)) \
1669 F(void, SecondaryColor3bv, (const GLbyte *v)) \
1670 F(void, SecondaryColor3b, (GLbyte red, GLbyte green, GLbyte blue)) \
1671 F(void, FogCoordPointer, (GLenum type, GLsizei stride, const GLvoid *pointer)) \
1672 F(void, FogCoorddv, (const GLdouble *coord)) \
1673 F(void, FogCoordd, (GLdouble coord)) \
1674 F(void, FogCoordfv, (const GLfloat *coord)) \
1675 F(void, FogCoordf, (GLfloat coord)) \
1676
1678};
1679
1681{
1682public:
1688
1689 constexpr static Version versionStatus()
1690 { return OpenGL_2_0_Deprecated; }
1691
1692 // OpenGL 2.0 deprecated functions
1693#define QT_OPENGL_2_0_DEPRECATED_FUNCTIONS(F) \
1694 F(void, VertexAttrib4usv, (GLuint index, const GLushort *v)) \
1695 F(void, VertexAttrib4uiv, (GLuint index, const GLuint *v)) \
1696 F(void, VertexAttrib4ubv, (GLuint index, const GLubyte *v)) \
1697 F(void, VertexAttrib4sv, (GLuint index, const GLshort *v)) \
1698 F(void, VertexAttrib4s, (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w)) \
1699 F(void, VertexAttrib4iv, (GLuint index, const GLint *v)) \
1700 F(void, VertexAttrib4fv, (GLuint index, const GLfloat *v)) \
1701 F(void, VertexAttrib4f, (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)) \
1702 F(void, VertexAttrib4dv, (GLuint index, const GLdouble *v)) \
1703 F(void, VertexAttrib4d, (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w)) \
1704 F(void, VertexAttrib4bv, (GLuint index, const GLbyte *v)) \
1705 F(void, VertexAttrib4Nusv, (GLuint index, const GLushort *v)) \
1706 F(void, VertexAttrib4Nuiv, (GLuint index, const GLuint *v)) \
1707 F(void, VertexAttrib4Nubv, (GLuint index, const GLubyte *v)) \
1708 F(void, VertexAttrib4Nub, (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w)) \
1709 F(void, VertexAttrib4Nsv, (GLuint index, const GLshort *v)) \
1710 F(void, VertexAttrib4Niv, (GLuint index, const GLint *v)) \
1711 F(void, VertexAttrib4Nbv, (GLuint index, const GLbyte *v)) \
1712 F(void, VertexAttrib3sv, (GLuint index, const GLshort *v)) \
1713 F(void, VertexAttrib3s, (GLuint index, GLshort x, GLshort y, GLshort z)) \
1714 F(void, VertexAttrib3fv, (GLuint index, const GLfloat *v)) \
1715 F(void, VertexAttrib3f, (GLuint index, GLfloat x, GLfloat y, GLfloat z)) \
1716 F(void, VertexAttrib3dv, (GLuint index, const GLdouble *v)) \
1717 F(void, VertexAttrib3d, (GLuint index, GLdouble x, GLdouble y, GLdouble z)) \
1718 F(void, VertexAttrib2sv, (GLuint index, const GLshort *v)) \
1719 F(void, VertexAttrib2s, (GLuint index, GLshort x, GLshort y)) \
1720 F(void, VertexAttrib2fv, (GLuint index, const GLfloat *v)) \
1721 F(void, VertexAttrib2f, (GLuint index, GLfloat x, GLfloat y)) \
1722 F(void, VertexAttrib2dv, (GLuint index, const GLdouble *v)) \
1723 F(void, VertexAttrib2d, (GLuint index, GLdouble x, GLdouble y)) \
1724 F(void, VertexAttrib1sv, (GLuint index, const GLshort *v)) \
1725 F(void, VertexAttrib1s, (GLuint index, GLshort x)) \
1726 F(void, VertexAttrib1fv, (GLuint index, const GLfloat *v)) \
1727 F(void, VertexAttrib1f, (GLuint index, GLfloat x)) \
1728 F(void, VertexAttrib1dv, (GLuint index, const GLdouble *v)) \
1729 F(void, VertexAttrib1d, (GLuint index, GLdouble x)) \
1730
1732};
1733
1735{
1736public:
1742
1743 constexpr static Version versionStatus()
1744 { return OpenGL_3_0_Deprecated; }
1745
1746 // OpenGL 3.0 deprecated functions
1747#define QT_OPENGL_3_0_DEPRECATED_FUNCTIONS(F) \
1748 F(void, VertexAttribI4usv, (GLuint index, const GLushort *v)) \
1749 F(void, VertexAttribI4ubv, (GLuint index, const GLubyte *v)) \
1750 F(void, VertexAttribI4sv, (GLuint index, const GLshort *v)) \
1751 F(void, VertexAttribI4bv, (GLuint index, const GLbyte *v)) \
1752 F(void, VertexAttribI4uiv, (GLuint index, const GLuint *v)) \
1753 F(void, VertexAttribI3uiv, (GLuint index, const GLuint *v)) \
1754 F(void, VertexAttribI2uiv, (GLuint index, const GLuint *v)) \
1755 F(void, VertexAttribI1uiv, (GLuint index, const GLuint *v)) \
1756 F(void, VertexAttribI4iv, (GLuint index, const GLint *v)) \
1757 F(void, VertexAttribI3iv, (GLuint index, const GLint *v)) \
1758 F(void, VertexAttribI2iv, (GLuint index, const GLint *v)) \
1759 F(void, VertexAttribI1iv, (GLuint index, const GLint *v)) \
1760 F(void, VertexAttribI4ui, (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w)) \
1761 F(void, VertexAttribI3ui, (GLuint index, GLuint x, GLuint y, GLuint z)) \
1762 F(void, VertexAttribI2ui, (GLuint index, GLuint x, GLuint y)) \
1763 F(void, VertexAttribI1ui, (GLuint index, GLuint x)) \
1764 F(void, VertexAttribI4i, (GLuint index, GLint x, GLint y, GLint z, GLint w)) \
1765 F(void, VertexAttribI3i, (GLuint index, GLint x, GLint y, GLint z)) \
1766 F(void, VertexAttribI2i, (GLuint index, GLint x, GLint y)) \
1767 F(void, VertexAttribI1i, (GLuint index, GLint x)) \
1768
1770};
1771
1773{
1774public:
1780
1781 constexpr static Version versionStatus()
1782 { return OpenGL_3_3_Deprecated; }
1783
1784 // OpenGL 3.3 deprecated functions
1785#define QT_OPENGL_3_3_DEPRECATED_FUNCTIONS(F) \
1786 F(void, SecondaryColorP3uiv, (GLenum type, const GLuint *color)) \
1787 F(void, SecondaryColorP3ui, (GLenum type, GLuint color)) \
1788 F(void, ColorP4uiv, (GLenum type, const GLuint *color)) \
1789 F(void, ColorP4ui, (GLenum type, GLuint color)) \
1790 F(void, ColorP3uiv, (GLenum type, const GLuint *color)) \
1791 F(void, ColorP3ui, (GLenum type, GLuint color)) \
1792 F(void, NormalP3uiv, (GLenum type, const GLuint *coords)) \
1793 F(void, NormalP3ui, (GLenum type, GLuint coords)) \
1794 F(void, MultiTexCoordP4uiv, (GLenum texture, GLenum type, const GLuint *coords)) \
1795 F(void, MultiTexCoordP4ui, (GLenum texture, GLenum type, GLuint coords)) \
1796 F(void, MultiTexCoordP3uiv, (GLenum texture, GLenum type, const GLuint *coords)) \
1797 F(void, MultiTexCoordP3ui, (GLenum texture, GLenum type, GLuint coords)) \
1798 F(void, MultiTexCoordP2uiv, (GLenum texture, GLenum type, const GLuint *coords)) \
1799 F(void, MultiTexCoordP2ui, (GLenum texture, GLenum type, GLuint coords)) \
1800 F(void, MultiTexCoordP1uiv, (GLenum texture, GLenum type, const GLuint *coords)) \
1801 F(void, MultiTexCoordP1ui, (GLenum texture, GLenum type, GLuint coords)) \
1802 F(void, TexCoordP4uiv, (GLenum type, const GLuint *coords)) \
1803 F(void, TexCoordP4ui, (GLenum type, GLuint coords)) \
1804 F(void, TexCoordP3uiv, (GLenum type, const GLuint *coords)) \
1805 F(void, TexCoordP3ui, (GLenum type, GLuint coords)) \
1806 F(void, TexCoordP2uiv, (GLenum type, const GLuint *coords)) \
1807 F(void, TexCoordP2ui, (GLenum type, GLuint coords)) \
1808 F(void, TexCoordP1uiv, (GLenum type, const GLuint *coords)) \
1809 F(void, TexCoordP1ui, (GLenum type, GLuint coords)) \
1810 F(void, VertexP4uiv, (GLenum type, const GLuint *value)) \
1811 F(void, VertexP4ui, (GLenum type, GLuint value)) \
1812 F(void, VertexP3uiv, (GLenum type, const GLuint *value)) \
1813 F(void, VertexP3ui, (GLenum type, GLuint value)) \
1814 F(void, VertexP2uiv, (GLenum type, const GLuint *value)) \
1815 F(void, VertexP2ui, (GLenum type, GLuint value)) \
1816
1818};
1819
1821{
1822public:
1828
1829 constexpr static Version versionStatus()
1830 { return OpenGL_4_5_Deprecated; }
1831
1832 // OpenGL 4.5 deprecated functions
1833#define QT_OPENGL_4_5_DEPRECATED_FUNCTIONS(F) \
1834 F(void, GetnMinmax, (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, GLvoid *values)) \
1835 F(void, GetnHistogram, (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, GLvoid *values)) \
1836 F(void, GetnSeparableFilter, (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, GLvoid *row, GLsizei columnBufSize, GLvoid *column, GLvoid *span)) \
1837 F(void, GetnConvolutionFilter, (GLenum target, GLenum format, GLenum type, GLsizei bufSize, GLvoid *image)) \
1838 F(void, GetnColorTable, (GLenum target, GLenum format, GLenum type, GLsizei bufSize, GLvoid *table)) \
1839 F(void, GetnPolygonStipple, (GLsizei bufSize, GLubyte *pattern)) \
1840 F(void, GetnPixelMapusv, (GLenum map, GLsizei bufSize, GLushort *values)) \
1841 F(void, GetnPixelMapuiv, (GLenum map, GLsizei bufSize, GLuint *values)) \
1842 F(void, GetnPixelMapfv, (GLenum map, GLsizei bufSize, GLfloat *values)) \
1843 F(void, GetnMapiv, (GLenum target, GLenum query, GLsizei bufSize, GLint *v)) \
1844 F(void, GetnMapfv, (GLenum target, GLenum query, GLsizei bufSize, GLfloat *v)) \
1845 F(void, GetnMapdv, (GLenum target, GLenum query, GLsizei bufSize, GLdouble *v)) \
1846
1848};
1849
1850#else
1851
1852// No need for backend classes with function pointers with ES2.
1853// All function addresses are independent of context and display.
1854
1855#endif // !QT_CONFIG(opengles2)
1856
1857#undef QT_OPENGL_DECLARE_FUNCTIONS
1858#undef QT_OPENGL_COUNT_FUNCTIONS
1859#undef QT_OPENGL_DECLARE
1860
1861
1863
1864#ifdef Q_OS_WIN
1865#pragma pop_macro("MemoryBarrier")
1866#endif
1867
1868#endif // QT_NO_OPENGL
1869
1870#endif
static QAbstractOpenGLFunctionsPrivate * get(QAbstractOpenGLFunctions *q)
static QOpenGLVersionFunctionsBackend * functionsBackend(QOpenGLContext *context, QOpenGLVersionFunctionsBackend::Version v)
static void removeExternalFunctions(QOpenGLContext *context, QAbstractOpenGLFunctions *f)
static void insertExternalFunctions(QOpenGLContext *context, QAbstractOpenGLFunctions *f)
QAbstractOpenGLFunctionsPrivate * d_ptr
\inmodule QtCore
Definition qatomic.h:112
\inmodule QtGui
QT_OPENGL_DECLARE(QT_OPENGL_1_0_FUNCTIONS)
static constexpr Version versionStatus()
QT_OPENGL_DECLARE(QT_OPENGL_1_0_DEPRECATED_FUNCTIONS)
QT_OPENGL_DECLARE(QT_OPENGL_1_1_FUNCTIONS)
static constexpr Version versionStatus()
QT_OPENGL_DECLARE(QT_OPENGL_1_1_DEPRECATED_FUNCTIONS)
QT_OPENGL_DECLARE(QT_OPENGL_1_2_FUNCTIONS)
static constexpr Version versionStatus()
QT_OPENGL_DECLARE(QT_OPENGL_1_2_DEPRECATED_FUNCTIONS)
static constexpr Version versionStatus()
QT_OPENGL_DECLARE(QT_OPENGL_1_3_FUNCTIONS)
QT_OPENGL_DECLARE(QT_OPENGL_1_3_DEPRECATED_FUNCTIONS)
static constexpr Version versionStatus()
QT_OPENGL_DECLARE(QT_OPENGL_1_4_FUNCTIONS)
QT_OPENGL_DECLARE(QT_OPENGL_1_4_DEPRECATED_FUNCTIONS)
static constexpr Version versionStatus()
QT_OPENGL_DECLARE(QT_OPENGL_1_5_FUNCTIONS)
QT_OPENGL_DECLARE(QT_OPENGL_2_0_FUNCTIONS)
static constexpr Version versionStatus()
QT_OPENGL_DECLARE(QT_OPENGL_2_0_DEPRECATED_FUNCTIONS)
static constexpr Version versionStatus()
QT_OPENGL_DECLARE(QT_OPENGL_2_1_FUNCTIONS)
static constexpr Version versionStatus()
QT_OPENGL_DECLARE(QT_OPENGL_3_0_FUNCTIONS)
QT_OPENGL_DECLARE(QT_OPENGL_3_0_DEPRECATED_FUNCTIONS)
QT_OPENGL_DECLARE(QT_OPENGL_3_1_FUNCTIONS)
static constexpr Version versionStatus()
static constexpr Version versionStatus()
QT_OPENGL_DECLARE(QT_OPENGL_3_2_FUNCTIONS)
static constexpr Version versionStatus()
QT_OPENGL_DECLARE(QT_OPENGL_3_3_FUNCTIONS)
QT_OPENGL_DECLARE(QT_OPENGL_3_3_DEPRECATED_FUNCTIONS)
static constexpr Version versionStatus()
QT_OPENGL_DECLARE(QT_OPENGL_4_0_FUNCTIONS)
QT_OPENGL_DECLARE(QT_OPENGL_4_1_FUNCTIONS)
static constexpr Version versionStatus()
QT_OPENGL_DECLARE(QT_OPENGL_4_2_FUNCTIONS)
static constexpr Version versionStatus()
QT_OPENGL_DECLARE(QT_OPENGL_4_3_FUNCTIONS)
QT_OPENGL_DECLARE(QT_OPENGL_4_4_FUNCTIONS)
QT_OPENGL_DECLARE(QT_OPENGL_4_5_FUNCTIONS)
QT_OPENGL_DECLARE(QT_OPENGL_4_5_DEPRECATED_FUNCTIONS)
QOpenGLVersionFunctionsBackend(QOpenGLContext *ctx)
QOpenGLVersionFunctionsBackend ** backends
QOpenGLVersionFunctionsBackend * backend(QOpenGLContext *context, QOpenGLVersionFunctionsBackend::Version v)
EGLContext ctx
Combined button and popup list for selecting options.
static void * context
GLsizei const GLfloat * v
[13]
GLfloat GLfloat f
const GLubyte * c
GLdouble GLdouble GLdouble GLdouble q
Definition qopenglext.h:259
size_t qHash(const QOpenGLVersionStatus &v, size_t seed=0) noexcept
#define QT_OPENGL_1_4_DEPRECATED_FUNCTIONS(F)
#define QT_OPENGL_3_1_FUNCTIONS(F)
#define QT_OPENGL_4_4_FUNCTIONS(F)
#define QT_OPENGL_4_5_DEPRECATED_FUNCTIONS(F)
#define QT_OPENGL_3_0_FUNCTIONS(F)
#define QT_OPENGL_1_2_DEPRECATED_FUNCTIONS(F)
#define QT_OPENGL_2_0_FUNCTIONS(F)
#define QT_OPENGL_2_1_FUNCTIONS(F)
#define QT_OPENGL_1_1_DEPRECATED_FUNCTIONS(F)
#define QT_OPENGL_4_3_FUNCTIONS(F)
#define QT_OPENGL_3_0_DEPRECATED_FUNCTIONS(F)
#define QT_OPENGL_1_5_FUNCTIONS(F)
#define QT_OPENGL_1_3_FUNCTIONS(F)
#define QT_OPENGL_1_4_FUNCTIONS(F)
#define QT_OPENGL_1_2_FUNCTIONS(F)
#define QT_OPENGL_1_1_FUNCTIONS(F)
#define QT_OPENGL_1_3_DEPRECATED_FUNCTIONS(F)
#define QT_OPENGL_3_3_FUNCTIONS(F)
#define QT_OPENGL_4_5_FUNCTIONS(F)
#define QT_OPENGL_3_3_DEPRECATED_FUNCTIONS(F)
#define VERSION_ENUM(X)
#define QT_OPENGL_VERSIONS(F)
#define QT_OPENGL_2_0_DEPRECATED_FUNCTIONS(F)
#define QT_OPENGL_4_1_FUNCTIONS(F)
#define QT_OPENGL_4_2_FUNCTIONS(F)
#define QT_OPENGL_3_2_FUNCTIONS(F)
#define QT_OPENGL_4_0_FUNCTIONS(F)
#define QT_OPENGL_1_0_DEPRECATED_FUNCTIONS(F)
#define QT_OPENGL_1_0_FUNCTIONS(F)
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
Definition qrandom.cpp:196
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
QObject::connect nullptr
friend constexpr bool operator!=(const QOpenGLVersionStatus &lhs, const QOpenGLVersionStatus &rhs) noexcept
constexpr QOpenGLVersionStatus(int majorVersion, int minorVersion, QOpenGLVersionStatus::OpenGLStatus functionStatus)
friend constexpr bool operator==(const QOpenGLVersionStatus &lhs, const QOpenGLVersionStatus &rhs) noexcept