CopperSpice API  1.9.2
QOpenGLFunctions Class Reference

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

Inheritance diagram for QOpenGLFunctions:
QOpenGLExtraFunctions

Public Typedefs

using OpenGLFeatures = QFlags< OpenGLFeature >
 

Public Types

enum  OpenGLFeature
 

Public Methods

 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 glGenerateMipmap (GLenum target)
 
void glGenFramebuffers (GLsizei n, GLuint *framebuffers)
 
void glGenRenderbuffers (GLsizei n, GLuint *renderbuffers)
 
void glGenTextures (GLsizei n, GLuint *textures)
 
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 glGetShaderiv (GLuint shader, GLenum pname, GLint *params)
 
void glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)
 
void glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei *length, char *source)
 
const GLubyte * glGetString (GLenum name)
 
void glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params)
 
void glGetTexParameteriv (GLenum target, GLenum pname, GLint *params)
 
void glGetUniformfv (GLuint program, GLint location, GLfloat *params)
 
void glGetUniformiv (GLuint program, GLint location, GLint *params)
 
GLint glGetUniformLocation (GLuint program, const char *name)
 
void glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params)
 
void glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params)
 
void glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer)
 
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 which are common across many desktop and embedded OpenGL implementations.It can be difficult to use the functions 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 inheritance.

class MyGLWindow : public QWindow, protected QOpenGLFunctions
{
CS_OBJECT(MyGLWindow)
public:
explicit MyGLWindow(QScreen *screen = nullptr);
protected:
void initializeGL();
void paintGL();
QOpenGLContext *m_context;
};
MyGLWindow(QScreen *screen)
: QWindow(screen), QOpenGLWidget(parent)
{
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);
}

Rendering OpenGL Images

The paintGL() method can use any of the OpenGL ES 2.0 functions, such as glActiveTexture().

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

Using QOpenGLFunctions Without Inheritance

QOpenGLFunctions can also be used directly to call OpenGL ES 2.0 functions.

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 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() methods 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.

bool npot = funcs.hasOpenGLFeature(QOpenGLFunctions::NPOTTextures);
See also
QOpenGLContext, QSurfaceFormat

Member Typedef Documentation

Typedef for QFlags<OpenGLFeature> which contains an OR combination of OpenGLFeature values.

Refer to QOpenGLFunctions::OpenGLFeature for documentation.

Member Enumeration Documentation

This enum defines OpenGL and OpenGL ES features which may be supported, based on the users OpenGL drivers.

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::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.

Constructor & Destructor Documentation

QOpenGLFunctions::QOpenGLFunctions ( )

Constructs a default QOpenGLFunctions object. The new object can not be used until initializeOpenGLFunctions() is called to specify the context.

QOpenGLFunctions::QOpenGLFunctions ( QOpenGLContext context)
explicit

Constructs a QOpenGLFunctions using context. If context is a nullptr the active OpenGL context will be used. If required, call initializeOpenGLFunctions() to change the context.

QOpenGLFunctions::~QOpenGLFunctions ( )
inline

Destroys this QOpenGLFunctions.

Method Documentation

void QOpenGLFunctions::glActiveTexture ( GLenum  texture)
inline

Equivalent to calling glActiveTexture(texture) in the OpenGL API. For more information refer to the OpenGL ES 2.0 documentation for glActiveTexture().

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

Equivalent to calling glAttachShader(program, shader) in the OpenGL API. For more information refer to the OpenGL ES 2.0 documentation for glAttachShader().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glBindAttribLocation(program, index, name) in the OpenGL API. For more information refer to the OpenGL ES 2.0 documentation for glBindAttribLocation().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glBindBuffer(target, buffer). For more information refer to the OpenGL ES 2.0 documentation for glBindBuffer().

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

Equivalent to calling glBindFramebuffer(target, framebuffer). CopperSpice will translate a framebuffer argument of 0 to the currently bound QOpenGLContext's defaultFramebufferObject().

For more information refer to the OpenGL ES 2.0 documentation for glBindFramebuffer().

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

Equivalent to calling glBindRenderbuffer(target, renderbuffer). For more information refer to the OpenGL ES 2.0 documentation for glBindRenderbuffer().

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

Equivalent to calling glBindTexture(target, texture). For more information refer to the OpenGL ES 2.0 documentation for glBindTexture().

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

Equivalent to calling glBlendColor(red, green, blue, alpha). For more information refer to the OpenGL ES 2.0 documentation for glBlendColor().

void QOpenGLFunctions::glBlendEquation ( GLenum  mode)
inline

Equivalent to calling glBlendEquation(mode). For more information refer to the OpenGL ES 2.0 documentation for glBlendEquation().

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

Equivalent to calling glBlendEquationSeparate(modeRGB, modeAlpha). For more information refer to the OpenGL ES 2.0 documentation for glBlendEquationSeparate().

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

Equivalent to calling glBlendFunc(sfactor, dfactor). For more information refer to the OpenGL ES 2.0 documentation for glBlendFunc().

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

Equivalent to calling glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha). For more information refer to the OpenGL ES 2.0 documentation for glBlendFuncSeparate().

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

Equivalent to calling glBufferData(target, size, data, usage). For more information refer to the OpenGL ES 2.0 documentation for glBufferData().

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

Equivalent to calling glBufferSubData(target, offset, size, data). For more information refer to the OpenGL ES 2.0 documentation for glBufferSubData().

GLenum QOpenGLFunctions::glCheckFramebufferStatus ( GLenum  target)
inline

Equivalent to calling glCheckFramebufferStatus(target). For more information refer to the OpenGL ES 2.0 documentation for glCheckFramebufferStatus().

void QOpenGLFunctions::glClear ( GLbitfield  mask)
inline

Equivalent to calling glClear(mask). For more information refer to the OpenGL ES 2.0 documentation for glClear().

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

Equivalent to calling glClearColor(red, green, blue, alpha). For more information refer to the OpenGL ES 2.0 documentation for glClearColor().

void QOpenGLFunctions::glClearDepthf ( GLclampf  depth)
inline

Equivalent to calling glClearDepth(depth) on desktop OpenGL systems and glClearDepthf(depth) on embedded OpenGL ES systems. For more information refer to the OpenGL ES 2.0 documentation for glClearDepthf().

void QOpenGLFunctions::glClearStencil ( GLint  s)
inline

Equivalent to calling glClearStencil(s). For more information refer to the OpenGL ES 2.0 documentation for glClearStencil().

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

Equivalent to calling glColorMask(red, green, blue, alpha). For more information refer to the OpenGL ES 2.0 documentation for glColorMask().

void QOpenGLFunctions::glCompileShader ( GLuint  shader)
inline

Equivalent to calling glCompileShader(shader). For more information refer to the OpenGL ES 2.0 documentation for glCompileShader().

Calling this method 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 
)
inline

Equivalent to calling glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data). For more information refer to the OpenGL ES 2.0 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 
)
inline

Equivalent to calling glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data). For more information refer to the OpenGL ES 2.0 documentation for glCompressedTexSubImage2D().

void QOpenGLFunctions::glCopyTexImage2D ( GLenum  target,
GLint  level,
GLenum  internalformat,
GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height,
GLint  border 
)
inline

Equivalent to calling glCopyTexImage2D(target, level, internalformat, x, y, width, height, border). For more information refer to the OpenGL ES 2.0 documentation for glCopyTexImage2D().

void QOpenGLFunctions::glCopyTexSubImage2D ( GLenum  target,
GLint  level,
GLint  xoffset,
GLint  yoffset,
GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height 
)
inline

Calls glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height). For more information refer to the OpenGL ES 2.0 documentation for glCopyTexSubImage2D().

GLuint QOpenGLFunctions::glCreateProgram ( )
inline

Equivalent to calling glCreateProgram(). For more information refer to the OpenGL ES 2.0 documentation for glCreateProgram().

Calling this method will do nothing on OpenGL ES 1.x systems.

GLuint QOpenGLFunctions::glCreateShader ( GLenum  type)
inline

Equivalent to calling glCreateShader(type). For more information refer to the OpenGL ES 2.0 documentation for glCreateShader().

Calling this method will do nothing on OpenGL ES 1.x systems.

void QOpenGLFunctions::glCullFace ( GLenum  mode)
inline

Equivalent to calling glCullFace(mode). For more information refer to the OpenGL ES 2.0 documentation for glCullFace().

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

Equivalent to calling glDeleteBuffers(n, buffers). For more information refer to the OpenGL ES 2.0 documentation for glDeleteBuffers().

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

Equivalent to calling glDeleteFramebuffers(n, framebuffers). For more information refer to the OpenGL ES 2.0 documentation for glDeleteFramebuffers().

void QOpenGLFunctions::glDeleteProgram ( GLuint  program)
inline

Equivalent to calling glDeleteProgram(program). For more information refer to the OpenGL ES 2.0 documentation for glDeleteProgram().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glDeleteRenderbuffers(n, renderbuffers). For more information refer to the OpenGL ES 2.0 documentation for glDeleteRenderbuffers().

void QOpenGLFunctions::glDeleteShader ( GLuint  shader)
inline

Equivalent to calling glDeleteShader(shader). For more information refer to the OpenGL ES 2.0 documentation for glDeleteShader().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glDeleteTextures(n, textures). For more information refer to the OpenGL ES 2.0 documentation for glDeleteTextures().

void QOpenGLFunctions::glDepthFunc ( GLenum  func)
inline

Equivalent to calling glDepthFunc(func). For more information refer to the OpenGL ES 2.0 documentation for glDepthFunc().

void QOpenGLFunctions::glDepthMask ( GLboolean  flag)
inline

Equivalent to calling glDepthMask(flag). For more information refer to the OpenGL ES 2.0 documentation for glDepthMask().

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

Equivalent to calling glDepthRange(zNear, zFar) on desktop OpenGL systems and glDepthRangef(zNear, zFar) on embedded OpenGL ES systems. For more information refer to the OpenGL ES 2.0 documentation for glDepthRangef().

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

Equivalent to calling glDetachShader(program, shader). For more information refer to the OpenGL ES 2.0 documentation for glDetachShader().

Calling this method will do nothing on OpenGL ES 1.x systems.

void QOpenGLFunctions::glDisable ( GLenum  cap)
inline

Equivalent to calling glDisable(cap). For more information refer to the OpenGL ES 2.0 documentation for glDisable().

void QOpenGLFunctions::glDisableVertexAttribArray ( GLuint  index)
inline

Equivalent to calling glDisableVertexAttribArray(index). For more information refer to the OpenGL ES 2.0 documentation for glDisableVertexAttribArray().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glDrawArrays(mode, first, count). For more information refer to the OpenGL ES 2.0 documentation for glDrawArrays().

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

Equivalent to calling glDrawElements(mode, count, type, indices). For more information refer to the OpenGL ES 2.0 documentation for glDrawElements().

void QOpenGLFunctions::glEnable ( GLenum  cap)
inline

Equivalent to calling glEnable(cap). For more information refer to the OpenGL ES 2.0 documentation for glEnable().

void QOpenGLFunctions::glEnableVertexAttribArray ( GLuint  index)
inline

Equivalent to calling glEnableVertexAttribArray(index). For more information refer to the OpenGL ES 2.0 documentation for glEnableVertexAttribArray().

Calling this method will do nothing on OpenGL ES 1.x systems.

void QOpenGLFunctions::glFinish ( )
inline

Equivalent to calling glFinish(). For more information refer to the OpenGL ES 2.0 documentation for glFinish().

void QOpenGLFunctions::glFlush ( )
inline

Equivalent to calling glFlush(). For more information refer to the OpenGL ES 2.0 documentation for glFlush().

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

Equivalent to calling glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer). For more information refer to the OpenGL ES 2.0 documentation for glFramebufferRenderbuffer().

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

Equivalent to calling glFramebufferTexture2D(target, attachment, textarget, texture, level). For more information refer to the OpenGL ES 2.0 documentation for glFramebufferTexture2D().

void QOpenGLFunctions::glFrontFace ( GLenum  mode)
inline

Equivalent to calling glFrontFace(mode). For more information refer to the OpenGL ES 2.0 documentation for glFrontFace().

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

Equivalent to calling glGenBuffers(n, buffers). For more information refer to the OpenGL ES 2.0 documentation for glGenBuffers().

void QOpenGLFunctions::glGenerateMipmap ( GLenum  target)
inline

Equivalent to calling glGenerateMipmap(target). For more information refer to the OpenGL ES 2.0 documentation for glGenerateMipmap().

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

Equivalent to calling glGenFramebuffers(n, framebuffers). For more information refer to the OpenGL ES 2.0 documentation for glGenFramebuffers().

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

Equivalent to calling glGenRenderbuffers(n, renderbuffers). For more information refer to the OpenGL ES 2.0 documentation for glGenRenderbuffers().

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

Equivalent to calling glGenTextures(n, textures). For more information refer to the OpenGL ES 2.0 documentation for glGenTextures().

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

Equivalent to calling glGetActiveAttrib(program, index, bufsize, length, size, type, name). For more information refer to the OpenGL ES 2.0 documentation for glGetActiveAttrib().

Calling this method 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 
)
inline

Equivalent to calling glGetActiveUniform(program, index, bufsize, length, size, type, name). For more information refer to the OpenGL ES 2.0 documentation for glGetActiveUniform().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glGetAttachedShaders(program, maxcount, count, shaders). For more information refer to the OpenGL ES 2.0 documentation for glGetAttachedShaders().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glGetAttribLocation(program, name). For more information refer to the OpenGL ES 2.0 documentation for glGetAttribLocation().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glGetBooleanv(pname, params). For more information refer to the OpenGL ES 2.0 documentation for glGetBooleanv().

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

Equivalent to calling glGetBufferParameteriv(target, pname, params). For more information refer to the OpenGL ES 2.0 documentation for glGetBufferParameteriv().

GLenum QOpenGLFunctions::glGetError ( )
inline

Equivalent to calling glGetError(). For more information refer to the OpenGL ES 2.0 documentation for glGetError().

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

Equivalent to calling glGetFloatv(pname, params). For more information refer to the OpenGL ES 2.0 documentation for glGetFloatv().

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

Equivalent to calling glGetFramebufferAttachmentParameteriv(target, attachment, pname, params). For more information refer to the OpenGL ES 2.0 documentation for glGetFramebufferAttachmentParameteriv().

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

Equivalent to calling glGetIntegerv(pname, params). For more information refer to the OpenGL ES 2.0 documentation for glGetIntegerv().

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

Equivalent to calling glGetProgramInfoLog(program, bufsize, length, infolog). For more information refer to the OpenGL ES 2.0 documentation for glGetProgramInfoLog().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glGetProgramiv(program, pname, params). For more information refer to the OpenGL ES 2.0 documentation for glGetProgramiv().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glGetRenderbufferParameteriv(target, pname, params). For more information refer to the OpenGL ES 2.0 documentation for glGetRenderbufferParameteriv().

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

Equivalent to calling glGetShaderInfoLog(shader, bufsize, length, infolog). For more information refer to the OpenGL ES 2.0 documentation for glGetShaderInfoLog().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glGetShaderiv(shader, pname, params). For more information refer to the OpenGL ES 2.0 documentation for glGetShaderiv().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision). For more information refer to the OpenGL ES 2.0 documentation for glGetShaderPrecisionFormat().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glGetShaderSource(shader, bufsize, length, source). For more information refer to the OpenGL ES 2.0 documentation for glGetShaderSource().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glGetString(name). For more information refer to the OpenGL ES 2.0 documentation for glGetString().

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

Equivalent to calling glGetTexParameterfv(target, pname, params). For more information refer to the OpenGL ES 2.0 documentation for glGetTexParameterfv().

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

Equivalent to calling glGetTexParameteriv(target, pname, params). For more information refer to the OpenGL ES 2.0 documentation for glGetTexParameteriv().

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

Equivalent to calling glGetUniformfv(program, location, params). For more information refer to the OpenGL ES 2.0 documentation for glGetUniformfv().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glGetUniformiv(program, location, params). For more information refer to the OpenGL ES 2.0 documentation for glGetUniformiv().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glGetUniformLocation(program, name). For more information refer to the OpenGL ES 2.0 documentation for glGetUniformLocation().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glGetVertexAttribfv(index, pname, params). For more information refer to the OpenGL ES 2.0 documentation for glGetVertexAttribfv().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glGetVertexAttribiv(index, pname, params). For more information refer to the OpenGL ES 2.0 documentation for glGetVertexAttribiv().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glGetVertexAttribPointerv(index, pname, pointer). For more information refer to the OpenGL ES 2.0 documentation for glGetVertexAttribPointerv().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glHint(target, mode). For more information refer to the OpenGL ES 2.0 documentation for glHint().

GLboolean QOpenGLFunctions::glIsBuffer ( GLuint  buffer)
inline

Equivalent to calling glIsBuffer(buffer). For more information refer to the OpenGL ES 2.0 documentation for glIsBuffer().

GLboolean QOpenGLFunctions::glIsEnabled ( GLenum  cap)
inline

Equivalent to calling glIsEnabled(cap). For more information refer to the OpenGL ES 2.0 documentation for glIsEnabled().

GLboolean QOpenGLFunctions::glIsFramebuffer ( GLuint  framebuffer)
inline

Equivalent to calling glIsFramebuffer(framebuffer). For more information refer to the OpenGL ES 2.0 documentation for glIsFramebuffer().

GLboolean QOpenGLFunctions::glIsProgram ( GLuint  program)
inline

Equivalent to calling glIsProgram(program). For more information refer to the OpenGL ES 2.0 documentation for glIsProgram().

Calling this method will do nothing on OpenGL ES 1.x systems.

GLboolean QOpenGLFunctions::glIsRenderbuffer ( GLuint  renderbuffer)
inline

Equivalent to calling glIsRenderbuffer(renderbuffer). For more information refer to the OpenGL ES 2.0 documentation for glIsRenderbuffer().

GLboolean QOpenGLFunctions::glIsShader ( GLuint  shader)
inline

Equivalent to calling glIsShader(shader). For more information refer to the OpenGL ES 2.0 documentation for glIsShader().

Calling this method will do nothing on OpenGL ES 1.x systems.

GLboolean QOpenGLFunctions::glIsTexture ( GLuint  texture)
inline

Equivalent to calling glIsTexture(texture). For more information refer to the OpenGL ES 2.0 documentation for glIsTexture().

void QOpenGLFunctions::glLineWidth ( GLfloat  width)
inline

Equivalent to calling glLineWidth(width). For more information refer to the OpenGL ES 2.0 documentation for glLineWidth().

void QOpenGLFunctions::glLinkProgram ( GLuint  program)
inline

Equivalent to calling glLinkProgram(program). For more information refer to the OpenGL ES 2.0 documentation for glLinkProgram().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glPixelStorei(pname, param). For more information refer to the OpenGL ES 2.0 documentation for glPixelStorei().

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

Equivalent to calling glPolygonOffset(factor, units). For more information refer to the OpenGL ES 2.0 documentation for glPolygonOffset().

void QOpenGLFunctions::glReadPixels ( GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height,
GLenum  format,
GLenum  type,
GLvoid *  pixels 
)
inline

Equivalent to calling glReadPixels(x, y, width, height, format, type, pixels). For more information refer to the OpenGL ES 2.0 documentation for glReadPixels().

void QOpenGLFunctions::glReleaseShaderCompiler ( )
inline

Equivalent to calling glReleaseShaderCompiler(). For more information refer to the OpenGL ES 2.0 documentation for glReleaseShaderCompiler().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glRenderbufferStorage(target, internalformat, width, height). For more information refer to the OpenGL ES 2.0 documentation for glRenderbufferStorage().

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

Equivalent to calling glSampleCoverage(value, invert). For more information refer to the OpenGL ES 2.0 documentation for glSampleCoverage().

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

Equivalent to calling glScissor(x, y, width, height). For more information refer to the OpenGL ES 2.0 documentation for glScissor().

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

Equivalent to calling glShaderBinary(n, shaders, binaryformat, binary, length). For more information refer to the OpenGL ES 2.0 documentation for glShaderBinary().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glShaderSource(shader, count, string, length). For more information refer to the OpenGL ES 2.0 documentation for glShaderSource().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glStencilFunc(func, ref, mask). For more information refer to the OpenGL ES 2.0 documentation for glStencilFunc().

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

Equivalent to calling glStencilFuncSeparate(face, func, ref, mask). For more information refer to the OpenGL ES 2.0 documentation for glStencilFuncSeparate().

void QOpenGLFunctions::glStencilMask ( GLuint  mask)
inline

Equivalent to calling glStencilMask(mask). For more information refer to the OpenGL ES 2.0 documentation for glStencilMask().

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

Equivalent to calling glStencilMaskSeparate(face, mask). For more information refer to the OpenGL ES 2.0 documentation for glStencilMaskSeparate().

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

Equivalent to calling glStencilOp(fail, zfail, zpass). For more information refer to the OpenGL ES 2.0 documentation for glStencilOp().

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

Equivalent to calling glStencilOpSeparate(face, fail, zfail, zpass). For more information refer to the OpenGL ES 2.0 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 
)
inline

Equivalent to calling glTexImage2D(target, level, internalformat, width, height, border, format, type, pixels). For more information refer to the OpenGL ES 2.0 documentation for glTexImage2D().

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

Equivalent to calling glTexParameterf(target, pname, param). For more information refer to the OpenGL ES 2.0 documentation for glTexParameterf().

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

Equivalent to calling glTexParameterfv(target, pname, params). For more information refer to the OpenGL ES 2.0 documentation for glTexParameterfv().

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

Equivalent to calling glTexParameteri(target, pname, param). For more information refer to the OpenGL ES 2.0 documentation for glTexParameteri().

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

Equivalent to calling glTexParameteriv(target, pname, params). For more information refer to the OpenGL ES 2.0 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 
)
inline

Equivalent to calling glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels). For more information refer to the OpenGL ES 2.0 documentation for glTexSubImage2D().

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

Equivalent to calling glUniform1f(location, x). For more information refer to the OpenGL ES 2.0 documentation for glUniform1f().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glUniform1fv(location, count, v). For more information refer to the OpenGL ES 2.0 documentation for glUniform1fv().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glUniform1i(location, x). For more information refer to the OpenGL ES 2.0 documentation for glUniform1i().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glUniform1iv(location, count, v). For more information refer to the OpenGL ES 2.0 documentation for glUniform1iv().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glUniform2f(location, x, y). For more information refer to the OpenGL ES 2.0 documentation for glUniform2f().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glUniform2fv(location, count, v). For more information refer to the OpenGL ES 2.0 documentation for glUniform2fv().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glUniform2i(location, x, y). For more information refer to the OpenGL ES 2.0 documentation for glUniform2i().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glUniform2iv(location, count, v). For more information refer to the OpenGL ES 2.0 documentation for glUniform2iv().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glUniform3f(location, x, y, z). For more information refer to the OpenGL ES 2.0 documentation for glUniform3f().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glUniform3fv(location, count, v). For more information refer to the OpenGL ES 2.0 documentation for glUniform3fv().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glUniform3i(location, x, y, z). For more information refer to the OpenGL ES 2.0 documentation for glUniform3i().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glUniform3iv(location, count, v). For more information refer to the OpenGL ES 2.0 documentation for glUniform3iv().%

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glUniform4f(location, x, y, z, w). For more information refer to the OpenGL ES 2.0 documentation for glUniform4f().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glUniform4fv(location, count, v). For more information refer to the OpenGL ES 2.0 documentation for glUniform4fv().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glUniform4i(location, x, y, z, w). For more information refer to the OpenGL ES 2.0 documentation for glUniform4i().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glUniform4iv(location, count, v). For more information refer to the OpenGL ES 2.0 documentation for glUniform4iv().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glUniformMatrix2fv(location, count, transpose, value). For more information refer to the OpenGL ES 2.0 documentation for glUniformMatrix2fv().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glUniformMatrix3fv(location, count, transpose, value). For more information refer to the OpenGL ES 2.0 documentation for glUniformMatrix3fv().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glUniformMatrix4fv(location, count, transpose, value). For more information refer to the OpenGL ES 2.0 documentation for glUniformMatrix4fv().

Calling this method will do nothing on OpenGL ES 1.x systems.

void QOpenGLFunctions::glUseProgram ( GLuint  program)
inline

Equivalent to calling glUseProgram(program). For more information refer to the OpenGL ES 2.0 documentation for glUseProgram().

Calling this method will do nothing on OpenGL ES 1.x systems.

void QOpenGLFunctions::glValidateProgram ( GLuint  program)
inline

Equivalent to calling glValidateProgram(program). For more information refer to the OpenGL ES 2.0 documentation for glValidateProgram().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glVertexAttrib1f(indx, x). For more information refer to the OpenGL ES 2.0 documentation for glVertexAttrib1f().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glVertexAttrib1fv(indx, values). For more information refer to the OpenGL ES 2.0 documentation for glVertexAttrib1fv().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glVertexAttrib2f(indx, x, y). For more information refer to the OpenGL ES 2.0 documentation for glVertexAttrib2f().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling lVertexAttrib2fv(indx, values). For more information refer to the OpenGL ES 2.0 documentation for glVertexAttrib2fv().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glVertexAttrib3f(indx, x, y, z). For more information refer to the OpenGL ES 2.0 documentation for glVertexAttrib3f().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glVertexAttrib3fv(indx, values). For more information refer to the OpenGL ES 2.0 documentation for glVertexAttrib3fv().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glVertexAttrib4f(indx, x, y, z, w). For more information refer to the OpenGL ES 2.0 documentation for glVertexAttrib4f().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glVertexAttrib4fv(indx, values). For more information refer to the OpenGL ES 2.0 documentation for glVertexAttrib4fv().

Calling this method 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 
)
inline

Equivalent to calling glVertexAttribPointer(indx, size, type, normalized, stride, ptr). For more information refer to the OpenGL ES 2.0 documentation for glVertexAttribPointer().

Calling this method will do nothing on OpenGL ES 1.x systems.

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

Equivalent to calling glViewport(x, y, width, height). For more information refer to the OpenGL ES 2.0 documentation for glViewport().

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

Returns true if the given feature is present on the current system, otherwise returns false.

See also
openGLFeatures()
void QOpenGLFunctions::initializeOpenGLFunctions ( )

Initializes OpenGL functions for the current context. After calling this method the QOpenGLFunctions object can only be used with the current context. Call initializeOpenGLFunctions() again to change the object's context.

QOpenGLFunctions::OpenGLFeatures QOpenGLFunctions::openGLFeatures ( ) const

Returns the set of features which are present on the current system.

See also
hasOpenGLFeature()