QOpenGLFunctions Class | Qt GUI | Qt 6.10.3
Description: The QOpenGLFunctions class provides cross-platform access to the OpenGL ES 2.0 API.

- Qt 6.10
- Qt GUI
- C++ Classes
- QOpenGLFunctions
- Qt 6.10.3 Reference Documentation

# QOpenGLFunctions Class

The QOpenGLFunctions class provides cross-platform access to the OpenGL ES 2.0 API. More...

Header: | `#include <QOpenGLFunctions>`
CMake: | `find_package(Qt6 REQUIRED COMPONENTS Gui)` `target_link_libraries(mytarget PRIVATE Qt6::Gui)`
qmake: | `QT += gui`
Inherited By: | QOpenGLExtraFunctions

- List of all members, including inherited members
- QOpenGLFunctions is part of Rendering in 3D.

## Public Types

enum | OpenGLFeature { Multitexture, Shaders, Buffers, Framebuffers, BlendColor, …, MultipleRenderTargets }
flags | OpenGLFeatures

## Public Functions

| QOpenGLFunctions()
| QOpenGLFunctions(QOpenGLContext *context)
| ~QOpenGLFunctions()
void | glActiveTexture(GLenum texture)
void | glAttachShader(GLuint program, GLuint shader)
void | glBindAttribLocation(GLuint program, GLuint index, const char *name)
void | glBindBuffer(GLenum target, GLuint buffer)
void | glBindFramebuffer(GLenum target, GLuint framebuffer)
void | glBindRenderbuffer(GLenum target, GLuint renderbuffer)
void | glBindTexture(GLenum target, GLuint texture)
void | glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
void | glBlendEquation(GLenum mode)
void | glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
void | glBlendFunc(GLenum sfactor, GLenum dfactor)
void | glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
void | glBufferData(GLenum target, qopengl_GLsizeiptr size, const void *data, GLenum usage)
void | glBufferSubData(GLenum target, qopengl_GLintptr offset, qopengl_GLsizeiptr size, const void *data)
GLenum | glCheckFramebufferStatus(GLenum target)
void | glClear(GLbitfield mask)
void | glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
void | glClearDepthf(GLclampf depth)
void | glClearStencil(GLint s)
void | glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
void | glCompileShader(GLuint shader)
void | glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data)
void | glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data)
void | glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
void | glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
GLuint | glCreateProgram()
GLuint | glCreateShader(GLenum type)
void | glCullFace(GLenum mode)
void | glDeleteBuffers(GLsizei n, const GLuint *buffers)
void | glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers)
void | glDeleteProgram(GLuint program)
void | glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers)
void | glDeleteShader(GLuint shader)
void | glDeleteTextures(GLsizei n, const GLuint *textures)
void | glDepthFunc(GLenum func)
void | glDepthMask(GLboolean flag)
void | glDepthRangef(GLclampf zNear, GLclampf zFar)
void | glDetachShader(GLuint program, GLuint shader)
void | glDisable(GLenum cap)
void | glDisableVertexAttribArray(GLuint index)
void | glDrawArrays(GLenum mode, GLint first, GLsizei count)
void | glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
void | glEnable(GLenum cap)
void | glEnableVertexAttribArray(GLuint index)
void | glFinish()
void | glFlush()
void | glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
void | glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
void | glFrontFace(GLenum mode)
void | glGenBuffers(GLsizei n, GLuint *buffers)
void | glGenFramebuffers(GLsizei n, GLuint *framebuffers)
void | glGenRenderbuffers(GLsizei n, GLuint *renderbuffers)
void | glGenTextures(GLsizei n, GLuint *textures)
void | glGenerateMipmap(GLenum target)
void | glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)
void | glGetActiveUniform(GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)
void | glGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders)
GLint | glGetAttribLocation(GLuint program, const char *name)
void | glGetBooleanv(GLenum pname, GLboolean *params)
void | glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params)
GLenum | glGetError()
void | glGetFloatv(GLenum pname, GLfloat *params)
void | glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params)
void | glGetIntegerv(GLenum pname, GLint *params)
void | glGetProgramInfoLog(GLuint program, GLsizei bufsize, GLsizei *length, char *infolog)
void | glGetProgramiv(GLuint program, GLenum pname, GLint *params)
void | glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params)
void | glGetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei *length, char *infolog)
void | glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)
void | glGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei *length, char *source)
void | glGetShaderiv(GLuint shader, GLenum pname, GLint *params)
const GLubyte * | glGetString(GLenum name)
void | glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
void | glGetTexParameteriv(GLenum target, GLenum pname, GLint *params)
GLint | glGetUniformLocation(GLuint program, const char *name)
void | glGetUniformfv(GLuint program, GLint location, GLfloat *params)
void | glGetUniformiv(GLuint program, GLint location, GLint *params)
void | glGetVertexAttribPointerv(GLuint index, GLenum pname, void **pointer)
void | glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params)
void | glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params)
void | glHint(GLenum target, GLenum mode)
GLboolean | glIsBuffer(GLuint buffer)
GLboolean | glIsEnabled(GLenum cap)
GLboolean | glIsFramebuffer(GLuint framebuffer)
GLboolean | glIsProgram(GLuint program)
GLboolean | glIsRenderbuffer(GLuint renderbuffer)
GLboolean | glIsShader(GLuint shader)
GLboolean | glIsTexture(GLuint texture)
void | glLineWidth(GLfloat width)
void | glLinkProgram(GLuint program)
void | glPixelStorei(GLenum pname, GLint param)
void | glPolygonOffset(GLfloat factor, GLfloat units)
void | glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
void | glReleaseShaderCompiler()
void | glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
void | glSampleCoverage(GLclampf value, GLboolean invert)
void | glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
void | glShaderBinary(GLint n, const GLuint *shaders, GLenum binaryformat, const void *binary, GLint length)
void | glShaderSource(GLuint shader, GLsizei count, const char **string, const GLint *length)
void | glStencilFunc(GLenum func, GLint ref, GLuint mask)
void | glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
void | glStencilMask(GLuint mask)
void | glStencilMaskSeparate(GLenum face, GLuint mask)
void | glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
void | glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
void | glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
void | glTexParameterf(GLenum target, GLenum pname, GLfloat param)
void | glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
void | glTexParameteri(GLenum target, GLenum pname, GLint param)
void | glTexParameteriv(GLenum target, GLenum pname, const GLint *params)
void | glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
void | glUniform1f(GLint location, GLfloat x)
void | glUniform1fv(GLint location, GLsizei count, const GLfloat *v)
void | glUniform1i(GLint location, GLint x)
void | glUniform1iv(GLint location, GLsizei count, const GLint *v)
void | glUniform2f(GLint location, GLfloat x, GLfloat y)
void | glUniform2fv(GLint location, GLsizei count, const GLfloat *v)
void | glUniform2i(GLint location, GLint x, GLint y)
void | glUniform2iv(GLint location, GLsizei count, const GLint *v)
void | glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z)
void | glUniform3fv(GLint location, GLsizei count, const GLfloat *v)
void | glUniform3i(GLint location, GLint x, GLint y, GLint z)
void | glUniform3iv(GLint location, GLsizei count, const GLint *v)
void | glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
void | glUniform4fv(GLint location, GLsizei count, const GLfloat *v)
void | glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w)
void | glUniform4iv(GLint location, GLsizei count, const GLint *v)
void | glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
void | glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
void | glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
void | glUseProgram(GLuint program)
void | glValidateProgram(GLuint program)
void | glVertexAttrib1f(GLuint indx, GLfloat x)
void | glVertexAttrib1fv(GLuint indx, const GLfloat *values)
void | glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y)
void | glVertexAttrib2fv(GLuint indx, const GLfloat *values)
void | glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z)
void | glVertexAttrib3fv(GLuint indx, const GLfloat *values)
void | glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
void | glVertexAttrib4fv(GLuint indx, const GLfloat *values)
void | glVertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *ptr)
void | glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
bool | hasOpenGLFeature(QOpenGLFunctions::OpenGLFeature feature) const
void | initializeOpenGLFunctions()
QOpenGLFunctions::OpenGLFeatures | openGLFeatures() const

## Detailed Description

OpenGL ES 2.0 defines a subset of the OpenGL specification that is common across many desktop and embedded OpenGL implementations. However, it can be difficult to use the functions from that subset because they need to be resolved manually on desktop systems.

QOpenGLFunctions provides a guaranteed API that is available on all OpenGL systems and takes care of function resolution on systems that need it. The recommended way to use QOpenGLFunctions is by direct inheritance:

     class MyGLWindow : public QWindow, protected QOpenGLFunctions
     {
         Q_OBJECT
     public:
         explicit MyGLWindow(QScreen *screen = nullptr);

     protected:
         void initializeGL();
         void paintGL();

         QOpenGLContext *m_context;
     };

     MyGLWindow::MyGLWindow(QScreen *screen)
       : QWindow(screen)
     {
         setSurfaceType(OpenGLSurface);
         create();

         // Create an OpenGL context
         m_context = new QOpenGLContext;
         m_context->create();

         // Setup scene and render it
         initializeGL();
         paintGL();
     };

     void MyGLWindow::initializeGL()
     {
         m_context->makeCurrent(this);
         initializeOpenGLFunctions();
     }

The `paintGL()` function can then use any of the OpenGL ES 2.0 functions without explicit resolution, such as glActiveTexture() in the following example:

     void MyGLWindow::paintGL()
     {
         m_context->makeCurrent(this);
         glActiveTexture(GL_TEXTURE1);
         glBindTexture(GL_TEXTURE_2D, textureId);
         // ...
         m_context->swapBuffers(this);
         m_context->doneCurrent();
     }

QOpenGLFunctions can also be used directly for ad-hoc invocation of OpenGL ES 2.0 functions on all platforms:

     QOpenGLFunctions glFuncs(QOpenGLContext::currentContext());
     glFuncs.glActiveTexture(GL_TEXTURE1);

An alternative approach is to query the context's associated QOpenGLFunctions instance. This is somewhat faster than the previous approach due to avoiding the creation of a new instance, but the difference is fairly small since the internal data structures are shared, and function resolving happens only once for a given context, regardless of the number of QOpenGLFunctions instances initialized for it.

     QOpenGLFunctions *glFuncs = QOpenGLContext::currentContext()->functions();
     glFuncs->glActiveTexture(GL_TEXTURE1);

QOpenGLFunctions provides wrappers for all OpenGL ES 2.0 functions, including the common subset of OpenGL 1.x and ES 2.0. While such functions, for example glClear() or glDrawArrays(), can be called also directly, as long as the application links to the platform-specific OpenGL library, calling them via QOpenGLFunctions enables the possibility of dynamically loading the OpenGL implementation.

The hasOpenGLFeature() and openGLFeatures() functions can be used to determine if the OpenGL implementation has a major OpenGL ES 2.0 feature. For example, the following checks if non power of two textures are available:

     QOpenGLFunctions funcs(QOpenGLContext::currentContext());
     bool npot = funcs.hasOpenGLFeature(QOpenGLFunctions::NPOTTextures);

See also QOpenGLContext and QSurfaceFormat.

## Member Type Documentation

### enum QOpenGLFunctions::OpenGLFeature
flags QOpenGLFunctions::OpenGLFeatures

This enum defines OpenGL and OpenGL ES features whose presence may depend on the implementation.

Constant | Value | Description
--- | --- | ---
`QOpenGLFunctions::Multitexture` | `0x0001` | glActiveTexture() function is available.
`QOpenGLFunctions::Shaders` | `0x0002` | Shader functions are available.
`QOpenGLFunctions::Buffers` | `0x0004` | Vertex and index buffer functions are available.
`QOpenGLFunctions::Framebuffers` | `0x0008` | Framebuffer object functions are available.
`QOpenGLFunctions::BlendColor` | `0x0010` | glBlendColor() is available.
`QOpenGLFunctions::BlendEquation` | `0x0020` | glBlendEquation() is available.
`QOpenGLFunctions::BlendEquationSeparate` | `0x0040` | glBlendEquationSeparate() is available.
`QOpenGLFunctions::BlendEquationAdvanced` | `0x20000` | Advanced blend equations are available.
`QOpenGLFunctions::BlendFuncSeparate` | `0x0080` | glBlendFuncSeparate() is available.
`QOpenGLFunctions::BlendSubtract` | `0x0100` | Blend subtract mode is available.
`QOpenGLFunctions::CompressedTextures` | `0x0200` | Compressed texture functions are available.
`QOpenGLFunctions::Multisample` | `0x0400` | glSampleCoverage() function is available.
`QOpenGLFunctions::StencilSeparate` | `0x0800` | Separate stencil functions are available.
`QOpenGLFunctions::NPOTTextures` | `0x1000` | Non power of two textures are available.
`QOpenGLFunctions::NPOTTextureRepeat` | `0x2000` | Non power of two textures can use GL_REPEAT as wrap parameter.
`QOpenGLFunctions::FixedFunctionPipeline` | `0x4000` | The fixed function pipeline is available.
`QOpenGLFunctions::TextureRGFormats` | `0x8000` | The GL_RED and GL_RG texture formats are available.
`QOpenGLFunctions::MultipleRenderTargets` | `0x10000` | Multiple color attachments to framebuffer objects are available.

The OpenGLFeatures type is a typedef for QFlags<OpenGLFeature>. It stores an OR combination of OpenGLFeature values.

## Member Function Documentation

### QOpenGLFunctions::QOpenGLFunctions()

Constructs a default function resolver. The resolver cannot be used until initializeOpenGLFunctions() is called to specify the context.

See also initializeOpenGLFunctions().

### `[explicit]` QOpenGLFunctions::QOpenGLFunctions(QOpenGLContext *context)

Constructs a function resolver for context. If context is `nullptr`, then the resolver will be created for the current QOpenGLContext.

The context or another context in the group must be current.

An object constructed in this way can only be used with context and other contexts that share with it. Use initializeOpenGLFunctions() to change the object's context association.

See also initializeOpenGLFunctions().

### `[noexcept]` QOpenGLFunctions::~QOpenGLFunctions()

Destroys this function resolver.

### void QOpenGLFunctions::glActiveTexture(GLenum texture)

Convenience function that calls glActiveTexture(texture).

For more information, see the OpenGL ES 3.X documentation for glActiveTexture().

### void QOpenGLFunctions::glAttachShader(GLuint program, GLuint shader)

Convenience function that calls glAttachShader(program, shader).

For more information, see the OpenGL ES 3.X documentation for glAttachShader().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glBindAttribLocation(GLuint program, GLuint index, const char *name)

Convenience function that calls glBindAttribLocation(program, index, name).

For more information, see the OpenGL ES 3.X documentation for glBindAttribLocation().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glBindBuffer(GLenum target, GLuint buffer)

Convenience function that calls glBindBuffer(target, buffer).

For more information, see the OpenGL ES 3.X documentation for glBindBuffer().

### void QOpenGLFunctions::glBindFramebuffer(GLenum target, GLuint framebuffer)

Convenience function that calls glBindFramebuffer(target, framebuffer).

Note that Qt will translate a framebuffer argument of 0 to the currently bound QOpenGLContext's defaultFramebufferObject().

For more information, see the OpenGL ES 3.X documentation for glBindFramebuffer().

### void QOpenGLFunctions::glBindRenderbuffer(GLenum target, GLuint renderbuffer)

Convenience function that calls glBindRenderbuffer(target, renderbuffer).

For more information, see the OpenGL ES 3.X documentation for glBindRenderbuffer().

### void QOpenGLFunctions::glBindTexture(GLenum target, GLuint texture)

Convenience function that calls glBindTexture(target, texture).

For more information, see the OpenGL ES 3.X documentation for glBindTexture().

### void QOpenGLFunctions::glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)

Convenience function that calls glBlendColor(red, green, blue, alpha).

For more information, see the OpenGL ES 3.X documentation for glBlendColor().

### void QOpenGLFunctions::glBlendEquation(GLenum mode)

Convenience function that calls glBlendEquation(mode).

For more information, see the OpenGL ES 3.X documentation for glBlendEquation().

### void QOpenGLFunctions::glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)

Convenience function that calls glBlendEquationSeparate(modeRGB, modeAlpha).

For more information, see the OpenGL ES 3.X documentation for glBlendEquationSeparate().

### void QOpenGLFunctions::glBlendFunc(GLenum sfactor, GLenum dfactor)

Convenience function that calls glBlendFunc(sfactor, dfactor).

For more information, see the OpenGL ES 3.X documentation for glBlendFunc().

### void QOpenGLFunctions::glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)

Convenience function that calls glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha).

For more information, see the OpenGL ES 3.X documentation for glBlendFuncSeparate().

### void QOpenGLFunctions::glBufferData(GLenum target, qopengl_GLsizeiptr size, const void *data, GLenum usage)

Convenience function that calls glBufferData(target, size, data, usage).

For more information, see the OpenGL ES 3.X documentation for glBufferData().

### void QOpenGLFunctions::glBufferSubData(GLenum target, qopengl_GLintptr offset, qopengl_GLsizeiptr size, const void *data)

Convenience function that calls glBufferSubData(target, offset, size, data).

For more information, see the OpenGL ES 3.X documentation for glBufferSubData().

### GLenum QOpenGLFunctions::glCheckFramebufferStatus(GLenum target)

Convenience function that calls glCheckFramebufferStatus(target).

For more information, see the OpenGL ES 3.X documentation for glCheckFramebufferStatus().

### void QOpenGLFunctions::glClear(GLbitfield mask)

Convenience function that calls glClear(mask).

For more information, see the OpenGL ES 3.X documentation for glClear().

### void QOpenGLFunctions::glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)

Convenience function that calls glClearColor(red, green, blue, alpha).

For more information, see the OpenGL ES 3.X documentation for glClearColor().

### void QOpenGLFunctions::glClearDepthf(GLclampf depth)

Convenience function that calls glClearDepth(depth) on desktop OpenGL systems and glClearDepthf(depth) on embedded OpenGL ES systems.

For more information, see the OpenGL ES 3.X documentation for glClearDepthf().

### void QOpenGLFunctions::glClearStencil(GLint s)

Convenience function that calls glClearStencil(s).

For more information, see the OpenGL ES 3.X documentation for glClearStencil().

### void QOpenGLFunctions::glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)

Convenience function that calls glColorMask(red, green, blue, alpha).

For more information, see the OpenGL ES 3.X documentation for glColorMask().

### void QOpenGLFunctions::glCompileShader(GLuint shader)

Convenience function that calls glCompileShader(shader).

For more information, see the OpenGL ES 3.X documentation for glCompileShader().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::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, width, height, border, imageSize, data).

For more information, see the OpenGL ES 3.X documentation for glCompressedTexImage2D().

### void QOpenGLFunctions::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, width, height, format, imageSize, data).

For more information, see the OpenGL ES 3.X documentation for glCompressedTexSubImage2D().

### void QOpenGLFunctions::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, y, width, height, border).

For more information, see the OpenGL ES 3.X documentation for glCopyTexImage2D().

### void QOpenGLFunctions::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, x, y, width, height).

For more information, see the OpenGL ES 3.X documentation for glCopyTexSubImage2D().

### GLuint QOpenGLFunctions::glCreateProgram()

Convenience function that calls glCreateProgram().

For more information, see the OpenGL ES 3.X documentation for glCreateProgram().

This convenience function will do nothing on OpenGL ES 1.x systems.

### GLuint QOpenGLFunctions::glCreateShader(GLenum type)

Convenience function that calls glCreateShader(type).

For more information, see the OpenGL ES 3.X documentation for glCreateShader().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glCullFace(GLenum mode)

Convenience function that calls glCullFace(mode).

For more information, see the OpenGL ES 3.X documentation for glCullFace().

### void QOpenGLFunctions::glDeleteBuffers(GLsizei n, const GLuint *buffers)

Convenience function that calls glDeleteBuffers(n, buffers).

For more information, see the OpenGL ES 3.X documentation for glDeleteBuffers().

### void QOpenGLFunctions::glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers)

Convenience function that calls glDeleteFramebuffers(n, framebuffers).

For more information, see the OpenGL ES 3.X documentation for glDeleteFramebuffers().

### void QOpenGLFunctions::glDeleteProgram(GLuint program)

Convenience function that calls glDeleteProgram(program).

For more information, see the OpenGL ES 3.X documentation for glDeleteProgram().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers)

Convenience function that calls glDeleteRenderbuffers(n, renderbuffers).

For more information, see the OpenGL ES 3.X documentation for glDeleteRenderbuffers().

### void QOpenGLFunctions::glDeleteShader(GLuint shader)

Convenience function that calls glDeleteShader(shader).

For more information, see the OpenGL ES 3.X documentation for glDeleteShader().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glDeleteTextures(GLsizei n, const GLuint *textures)

Convenience function that calls glDeleteTextures(n, textures).

For more information, see the OpenGL ES 3.X documentation for glDeleteTextures().

### void QOpenGLFunctions::glDepthFunc(GLenum func)

Convenience function that calls glDepthFunc(func).

For more information, see the OpenGL ES 3.X documentation for glDepthFunc().

### void QOpenGLFunctions::glDepthMask(GLboolean flag)

Convenience function that calls glDepthMask(flag).

For more information, see the OpenGL ES 3.X documentation for glDepthMask().

### void QOpenGLFunctions::glDepthRangef(GLclampf zNear, GLclampf zFar)

Convenience function that calls glDepthRange(zNear, zFar) on desktop OpenGL systems and glDepthRangef(zNear, zFar) on embedded OpenGL ES systems.

For more information, see the OpenGL ES 3.X documentation for glDepthRangef().

### void QOpenGLFunctions::glDetachShader(GLuint program, GLuint shader)

Convenience function that calls glDetachShader(program, shader).

For more information, see the OpenGL ES 3.X documentation for glDetachShader().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glDisable(GLenum cap)

Convenience function that calls glDisable(cap).

For more information, see the OpenGL ES 3.X documentation for glDisable().

### void QOpenGLFunctions::glDisableVertexAttribArray(GLuint index)

Convenience function that calls glDisableVertexAttribArray(index).

For more information, see the OpenGL ES 3.X documentation for glDisableVertexAttribArray().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glDrawArrays(GLenum mode, GLint first, GLsizei count)

Convenience function that calls glDrawArrays(mode, first, count).

For more information, see the OpenGL ES 3.X documentation for glDrawArrays().

### void QOpenGLFunctions::glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)

Convenience function that calls glDrawElements(mode, count, type, indices).

For more information, see the OpenGL ES 3.X documentation for glDrawElements().

### void QOpenGLFunctions::glEnable(GLenum cap)

Convenience function that calls glEnable(cap).

For more information, see the OpenGL ES 3.X documentation for glEnable().

### void QOpenGLFunctions::glEnableVertexAttribArray(GLuint index)

Convenience function that calls glEnableVertexAttribArray(index).

For more information, see the OpenGL ES 3.X documentation for glEnableVertexAttribArray().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glFinish()

Convenience function that calls glFinish().

For more information, see the OpenGL ES 3.X documentation for glFinish().

### void QOpenGLFunctions::glFlush()

Convenience function that calls glFlush().

For more information, see the OpenGL ES 3.X documentation for glFlush().

### void QOpenGLFunctions::glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)

Convenience function that calls glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer).

For more information, see the OpenGL ES 3.X documentation for glFramebufferRenderbuffer().

### void QOpenGLFunctions::glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)

Convenience function that calls glFramebufferTexture2D(target, attachment, textarget, texture, level).

For more information, see the OpenGL ES 3.X documentation for glFramebufferTexture2D().

### void QOpenGLFunctions::glFrontFace(GLenum mode)

Convenience function that calls glFrontFace(mode).

For more information, see the OpenGL ES 3.X documentation for glFrontFace().

### void QOpenGLFunctions::glGenBuffers(GLsizei n, GLuint *buffers)

Convenience function that calls glGenBuffers(n, buffers).

For more information, see the OpenGL ES 3.X documentation for glGenBuffers().

### void QOpenGLFunctions::glGenFramebuffers(GLsizei n, GLuint *framebuffers)

Convenience function that calls glGenFramebuffers(n, framebuffers).

For more information, see the OpenGL ES 3.X documentation for glGenFramebuffers().

### void QOpenGLFunctions::glGenRenderbuffers(GLsizei n, GLuint *renderbuffers)

Convenience function that calls glGenRenderbuffers(n, renderbuffers).

For more information, see the OpenGL ES 3.X documentation for glGenRenderbuffers().

### void QOpenGLFunctions::glGenTextures(GLsizei n, GLuint *textures)

Convenience function that calls glGenTextures(n, textures).

For more information, see the OpenGL ES 3.X documentation for glGenTextures().

### void QOpenGLFunctions::glGenerateMipmap(GLenum target)

Convenience function that calls glGenerateMipmap(target).

For more information, see the OpenGL ES 3.X documentation for glGenerateMipmap().

### void QOpenGLFunctions::glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)

Convenience function that calls glGetActiveAttrib(program, index, bufsize, length, size, type, name).

For more information, see the OpenGL ES 3.X documentation for glGetActiveAttrib().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glGetActiveUniform(GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)

Convenience function that calls glGetActiveUniform(program, index, bufsize, length, size, type, name).

For more information, see the OpenGL ES 3.X documentation for glGetActiveUniform().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders)

Convenience function that calls glGetAttachedShaders(program, maxcount, count, shaders).

For more information, see the OpenGL ES 3.X documentation for glGetAttachedShaders().

This convenience function will do nothing on OpenGL ES 1.x systems.

### GLint QOpenGLFunctions::glGetAttribLocation(GLuint program, const char *name)

Convenience function that calls glGetAttribLocation(program, name).

For more information, see the OpenGL ES 3.X documentation for glGetAttribLocation().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glGetBooleanv(GLenum pname, GLboolean *params)

Convenience function that calls glGetBooleanv(pname, params).

For more information, see the OpenGL ES 3.X documentation for glGetBooleanv().

### void QOpenGLFunctions::glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params)

Convenience function that calls glGetBufferParameteriv(target, pname, params).

For more information, see the OpenGL ES 3.X documentation for glGetBufferParameteriv().

### GLenum QOpenGLFunctions::glGetError()

Convenience function that calls glGetError().

For more information, see the OpenGL ES 3.X documentation for glGetError().

### void QOpenGLFunctions::glGetFloatv(GLenum pname, GLfloat *params)

Convenience function that calls glGetFloatv(pname, params).

For more information, see the OpenGL ES 3.X documentation for glGetFloatv().

### void QOpenGLFunctions::glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params)

Convenience function that calls glGetFramebufferAttachmentParameteriv(target, attachment, pname, params).

For more information, see the OpenGL ES 3.X documentation for glGetFramebufferAttachmentParameteriv().

### void QOpenGLFunctions::glGetIntegerv(GLenum pname, GLint *params)

Convenience function that calls glGetIntegerv(pname, params).

For more information, see the OpenGL ES 3.X documentation for glGetIntegerv().

### void QOpenGLFunctions::glGetProgramInfoLog(GLuint program, GLsizei bufsize, GLsizei *length, char *infolog)

Convenience function that calls glGetProgramInfoLog(program, bufsize, length, infolog).

For more information, see the OpenGL ES 3.X documentation for glGetProgramInfoLog().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glGetProgramiv(GLuint program, GLenum pname, GLint *params)

Convenience function that calls glGetProgramiv(program, pname, params).

For more information, see the OpenGL ES 3.X documentation for glGetProgramiv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params)

Convenience function that calls glGetRenderbufferParameteriv(target, pname, params).

For more information, see the OpenGL ES 3.X documentation for glGetRenderbufferParameteriv().

### void QOpenGLFunctions::glGetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei *length, char *infolog)

Convenience function that calls glGetShaderInfoLog(shader, bufsize, length, infolog).

For more information, see the OpenGL ES 3.X documentation for glGetShaderInfoLog().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)

Convenience function that calls glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision).

For more information, see the OpenGL ES 3.X documentation for glGetShaderPrecisionFormat().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei *length, char *source)

Convenience function that calls glGetShaderSource(shader, bufsize, length, source).

For more information, see the OpenGL ES 3.X documentation for glGetShaderSource().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glGetShaderiv(GLuint shader, GLenum pname, GLint *params)

Convenience function that calls glGetShaderiv(shader, pname, params).

For more information, see the OpenGL ES 3.X documentation for glGetShaderiv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### const GLubyte *QOpenGLFunctions::glGetString(GLenum name)

Convenience function that calls glGetString(name).

For more information, see the OpenGL ES 3.X documentation for glGetString().

### void QOpenGLFunctions::glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)

Convenience function that calls glGetTexParameterfv(target, pname, params).

For more information, see the OpenGL ES 3.X documentation for glGetTexParameterfv().

### void QOpenGLFunctions::glGetTexParameteriv(GLenum target, GLenum pname, GLint *params)

Convenience function that calls glGetTexParameteriv(target, pname, params).

For more information, see the OpenGL ES 3.X documentation for glGetTexParameteriv().

### GLint QOpenGLFunctions::glGetUniformLocation(GLuint program, const char *name)

Convenience function that calls glGetUniformLocation(program, name).

For more information, see the OpenGL ES 3.X documentation for glGetUniformLocation().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glGetUniformfv(GLuint program, GLint location, GLfloat *params)

Convenience function that calls glGetUniformfv(program, location, params).

For more information, see the OpenGL ES 3.X documentation for glGetUniformfv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glGetUniformiv(GLuint program, GLint location, GLint *params)

Convenience function that calls glGetUniformiv(program, location, params).

For more information, see the OpenGL ES 3.X documentation for glGetUniformiv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glGetVertexAttribPointerv(GLuint index, GLenum pname, void **pointer)

Convenience function that calls glGetVertexAttribPointerv(index, pname, pointer).

For more information, see the OpenGL ES 3.X documentation for glGetVertexAttribPointerv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params)

Convenience function that calls glGetVertexAttribfv(index, pname, params).

For more information, see the OpenGL ES 3.X documentation for glGetVertexAttribfv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params)

Convenience function that calls glGetVertexAttribiv(index, pname, params).

For more information, see the OpenGL ES 3.X documentation for glGetVertexAttribiv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glHint(GLenum target, GLenum mode)

Convenience function that calls glHint(target, mode).

For more information, see the OpenGL ES 3.X documentation for glHint().

### GLboolean QOpenGLFunctions::glIsBuffer(GLuint buffer)

Convenience function that calls glIsBuffer(buffer).

For more information, see the OpenGL ES 3.X documentation for glIsBuffer().

### GLboolean QOpenGLFunctions::glIsEnabled(GLenum cap)

Convenience function that calls glIsEnabled(cap).

For more information, see the OpenGL ES 3.X documentation for glIsEnabled().

### GLboolean QOpenGLFunctions::glIsFramebuffer(GLuint framebuffer)

Convenience function that calls glIsFramebuffer(framebuffer).

For more information, see the OpenGL ES 3.X documentation for glIsFramebuffer().

### GLboolean QOpenGLFunctions::glIsProgram(GLuint program)

Convenience function that calls glIsProgram(program).

For more information, see the OpenGL ES 3.X documentation for glIsProgram().

This convenience function will do nothing on OpenGL ES 1.x systems.

### GLboolean QOpenGLFunctions::glIsRenderbuffer(GLuint renderbuffer)

Convenience function that calls glIsRenderbuffer(renderbuffer).

For more information, see the OpenGL ES 3.X documentation for glIsRenderbuffer().

### GLboolean QOpenGLFunctions::glIsShader(GLuint shader)

Convenience function that calls glIsShader(shader).

For more information, see the OpenGL ES 3.X documentation for glIsShader().

This convenience function will do nothing on OpenGL ES 1.x systems.

### GLboolean QOpenGLFunctions::glIsTexture(GLuint texture)

Convenience function that calls glIsTexture(texture).

For more information, see the OpenGL ES 3.X documentation for glIsTexture().

### void QOpenGLFunctions::glLineWidth(GLfloat width)

Convenience function that calls glLineWidth(width).

For more information, see the OpenGL ES 3.X documentation for glLineWidth().

### void QOpenGLFunctions::glLinkProgram(GLuint program)

Convenience function that calls glLinkProgram(program).

For more information, see the OpenGL ES 3.X documentation for glLinkProgram().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glPixelStorei(GLenum pname, GLint param)

Convenience function that calls glPixelStorei(pname, param).

For more information, see the OpenGL ES 3.X documentation for glPixelStorei().

### void QOpenGLFunctions::glPolygonOffset(GLfloat factor, GLfloat units)

Convenience function that calls glPolygonOffset(factor, units).

For more information, see the OpenGL ES 3.X documentation for glPolygonOffset().

### void QOpenGLFunctions::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).

For more information, see the OpenGL ES 3.X documentation for glReadPixels().

### void QOpenGLFunctions::glReleaseShaderCompiler()

Convenience function that calls glReleaseShaderCompiler().

For more information, see the OpenGL ES 3.X documentation for glReleaseShaderCompiler().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)

Convenience function that calls glRenderbufferStorage(target, internalformat, width, height).

For more information, see the OpenGL ES 3.X documentation for glRenderbufferStorage().

### void QOpenGLFunctions::glSampleCoverage(GLclampf value, GLboolean invert)

Convenience function that calls glSampleCoverage(value, invert).

For more information, see the OpenGL ES 3.X documentation for glSampleCoverage().

### void QOpenGLFunctions::glScissor(GLint x, GLint y, GLsizei width, GLsizei height)

Convenience function that calls glScissor(x, y, width, height).

For more information, see the OpenGL ES 3.X documentation for glScissor().

### void QOpenGLFunctions::glShaderBinary(GLint n, const GLuint *shaders, GLenum binaryformat, const void *binary, GLint length)

Convenience function that calls glShaderBinary(n, shaders, binaryformat, binary, length).

For more information, see the OpenGL ES 3.X documentation for glShaderBinary().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glShaderSource(GLuint shader, GLsizei count, const char **string, const GLint *length)

Convenience function that calls glShaderSource(shader, count, string, length).

For more information, see the OpenGL ES 3.X documentation for glShaderSource().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glStencilFunc(GLenum func, GLint ref, GLuint mask)

Convenience function that calls glStencilFunc(func, ref, mask).

For more information, see the OpenGL ES 3.X documentation for glStencilFunc().

### void QOpenGLFunctions::glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)

Convenience function that calls glStencilFuncSeparate(face, func, ref, mask).

For more information, see the OpenGL ES 3.X documentation for glStencilFuncSeparate().

### void QOpenGLFunctions::glStencilMask(GLuint mask)

Convenience function that calls glStencilMask(mask).

For more information, see the OpenGL ES 3.X documentation for glStencilMask().

### void QOpenGLFunctions::glStencilMaskSeparate(GLenum face, GLuint mask)

Convenience function that calls glStencilMaskSeparate(face, mask).

For more information, see the OpenGL ES 3.X documentation for glStencilMaskSeparate().

### void QOpenGLFunctions::glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)

Convenience function that calls glStencilOp(fail, zfail, zpass).

For more information, see the OpenGL ES 3.X documentation for glStencilOp().

### void QOpenGLFunctions::glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)

Convenience function that calls glStencilOpSeparate(face, fail, zfail, zpass).

For more information, see the OpenGL ES 3.X documentation for glStencilOpSeparate().

### void QOpenGLFunctions::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, height, border, format, type, pixels).

For more information, see the OpenGL ES 3.X documentation for glTexImage2D().

### void QOpenGLFunctions::glTexParameterf(GLenum target, GLenum pname, GLfloat param)

Convenience function that calls glTexParameterf(target, pname, param).

For more information, see the OpenGL ES 3.X documentation for glTexParameterf().

### void QOpenGLFunctions::glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params)

Convenience function that calls glTexParameterfv(target, pname, params).

For more information, see the OpenGL ES 3.X documentation for glTexParameterfv().

### void QOpenGLFunctions::glTexParameteri(GLenum target, GLenum pname, GLint param)

Convenience function that calls glTexParameteri(target, pname, param).

For more information, see the OpenGL ES 3.X documentation for glTexParameteri().

### void QOpenGLFunctions::glTexParameteriv(GLenum target, GLenum pname, const GLint *params)

Convenience function that calls glTexParameteriv(target, pname, params).

For more information, see the OpenGL ES 3.X documentation for glTexParameteriv().

### void QOpenGLFunctions::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, height, format, type, pixels).

For more information, see the OpenGL ES 3.X documentation for glTexSubImage2D().

### void QOpenGLFunctions::glUniform1f(GLint location, GLfloat x)

Convenience function that calls glUniform1f(location, x).

For more information, see the OpenGL ES 3.X documentation for glUniform1f().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glUniform1fv(GLint location, GLsizei count, const GLfloat *v)

Convenience function that calls glUniform1fv(location, count, v).

For more information, see the OpenGL ES 3.X documentation for glUniform1fv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glUniform1i(GLint location, GLint x)

Convenience function that calls glUniform1i(location, x).

For more information, see the OpenGL ES 3.X documentation for glUniform1i().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glUniform1iv(GLint location, GLsizei count, const GLint *v)

Convenience function that calls glUniform1iv(location, count, v).

For more information, see the OpenGL ES 3.X documentation for glUniform1iv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glUniform2f(GLint location, GLfloat x, GLfloat y)

Convenience function that calls glUniform2f(location, x, y).

For more information, see the OpenGL ES 3.X documentation for glUniform2f().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glUniform2fv(GLint location, GLsizei count, const GLfloat *v)

Convenience function that calls glUniform2fv(location, count, v).

For more information, see the OpenGL ES 3.X documentation for glUniform2fv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glUniform2i(GLint location, GLint x, GLint y)

Convenience function that calls glUniform2i(location, x, y).

For more information, see the OpenGL ES 3.X documentation for glUniform2i().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glUniform2iv(GLint location, GLsizei count, const GLint *v)

Convenience function that calls glUniform2iv(location, count, v).

For more information, see the OpenGL ES 3.X documentation for glUniform2iv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z)

Convenience function that calls glUniform3f(location, x, y, z).

For more information, see the OpenGL ES 3.X documentation for glUniform3f().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glUniform3fv(GLint location, GLsizei count, const GLfloat *v)

Convenience function that calls glUniform3fv(location, count, v).

For more information, see the OpenGL ES 3.X documentation for glUniform3fv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glUniform3i(GLint location, GLint x, GLint y, GLint z)

Convenience function that calls glUniform3i(location, x, y, z).

For more information, see the OpenGL ES 3.X documentation for glUniform3i().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glUniform3iv(GLint location, GLsizei count, const GLint *v)

Convenience function that calls glUniform3iv(location, count, v).

For more information, see the OpenGL ES 3.X documentation for glUniform3iv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)

Convenience function that calls glUniform4f(location, x, y, z, w).

For more information, see the OpenGL ES 3.X documentation for glUniform4f().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glUniform4fv(GLint location, GLsizei count, const GLfloat *v)

Convenience function that calls glUniform4fv(location, count, v).

For more information, see the OpenGL ES 3.X documentation for glUniform4fv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w)

Convenience function that calls glUniform4i(location, x, y, z, w).

For more information, see the OpenGL ES 3.X documentation for glUniform4i().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glUniform4iv(GLint location, GLsizei count, const GLint *v)

Convenience function that calls glUniform4iv(location, count, v).

For more information, see the OpenGL ES 3.X documentation for glUniform4iv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)

Convenience function that calls glUniformMatrix2fv(location, count, transpose, value).

For more information, see the OpenGL ES 3.X documentation for glUniformMatrix2fv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)

Convenience function that calls glUniformMatrix3fv(location, count, transpose, value).

For more information, see the OpenGL ES 3.X documentation for glUniformMatrix3fv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)

Convenience function that calls glUniformMatrix4fv(location, count, transpose, value).

For more information, see the OpenGL ES 3.X documentation for glUniformMatrix4fv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glUseProgram(GLuint program)

Convenience function that calls glUseProgram(program).

For more information, see the OpenGL ES 3.X documentation for glUseProgram().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glValidateProgram(GLuint program)

Convenience function that calls glValidateProgram(program).

For more information, see the OpenGL ES 3.X documentation for glValidateProgram().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glVertexAttrib1f(GLuint indx, GLfloat x)

Convenience function that calls glVertexAttrib1f(indx, x).

For more information, see the OpenGL ES 3.X documentation for glVertexAttrib1f().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glVertexAttrib1fv(GLuint indx, const GLfloat *values)

Convenience function that calls glVertexAttrib1fv(indx, values).

For more information, see the OpenGL ES 3.X documentation for glVertexAttrib1fv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y)

Convenience function that calls glVertexAttrib2f(indx, x, y).

For more information, see the OpenGL ES 3.X documentation for glVertexAttrib2f().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glVertexAttrib2fv(GLuint indx, const GLfloat *values)

Convenience function that calls glVertexAttrib2fv(indx, values).

For more information, see the OpenGL ES 3.X documentation for glVertexAttrib2fv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z)

Convenience function that calls glVertexAttrib3f(indx, x, y, z).

For more information, see the OpenGL ES 3.X documentation for glVertexAttrib3f().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glVertexAttrib3fv(GLuint indx, const GLfloat *values)

Convenience function that calls glVertexAttrib3fv(indx, values).

For more information, see the OpenGL ES 3.X documentation for glVertexAttrib3fv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)

Convenience function that calls glVertexAttrib4f(indx, x, y, z, w).

For more information, see the OpenGL ES 3.X documentation for glVertexAttrib4f().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glVertexAttrib4fv(GLuint indx, const GLfloat *values)

Convenience function that calls glVertexAttrib4fv(indx, values).

For more information, see the OpenGL ES 3.X documentation for glVertexAttrib4fv().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glVertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *ptr)

Convenience function that calls glVertexAttribPointer(indx, size, type, normalized, stride, ptr).

For more information, see the OpenGL ES 3.X documentation for glVertexAttribPointer().

This convenience function will do nothing on OpenGL ES 1.x systems.

### void QOpenGLFunctions::glViewport(GLint x, GLint y, GLsizei width, GLsizei height)

Convenience function that calls glViewport(x, y, width, height).

For more information, see the OpenGL ES 3.X documentation for glViewport().

### bool QOpenGLFunctions::hasOpenGLFeature(QOpenGLFunctions::OpenGLFeature feature) const

Returns `true` if feature is present on this system's OpenGL implementation; false otherwise.

It is assumed that the QOpenGLContext associated with this function resolver is current.

See also openGLFeatures().

### void QOpenGLFunctions::initializeOpenGLFunctions()

Initializes OpenGL function resolution for the current context.

After calling this function, the QOpenGLFunctions object can only be used with the current context and other contexts that share with it. Call initializeOpenGLFunctions() again to change the object's context association.

### QOpenGLFunctions::OpenGLFeatures QOpenGLFunctions::openGLFeatures() const

Returns the set of features that are present on this system's OpenGL implementation.

It is assumed that the QOpenGLContext associated with this function resolver is current.

See also hasOpenGLFeature().