4#ifndef QOPENGLFUNCTIONS_H
5#define QOPENGLFUNCTIONS_H
7#include <QtGui/qtguiglobal.h>
13#warning qopenglfunctions.h is not compatible with GLEW, GLEW defines will be undefined
14#warning To use GLEW with Qt, do not include <qopengl.h> or <QOpenGLFunctions> after glew.h
18#include <QtGui/qopengl.h>
19#include <QtGui/qopenglcontext.h>
23#if QT_CONFIG(opengles2)
27#ifdef Q_ENABLE_OPENGL_FUNCTIONS_DEBUG
29#define Q_OPENGL_FUNCTIONS_DEBUG \
30 GLenum error = glGetError(); \
31 if (error != GL_NO_ERROR) { \
32 unsigned clamped = qMin(unsigned(error - GL_INVALID_ENUM), 4U); \
33 const char *errors[] = { "GL_INVALID_ENUM", "GL_INVALID_VALUE", "GL_INVALID_OPERATION", "Unknown" }; \
34 printf("GL error at %s:%d: %s\n", __FILE__, __LINE__, errors[clamped]); \
35 int *value = nullptr; \
39#define Q_OPENGL_FUNCTIONS_DEBUG
54#undef glCopyTexImage2D
55#undef glCopyTexSubImage2D
57#undef glDeleteTextures
73#undef glGetTexParameterfv
74#undef glGetTexParameteriv
88#undef glTexParameterfv
90#undef glTexParameteriv
96#undef glBindAttribLocation
98#undef glBindFramebuffer
99#undef glBindRenderbuffer
101#undef glBlendEquation
102#undef glBlendEquationSeparate
103#undef glBlendFuncSeparate
105#undef glBufferSubData
106#undef glCheckFramebufferStatus
108#undef glCompileShader
109#undef glCompressedTexImage2D
110#undef glCompressedTexSubImage2D
111#undef glCreateProgram
113#undef glDeleteBuffers
114#undef glDeleteFramebuffers
115#undef glDeleteProgram
116#undef glDeleteRenderbuffers
120#undef glDisableVertexAttribArray
121#undef glEnableVertexAttribArray
122#undef glFramebufferRenderbuffer
123#undef glFramebufferTexture2D
125#undef glGenerateMipmap
126#undef glGenFramebuffers
127#undef glGenRenderbuffers
128#undef glGetActiveAttrib
129#undef glGetActiveUniform
130#undef glGetAttachedShaders
131#undef glGetAttribLocation
132#undef glGetBufferParameteriv
133#undef glGetFramebufferAttachmentParameteriv
135#undef glGetProgramInfoLog
136#undef glGetRenderbufferParameteriv
138#undef glGetShaderInfoLog
139#undef glGetShaderPrecisionFormat
140#undef glGetShaderSource
143#undef glGetUniformLocation
144#undef glGetVertexAttribfv
145#undef glGetVertexAttribiv
146#undef glGetVertexAttribPointerv
148#undef glIsFramebuffer
150#undef glIsRenderbuffer
153#undef glReleaseShaderCompiler
154#undef glRenderbufferStorage
155#undef glSampleCoverage
158#undef glStencilFuncSeparate
159#undef glStencilMaskSeparate
160#undef glStencilOpSeparate
177#undef glUniformMatrix2fv
178#undef glUniformMatrix3fv
179#undef glUniformMatrix4fv
181#undef glValidateProgram
182#undef glVertexAttrib1f
183#undef glVertexAttrib1fv
184#undef glVertexAttrib2f
185#undef glVertexAttrib2fv
186#undef glVertexAttrib3f
187#undef glVertexAttrib3fv
188#undef glVertexAttrib4f
189#undef glVertexAttrib4fv
190#undef glVertexAttribPointer
192#undef glTexLevelParameteriv
210 Multitexture = 0x0001,
213 Framebuffers = 0x0008,
215 BlendEquation = 0x0020,
216 BlendEquationSeparate = 0x0040,
217 BlendFuncSeparate = 0x0080,
218 BlendSubtract = 0x0100,
219 CompressedTextures = 0x0200,
220 Multisample = 0x0400,
221 StencilSeparate = 0x0800,
222 NPOTTextures = 0x1000,
223 NPOTTextureRepeat = 0x2000,
224 FixedFunctionPipeline = 0x4000,
225 TextureRGFormats = 0x8000,
226 MultipleRenderTargets = 0x10000,
227 BlendEquationAdvanced = 0x20000,
231 QOpenGLFunctions::OpenGLFeatures openGLFeatures()
const;
234 void initializeOpenGLFunctions();
241 void glClearStencil(
GLint s);
297 void glClearDepthf(GLclampf
depth);
308 void glDepthRangef(GLclampf
zNear, GLclampf
zFar);
343 void glReleaseShaderCompiler();
389#define QT_OPENGL_DECLARE_FUNCTIONS(ret, name, args) \
390 ret (QOPENGLF_APIENTRYP name)args;
391#define QT_OPENGL_COUNT_FUNCTIONS(ret, name, args) +1
393#define QT_OPENGL_DECLARE(FUNCTIONS) \
396 FUNCTIONS(QT_OPENGL_DECLARE_FUNCTIONS) \
399 QFunctionPointer functions[FUNCTIONS(QT_OPENGL_COUNT_FUNCTIONS)]; \
403 void init(QOpenGLContext *context);
409#define QT_OPENGL_FUNCTIONS(F) \
410 F(void, BindTexture, (GLenum target, GLuint texture)) \
411 F(void, BlendFunc, (GLenum sfactor, GLenum dfactor)) \
412 F(void, Clear, (GLbitfield mask)) \
413 F(void, ClearColor, (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)) \
414 F(void, ClearDepthf, (GLclampf depth)) \
415 F(void, ClearStencil, (GLint s)) \
416 F(void, ColorMask, (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)) \
417 F(void, CopyTexImage2D, (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)) \
418 F(void, CopyTexSubImage2D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)) \
419 F(void, CullFace, (GLenum mode)) \
420 F(void, DeleteTextures, (GLsizei n, const GLuint* textures)) \
421 F(void, DepthFunc, (GLenum func)) \
422 F(void, DepthMask, (GLboolean flag)) \
423 F(void, DepthRangef, (GLclampf nearVal, GLclampf farVal)) \
424 F(void, Disable, (GLenum cap)) \
425 F(void, DrawArrays, (GLenum mode, GLint first, GLsizei count)) \
426 F(void, DrawElements, (GLenum mode, GLsizei count, GLenum type, const GLvoid* indices)) \
427 F(void, Enable, (GLenum cap)) \
428 F(void, Finish, ()) \
430 F(void, FrontFace, (GLenum mode)) \
431 F(void, GenTextures, (GLsizei n, GLuint* textures)) \
432 F(void, GetBooleanv, (GLenum pname, GLboolean* params)) \
433 F(GLenum, GetError, ()) \
434 F(void, GetFloatv, (GLenum pname, GLfloat* params)) \
435 F(void, GetIntegerv, (GLenum pname, GLint* params)) \
436 F(const GLubyte *, GetString, (GLenum name)) \
437 F(void, GetTexParameterfv, (GLenum target, GLenum pname, GLfloat* params)) \
438 F(void, GetTexParameteriv, (GLenum target, GLenum pname, GLint* params)) \
439 F(void, Hint, (GLenum target, GLenum mode)) \
440 F(GLboolean, IsEnabled, (GLenum cap)) \
441 F(GLboolean, IsTexture, (GLuint texture)) \
442 F(void, LineWidth, (GLfloat width)) \
443 F(void, PixelStorei, (GLenum pname, GLint param)) \
444 F(void, PolygonOffset, (GLfloat factor, GLfloat units)) \
445 F(void, ReadPixels, (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels)) \
446 F(void, Scissor, (GLint x, GLint y, GLsizei width, GLsizei height)) \
447 F(void, StencilFunc, (GLenum func, GLint ref, GLuint mask)) \
448 F(void, StencilMask, (GLuint mask)) \
449 F(void, StencilOp, (GLenum fail, GLenum zfail, GLenum zpass)) \
450 F(void, TexImage2D, (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels)) \
451 F(void, TexParameterf, (GLenum target, GLenum pname, GLfloat param)) \
452 F(void, TexParameterfv, (GLenum target, GLenum pname, const GLfloat* params)) \
453 F(void, TexParameteri, (GLenum target, GLenum pname, GLint param)) \
454 F(void, TexParameteriv, (GLenum target, GLenum pname, const GLint* params)) \
455 F(void, TexSubImage2D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels)) \
456 F(void, Viewport, (GLint x, GLint y, GLsizei width, GLsizei height)) \
457 F(void, ActiveTexture, (GLenum texture)) \
458 F(void, AttachShader, (GLuint program, GLuint shader)) \
459 F(void, BindAttribLocation, (GLuint program, GLuint index, const char* name)) \
460 F(void, BindBuffer, (GLenum target, GLuint buffer)) \
461 F(void, BindFramebuffer, (GLenum target, GLuint framebuffer)) \
462 F(void, BindRenderbuffer, (GLenum target, GLuint renderbuffer)) \
463 F(void, BlendColor, (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)) \
464 F(void, BlendEquation, (GLenum mode)) \
465 F(void, BlendEquationSeparate, (GLenum modeRGB, GLenum modeAlpha)) \
466 F(void, BlendFuncSeparate, (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)) \
467 F(void, BufferData, (GLenum target, qopengl_GLsizeiptr size, const void* data, GLenum usage)) \
468 F(void, BufferSubData, (GLenum target, qopengl_GLintptr offset, qopengl_GLsizeiptr size, const void* data)) \
469 F(GLenum, CheckFramebufferStatus, (GLenum target)) \
470 F(void, CompileShader, (GLuint shader)) \
471 F(void, CompressedTexImage2D, (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data)) \
472 F(void, CompressedTexSubImage2D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data)) \
473 F(GLuint, CreateProgram, ()) \
474 F(GLuint, CreateShader, (GLenum type)) \
475 F(void, DeleteBuffers, (GLsizei n, const GLuint* buffers)) \
476 F(void, DeleteFramebuffers, (GLsizei n, const GLuint* framebuffers)) \
477 F(void, DeleteProgram, (GLuint program)) \
478 F(void, DeleteRenderbuffers, (GLsizei n, const GLuint* renderbuffers)) \
479 F(void, DeleteShader, (GLuint shader)) \
480 F(void, DetachShader, (GLuint program, GLuint shader)) \
481 F(void, DisableVertexAttribArray, (GLuint index)) \
482 F(void, EnableVertexAttribArray, (GLuint index)) \
483 F(void, FramebufferRenderbuffer, (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)) \
484 F(void, FramebufferTexture2D, (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)) \
485 F(void, GenBuffers, (GLsizei n, GLuint* buffers)) \
486 F(void, GenerateMipmap, (GLenum target)) \
487 F(void, GenFramebuffers, (GLsizei n, GLuint* framebuffers)) \
488 F(void, GenRenderbuffers, (GLsizei n, GLuint* renderbuffers)) \
489 F(void, GetActiveAttrib, (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, char* name)) \
490 F(void, GetActiveUniform, (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, char* name)) \
491 F(void, GetAttachedShaders, (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders)) \
492 F(GLint, GetAttribLocation, (GLuint program, const char* name)) \
493 F(void, GetBufferParameteriv, (GLenum target, GLenum pname, GLint* params)) \
494 F(void, GetFramebufferAttachmentParameteriv, (GLenum target, GLenum attachment, GLenum pname, GLint* params)) \
495 F(void, GetProgramiv, (GLuint program, GLenum pname, GLint* params)) \
496 F(void, GetProgramInfoLog, (GLuint program, GLsizei bufsize, GLsizei* length, char* infolog)) \
497 F(void, GetRenderbufferParameteriv, (GLenum target, GLenum pname, GLint* params)) \
498 F(void, GetShaderiv, (GLuint shader, GLenum pname, GLint* params)) \
499 F(void, GetShaderInfoLog, (GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog)) \
500 F(void, GetShaderPrecisionFormat, (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision)) \
501 F(void, GetShaderSource, (GLuint shader, GLsizei bufsize, GLsizei* length, char* source)) \
502 F(void, GetUniformfv, (GLuint program, GLint location, GLfloat* params)) \
503 F(void, GetUniformiv, (GLuint program, GLint location, GLint* params)) \
504 F(GLint, GetUniformLocation, (GLuint program, const char* name)) \
505 F(void, GetVertexAttribfv, (GLuint index, GLenum pname, GLfloat* params)) \
506 F(void, GetVertexAttribiv, (GLuint index, GLenum pname, GLint* params)) \
507 F(void, GetVertexAttribPointerv, (GLuint index, GLenum pname, void** pointer)) \
508 F(GLboolean, IsBuffer, (GLuint buffer)) \
509 F(GLboolean, IsFramebuffer, (GLuint framebuffer)) \
510 F(GLboolean, IsProgram, (GLuint program)) \
511 F(GLboolean, IsRenderbuffer, (GLuint renderbuffer)) \
512 F(GLboolean, IsShader, (GLuint shader)) \
513 F(void, LinkProgram, (GLuint program)) \
514 F(void, ReleaseShaderCompiler, ()) \
515 F(void, RenderbufferStorage, (GLenum target, GLenum internalformat, GLsizei width, GLsizei height)) \
516 F(void, SampleCoverage, (GLclampf value, GLboolean invert)) \
517 F(void, ShaderBinary, (GLint n, const GLuint* shaders, GLenum binaryformat, const void* binary, GLint length)) \
518 F(void, ShaderSource, (GLuint shader, GLsizei count, const char** string, const GLint* length)) \
519 F(void, StencilFuncSeparate, (GLenum face, GLenum func, GLint ref, GLuint mask)) \
520 F(void, StencilMaskSeparate, (GLenum face, GLuint mask)) \
521 F(void, StencilOpSeparate, (GLenum face, GLenum fail, GLenum zfail, GLenum zpass)) \
522 F(void, Uniform1f, (GLint location, GLfloat x)) \
523 F(void, Uniform1fv, (GLint location, GLsizei count, const GLfloat* v)) \
524 F(void, Uniform1i, (GLint location, GLint x)) \
525 F(void, Uniform1iv, (GLint location, GLsizei count, const GLint* v)) \
526 F(void, Uniform2f, (GLint location, GLfloat x, GLfloat y)) \
527 F(void, Uniform2fv, (GLint location, GLsizei count, const GLfloat* v)) \
528 F(void, Uniform2i, (GLint location, GLint x, GLint y)) \
529 F(void, Uniform2iv, (GLint location, GLsizei count, const GLint* v)) \
530 F(void, Uniform3f, (GLint location, GLfloat x, GLfloat y, GLfloat z)) \
531 F(void, Uniform3fv, (GLint location, GLsizei count, const GLfloat* v)) \
532 F(void, Uniform3i, (GLint location, GLint x, GLint y, GLint z)) \
533 F(void, Uniform3iv, (GLint location, GLsizei count, const GLint* v)) \
534 F(void, Uniform4f, (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)) \
535 F(void, Uniform4fv, (GLint location, GLsizei count, const GLfloat* v)) \
536 F(void, Uniform4i, (GLint location, GLint x, GLint y, GLint z, GLint w)) \
537 F(void, Uniform4iv, (GLint location, GLsizei count, const GLint* v)) \
538 F(void, UniformMatrix2fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)) \
539 F(void, UniformMatrix3fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)) \
540 F(void, UniformMatrix4fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)) \
541 F(void, UseProgram, (GLuint program)) \
542 F(void, ValidateProgram, (GLuint program)) \
543 F(void, VertexAttrib1f, (GLuint indx, GLfloat x)) \
544 F(void, VertexAttrib1fv, (GLuint indx, const GLfloat* values)) \
545 F(void, VertexAttrib2f, (GLuint indx, GLfloat x, GLfloat y)) \
546 F(void, VertexAttrib2fv, (GLuint indx, const GLfloat* values)) \
547 F(void, VertexAttrib3f, (GLuint indx, GLfloat x, GLfloat y, GLfloat z)) \
548 F(void, VertexAttrib3fv, (GLuint indx, const GLfloat* values)) \
549 F(void, VertexAttrib4f, (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)) \
550 F(void, VertexAttrib4fv, (GLuint indx, const GLfloat* values)) \
551 F(void, VertexAttribPointer, (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* ptr)) \
552 F(void, ClearDepth, (GLdouble depth)) \
553 F(void, DepthRange, (GLdouble zNear, GLdouble zFar)) \
562#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
573#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
577 d_ptr->f.BlendFunc(sfactor, dfactor);
584#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
595#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
606#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
617#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
628#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
639#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
650#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
661#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
672#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
683#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
687 d_ptr->f.DepthMask(flag);
694#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
705#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
716#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
727#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
738#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
749#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
760#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
771#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
782#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
793#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
804#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
815#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
826#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
838#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
849#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
860#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
871#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
883#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
895#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
906#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
917#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
928#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
939#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
950#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
961#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
972#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
976 d_ptr->f.StencilOp(fail, zfail, zpass);
983#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
994#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1005#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1016#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1027#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1038#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1049#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1062#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1073#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1084#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1095#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1108#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1119#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1130#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1141#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1152#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1163#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1174#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1185#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1196#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1208#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1219#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1230#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1241#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1252#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1264#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1276#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1287#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1298#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1309#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1320#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1331#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1342#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1353#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1364#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1375#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1386#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1397#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1408#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1419#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1430#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1441#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1452#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1463#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1474#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1486#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1497#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1508#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1519#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1530#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1541#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1552#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1563#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1574#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1585#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1596#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1607#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1619#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1630#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1641#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1652#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1664#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1676#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1688#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1700#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1712#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1723#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1727 d_ptr->f.ReleaseShaderCompiler();
1734#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1745#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1756#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1767#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1778#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1789#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1800#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1804 d_ptr->f.StencilOpSeparate(
face, fail, zfail, zpass);
1811#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1822#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1833#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1844#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1855#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1866#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1877#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1888#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1899#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1910#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1921#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1932#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1943#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1954#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1965#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1976#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1987#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
1998#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
2009#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
2020#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
2031#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
2042#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
2046 d_ptr->f.VertexAttrib1f(indx,
x);
2053#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
2064#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
2068 d_ptr->f.VertexAttrib2f(indx,
x,
y);
2075#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
2086#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
2090 d_ptr->f.VertexAttrib3f(indx,
x,
y,
z);
2097#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
2108#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
2112 d_ptr->f.VertexAttrib4f(indx,
x,
y,
z,
w);
2119#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
2130#if QT_CONFIG(opengles2) && defined(Q_OS_ANDROID)
2139#undef QT_OPENGL_DECLARE_FUNCTIONS
2140#undef QT_OPENGL_COUNT_FUNCTIONS
2141#undef QT_OPENGL_DECLARE
GLuint defaultFramebufferObject() const
Call this to get the default framebuffer object for the current surface.
static QOpenGLContext * currentContext()
Returns the last context which called makeCurrent in the current thread, or \nullptr,...
The QOpenGLFunctions class provides cross-platform access to the OpenGL ES 2.0 API.
void glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
Convenience function that calls glBlendEquationSeparate(modeRGB, modeAlpha).
void glStencilFunc(GLenum func, GLint ref, GLuint mask)
Convenience function that calls glStencilFunc(func, ref, mask).
void glBlendFunc(GLenum sfactor, GLenum dfactor)
Convenience function that calls glBlendFunc(sfactor, dfactor).
~QOpenGLFunctions()
Destroys this function resolver.
void glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)
Convenience function that calls glGetShaderPrecisionFormat(shadertype, precisiontype,...
void glBufferData(GLenum target, qopengl_GLsizeiptr size, const void *data, GLenum usage)
Convenience function that calls glBufferData(target, size, data, usage).
void glUniform3fv(GLint location, GLsizei count, const GLfloat *v)
Convenience function that calls glUniform3fv(location, count, v).
void glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
Convenience function that calls glUniform4f(location, x, y, z, w).
OpenGLFeature
This enum defines OpenGL and OpenGL ES features whose presence may depend on the implementation.
void glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
Convenience function that calls glCopyTexSubImage2D(target, level, xoffset, yoffset,...
void glUniform1f(GLint location, GLfloat x)
Convenience function that calls glUniform1f(location, x).
void glGetProgramiv(GLuint program, GLenum pname, GLint *params)
Convenience function that calls glGetProgramiv(program, pname, params).
void glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
Convenience function that calls glBlendColor(red, green, blue, alpha).
GLboolean glIsRenderbuffer(GLuint renderbuffer)
Convenience function that calls glIsRenderbuffer(renderbuffer).
void glLineWidth(GLfloat width)
Convenience function that calls glLineWidth(width).
void glGetFloatv(GLenum pname, GLfloat *params)
Convenience function that calls glGetFloatv(pname, params).
void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
Convenience function that calls glUniformMatrix4fv(location, count, transpose, value).
void glStencilMaskSeparate(GLenum face, GLuint mask)
Convenience function that calls glStencilMaskSeparate(face, mask).
void glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params)
Convenience function that calls glGetVertexAttribiv(index, pname, params).
void glDepthRangef(GLclampf zNear, GLclampf zFar)
Convenience function that calls glDepthRange(zNear, zFar) on desktop OpenGL systems and glDepthRangef...
void glDeleteShader(GLuint shader)
Convenience function that calls glDeleteShader(shader).
GLboolean glIsFramebuffer(GLuint framebuffer)
Convenience function that calls glIsFramebuffer(framebuffer).
void glBufferSubData(GLenum target, qopengl_GLintptr offset, qopengl_GLsizeiptr size, const void *data)
Convenience function that calls glBufferSubData(target, offset, size, data).
GLint glGetAttribLocation(GLuint program, const char *name)
Convenience function that calls glGetAttribLocation(program, name).
void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
Convenience function that calls glReadPixels(x, y, width, height, format, type, pixels).
void glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
Convenience function that calls glClearColor(red, green, blue, alpha).
void glUniform3iv(GLint location, GLsizei count, const GLint *v)
Convenience function that calls glUniform3iv(location, count, v).
void glUniform1iv(GLint location, GLsizei count, const GLint *v)
Convenience function that calls glUniform1iv(location, count, v).
void glUniform1i(GLint location, GLint x)
Convenience function that calls glUniform1i(location, x).
void glAttachShader(GLuint program, GLuint shader)
Convenience function that calls glAttachShader(program, shader).
QOpenGLFunctionsPrivate * d_ptr
void glUniform1fv(GLint location, GLsizei count, const GLfloat *v)
Convenience function that calls glUniform1fv(location, count, v).
void glVertexAttrib1fv(GLuint indx, const GLfloat *values)
Convenience function that calls glVertexAttrib1fv(indx, values).
void glPixelStorei(GLenum pname, GLint param)
Convenience function that calls glPixelStorei(pname, param).
void glGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei *length, char *source)
Convenience function that calls glGetShaderSource(shader, bufsize, length, source).
void glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z)
Convenience function that calls glUniform3f(location, x, y, z).
void glVertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *ptr)
Convenience function that calls glVertexAttribPointer(indx, size, type, normalized,...
static bool isInitialized(const QOpenGLFunctionsPrivate *d)
void glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers)
Convenience function that calls glDeleteFramebuffers(n, framebuffers).
void glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
Convenience function that calls glCopyTexImage2D(target, level, internalformat, x,...
void glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
Convenience function that calls glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha).
void glFrontFace(GLenum mode)
Convenience function that calls glFrontFace(mode).
void glCullFace(GLenum mode)
Convenience function that calls glCullFace(mode).
void glGetBooleanv(GLenum pname, GLboolean *params)
Convenience function that calls glGetBooleanv(pname, params).
void glVertexAttrib2fv(GLuint indx, const GLfloat *values)
Convenience function that calls glVertexAttrib2fv(indx, values).
void glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
Convenience function that calls glViewport(x, y, width, height).
void glBindAttribLocation(GLuint program, GLuint index, const char *name)
Convenience function that calls glBindAttribLocation(program, index, name).
void glGenTextures(GLsizei n, GLuint *textures)
Convenience function that calls glGenTextures(n, textures).
void glDeleteBuffers(GLsizei n, const GLuint *buffers)
Convenience function that calls glDeleteBuffers(n, buffers).
void glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
Convenience function that calls glDrawElements(mode, count, type, indices).
void glDrawArrays(GLenum mode, GLint first, GLsizei count)
Convenience function that calls glDrawArrays(mode, first, count).
void glGetTexParameteriv(GLenum target, GLenum pname, GLint *params)
Convenience function that calls glGetTexParameteriv(target, pname, params).
void glUniform2fv(GLint location, GLsizei count, const GLfloat *v)
Convenience function that calls glUniform2fv(location, count, v).
void glFinish()
Convenience function that calls glFinish().
void glClearDepthf(GLclampf depth)
Convenience function that calls glClearDepth(depth) on desktop OpenGL systems and glClearDepthf(depth...
void glClear(GLbitfield mask)
Convenience function that calls glClear(mask).
void glLinkProgram(GLuint program)
Convenience function that calls glLinkProgram(program).
GLenum glGetError()
Convenience function that calls glGetError().
const GLubyte * glGetString(GLenum name)
Convenience function that calls glGetString(name).
void glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y)
Convenience function that calls glVertexAttrib2f(indx, x, y).
void glGetShaderiv(GLuint shader, GLenum pname, GLint *params)
Convenience function that calls glGetShaderiv(shader, pname, params).
void glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers)
Convenience function that calls glDeleteRenderbuffers(n, renderbuffers).
void glDeleteProgram(GLuint program)
Convenience function that calls glDeleteProgram(program).
void glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
Convenience function that calls glUniformMatrix2fv(location, count, transpose, value).
void glTexParameteriv(GLenum target, GLenum pname, const GLint *params)
Convenience function that calls glTexParameteriv(target, pname, params).
void glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
Convenience function that calls glTexImage2D(target, level, internalformat, width,...
GLboolean glIsBuffer(GLuint buffer)
Convenience function that calls glIsBuffer(buffer).
void glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data)
Convenience function that calls glCompressedTexSubImage2D(target, level, xoffset, yoffset,...
void glUseProgram(GLuint program)
Convenience function that calls glUseProgram(program).
void glDetachShader(GLuint program, GLuint shader)
Convenience function that calls glDetachShader(program, shader).
void glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params)
Convenience function that calls glGetRenderbufferParameteriv(target, pname, params).
void glGetActiveUniform(GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)
Convenience function that calls glGetActiveUniform(program, index, bufsize, length,...
void glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
Convenience function that calls glTexSubImage2D(target, level, xoffset, yoffset, width,...
void glUniform2i(GLint location, GLint x, GLint y)
Convenience function that calls glUniform2i(location, x, y).
void glGenRenderbuffers(GLsizei n, GLuint *renderbuffers)
Convenience function that calls glGenRenderbuffers(n, renderbuffers).
void glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params)
Convenience function that calls glGetFramebufferAttachmentParameteriv(target, attachment,...
void glBindBuffer(GLenum target, GLuint buffer)
Convenience function that calls glBindBuffer(target, buffer).
void glBindRenderbuffer(GLenum target, GLuint renderbuffer)
Convenience function that calls glBindRenderbuffer(target, renderbuffer).
void glGetProgramInfoLog(GLuint program, GLsizei bufsize, GLsizei *length, char *infolog)
Convenience function that calls glGetProgramInfoLog(program, bufsize, length, infolog).
void glFlush()
Convenience function that calls glFlush().
void glClearStencil(GLint s)
Convenience function that calls glClearStencil(s).
GLuint glCreateShader(GLenum type)
Convenience function that calls glCreateShader(type).
void glShaderSource(GLuint shader, GLsizei count, const char **string, const GLint *length)
Convenience function that calls glShaderSource(shader, count, string, length).
void glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w)
Convenience function that calls glUniform4i(location, x, y, z, w).
GLint glGetUniformLocation(GLuint program, const char *name)
Convenience function that calls glGetUniformLocation(program, name).
void glDisableVertexAttribArray(GLuint index)
Convenience function that calls glDisableVertexAttribArray(index).
void glTexParameteri(GLenum target, GLenum pname, GLint param)
Convenience function that calls glTexParameteri(target, pname, param).
void glGetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei *length, char *infolog)
Convenience function that calls glGetShaderInfoLog(shader, bufsize, length, infolog).
void glUniform4iv(GLint location, GLsizei count, const GLint *v)
Convenience function that calls glUniform4iv(location, count, v).
void glGetVertexAttribPointerv(GLuint index, GLenum pname, void **pointer)
Convenience function that calls glGetVertexAttribPointerv(index, pname, pointer).
void glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
Convenience function that calls glTexParameterfv(target, pname, params).
void glUniform2f(GLint location, GLfloat x, GLfloat y)
Convenience function that calls glUniform2f(location, x, y).
void glGetUniformfv(GLuint program, GLint location, GLfloat *params)
Convenience function that calls glGetUniformfv(program, location, params).
void glVertexAttrib4fv(GLuint indx, const GLfloat *values)
Convenience function that calls glVertexAttrib4fv(indx, values).
void glGetUniformiv(GLuint program, GLint location, GLint *params)
Convenience function that calls glGetUniformiv(program, location, params).
void glVertexAttrib1f(GLuint indx, GLfloat x)
Convenience function that calls glVertexAttrib1f(indx, x).
void glTexParameterf(GLenum target, GLenum pname, GLfloat param)
Convenience function that calls glTexParameterf(target, pname, param).
void glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params)
Convenience function that calls glGetBufferParameteriv(target, pname, params).
void glEnableVertexAttribArray(GLuint index)
Convenience function that calls glEnableVertexAttribArray(index).
void glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params)
Convenience function that calls glGetVertexAttribfv(index, pname, params).
void glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
Convenience function that calls glColorMask(red, green, blue, alpha).
void glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
Convenience function that calls glScissor(x, y, width, height).
void glBindTexture(GLenum target, GLuint texture)
Convenience function that calls glBindTexture(target, texture).
void glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
Convenience function that calls glFramebufferTexture2D(target, attachment, textarget,...
void glHint(GLenum target, GLenum mode)
Convenience function that calls glHint(target, mode).
void glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
Convenience function that calls glStencilOp(fail, zfail, zpass).
void glDeleteTextures(GLsizei n, const GLuint *textures)
Convenience function that calls glDeleteTextures(n, textures).
void glDepthMask(GLboolean flag)
Convenience function that calls glDepthMask(flag).
void glActiveTexture(GLenum texture)
Convenience function that calls glActiveTexture(texture).
void glBindFramebuffer(GLenum target, GLuint framebuffer)
Convenience function that calls glBindFramebuffer(target, framebuffer).
GLboolean glIsEnabled(GLenum cap)
Convenience function that calls glIsEnabled(cap).
GLboolean glIsShader(GLuint shader)
Convenience function that calls glIsShader(shader).
void glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
Convenience function that calls glVertexAttrib4f(indx, x, y, z, w).
void glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)
Convenience function that calls glGetActiveAttrib(program, index, bufsize, length,...
void glDisable(GLenum cap)
Convenience function that calls glDisable(cap).
void glGenBuffers(GLsizei n, GLuint *buffers)
Convenience function that calls glGenBuffers(n, buffers).
void glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
Convenience function that calls glStencilOpSeparate(face, fail, zfail, zpass).
void glUniform4fv(GLint location, GLsizei count, const GLfloat *v)
Convenience function that calls glUniform4fv(location, count, v).
GLuint glCreateProgram()
Convenience function that calls glCreateProgram().
void glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
Convenience function that calls glFramebufferRenderbuffer(target, attachment, renderbuffertarget,...
void glBlendEquation(GLenum mode)
Convenience function that calls glBlendEquation(mode).
void glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
Convenience function that calls glUniformMatrix3fv(location, count, transpose, value).
void glGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders)
Convenience function that calls glGetAttachedShaders(program, maxcount, count, shaders).
void glShaderBinary(GLint n, const GLuint *shaders, GLenum binaryformat, const void *binary, GLint length)
Convenience function that calls glShaderBinary(n, shaders, binaryformat, binary, length).
void glEnable(GLenum cap)
Convenience function that calls glEnable(cap).
void glUniform2iv(GLint location, GLsizei count, const GLint *v)
Convenience function that calls glUniform2iv(location, count, v).
void glGenFramebuffers(GLsizei n, GLuint *framebuffers)
Convenience function that calls glGenFramebuffers(n, framebuffers).
void glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
Convenience function that calls glGetTexParameterfv(target, pname, params).
void glStencilMask(GLuint mask)
Convenience function that calls glStencilMask(mask).
void glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
Convenience function that calls glStencilFuncSeparate(face, func, ref, mask).
void glGetIntegerv(GLenum pname, GLint *params)
Convenience function that calls glGetIntegerv(pname, params).
void glSampleCoverage(GLclampf value, GLboolean invert)
Convenience function that calls glSampleCoverage(value, invert).
void glDepthFunc(GLenum func)
Convenience function that calls glDepthFunc(func).
void glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
Convenience function that calls glRenderbufferStorage(target, internalformat, width,...
void glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z)
Convenience function that calls glVertexAttrib3f(indx, x, y, z).
void glVertexAttrib3fv(GLuint indx, const GLfloat *values)
Convenience function that calls glVertexAttrib3fv(indx, values).
GLenum glCheckFramebufferStatus(GLenum target)
Convenience function that calls glCheckFramebufferStatus(target).
GLboolean glIsProgram(GLuint program)
Convenience function that calls glIsProgram(program).
void glValidateProgram(GLuint program)
Convenience function that calls glValidateProgram(program).
void glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data)
Convenience function that calls glCompressedTexImage2D(target, level, internalformat,...
void glUniform3i(GLint location, GLint x, GLint y, GLint z)
Convenience function that calls glUniform3i(location, x, y, z).
void glGenerateMipmap(GLenum target)
Convenience function that calls glGenerateMipmap(target).
GLboolean glIsTexture(GLuint texture)
Convenience function that calls glIsTexture(texture).
void glPolygonOffset(GLfloat factor, GLfloat units)
Convenience function that calls glPolygonOffset(factor, units).
void glReleaseShaderCompiler()
Convenience function that calls glReleaseShaderCompiler().
void glCompileShader(GLuint shader)
Convenience function that calls glCompileShader(shader).
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
static ControlElement< T > * ptr(QWidget *widget)
QT_BEGIN_NAMESPACE typedef ptrdiff_t qopengl_GLintptr
ptrdiff_t qopengl_GLsizeiptr
GLenum GLsizei GLsizei GLint * values
[15]
GLsizei GLsizei GLenum void * binary
typedef GLint(GL_APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXEXTPROC)(GLuint program
GLdouble GLdouble GLdouble GLdouble GLdouble GLdouble zFar
GLsizei const GLfloat * v
[13]
GLdouble GLdouble GLdouble GLdouble GLdouble zNear
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat z
GLint GLint GLint GLint GLint x
[0]
GLuint const GLuint * buffers
GLint GLenum GLsizei GLsizei GLsizei depth
typedef GLfloat(GL_APIENTRYP PFNGLGETPATHLENGTHNVPROC)(GLuint path
GLenum GLuint GLint level
GLfloat GLfloat GLfloat w
[0]
GLint GLsizei GLsizei height
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLuint const GLuint GLuint const GLuint * textures
GLenum GLenum GLenum GLenum dstAlpha
GLenum GLuint GLenum GLsizei length
GLenum GLenum GLsizei count
GLint GLenum GLsizei GLsizei GLsizei GLint border
GLenum GLenum GLenum srcAlpha
const void GLsizei GLsizei stride
GLint GLint GLint yoffset
GLint GLsizei GLboolean transpose
typedef GLsizei(GL_APIENTRYP PFNGLGETFRAMEBUFFERPIXELLOCALSTORAGESIZEEXTPROC)(GLuint target)
typedef GLenum(GL_APIENTRYP PFNGLGETGRAPHICSRESETSTATUSKHRPROC)(void)
GLint GLenum internalformat
typedef GLboolean(GL_APIENTRYP PFNGLISENABLEDIOESPROC)(GLenum target
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum const GLint * param
GLenum GLuint GLintptr offset
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum const void * pixels
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
GLint GLsizei GLsizei GLenum format
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei imageSize
GLsizei GLenum const void * indices
GLsizei GLsizei GLchar * source
typedef GLbitfield(APIENTRYP PFNGLQUERYMATRIXXOESPROC)(GLfixed *mantissa
const GLuint GLenum binaryformat
const GLuint * framebuffers
GLsizei const void * pointer
GLint GLenum GLboolean normalized
GLsizei GLsizei GLuint * shaders
const GLuint * renderbuffers
GLfloat GLfloat GLfloat alpha
GLenum GLenum renderbuffertarget
GLenum GLint GLint * precision
GLsizeiptr const void GLenum usage
#define QT_OPENGL_FUNCTIONS(F)
#define QT_OPENGL_DECLARE(FUNCTIONS)
#define Q_OPENGL_FUNCTIONS_DEBUG