
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
TheQGLFunctions class provides cross-platform access to theOpenGL/ES 2.0 API.More...
| Header: | #include <QGLFunctions> |
| Since: | Qt 4.8 |
| enum | OpenGLFeature { Multitexture, Shaders, Buffers, Framebuffers, ..., NPOTTextures } |
| flags | OpenGLFeatures |
| QGLFunctions() | |
| QGLFunctions(const QGLContext * context) | |
| ~QGLFunctions() | |
| 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 | glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) |
| void | glBlendEquation(GLenum mode) |
| void | glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) |
| void | glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) |
| void | glBufferData(GLenum target, qgl_GLsizeiptr size, const void * data, GLenum usage) |
| void | glBufferSubData(GLenum target, qgl_GLintptr offset, qgl_GLsizeiptr size, const void * data) |
| GLenum | glCheckFramebufferStatus(GLenum target) |
| void | glClearDepthf(GLclampf depth) |
| 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) |
| GLuint | glCreateProgram() |
| GLuint | glCreateShader(GLenum type) |
| 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 | glDepthRangef(GLclampf zNear, GLclampf zFar) |
| void | glDetachShader(GLuint program, GLuint shader) |
| void | glDisableVertexAttribArray(GLuint index) |
| void | glEnableVertexAttribArray(GLuint index) |
| void | glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) |
| void | glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) |
| void | glGenBuffers(GLsizei n, GLuint * buffers) |
| void | glGenFramebuffers(GLsizei n, GLuint * framebuffers) |
| void | glGenRenderbuffers(GLsizei n, GLuint * renderbuffers) |
| 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) |
| int | glGetAttribLocation(GLuint program, const char * name) |
| void | glGetBufferParameteriv(GLenum target, GLenum pname, GLint * params) |
| void | glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, 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) |
| int | 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) |
| GLboolean | glIsBuffer(GLuint buffer) |
| GLboolean | glIsFramebuffer(GLuint framebuffer) |
| GLboolean | glIsProgram(GLuint program) |
| GLboolean | glIsRenderbuffer(GLuint renderbuffer) |
| GLboolean | glIsShader(GLuint shader) |
| void | glLinkProgram(GLuint program) |
| void | glReleaseShaderCompiler() |
| void | glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) |
| void | glSampleCoverage(GLclampf value, GLboolean invert) |
| 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 | glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) |
| void | glStencilMaskSeparate(GLenum face, GLuint mask) |
| void | glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) |
| 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) |
| bool | hasOpenGLFeature(QGLFunctions::OpenGLFeature feature) const |
| void | initializeGLFunctions(const QGLContext * context = 0) |
| QGLFunctions::OpenGLFeatures | openGLFeatures() const |
TheQGLFunctions class provides cross-platform access to theOpenGL/ES 2.0 API.
OpenGL/ES 2.0 defines a subset of theOpenGL specification that is common across many desktop and embeddedOpenGL implementations. However, it can be difficult to use the functions from that subset because they need to be resolved manually on desktop systems.
QGLFunctions provides a guaranteed API that is available on allOpenGL systems and takes care of function resolution on systems that need it. The recommended way to useQGLFunctions is by direct inheritance:
class MyGLWidget :publicQGLWidget,protectedQGLFunctions{ Q_OBJECTpublic: MyGLWidget(QWidget*parent=0) :QGLWidget(parent) {}protected:void initializeGL();void paintGL();};void MyGLWidget::initializeGL(){ initializeGLFunctions();}
ThepaintGL() function can then use any of theOpenGL/ES 2.0 functions without explicit resolution, such asglActiveTexture() in the following example:
void MyGLWidget::paintGL(){ glActiveTexture(GL_TEXTURE1); glBindTexture(GL_TEXTURE_2D, textureId);...}
QGLFunctions can also be used directly for ad-hoc invocation ofOpenGL/ES 2.0 functions on all platforms:
QGLFunctions glFuncs(QGLContext::currentContext());glFuncs.glActiveTexture(GL_TEXTURE1);
QGLFunctions provides wrappers for allOpenGL/ES 2.0 functions, except those likeglDrawArrays(),glViewport(), andglBindTexture() that don't have portability issues.
Including the header forQGLFunctions will also define all of theOpenGL/ES 2.0 macro constants that are not already defined by the system'sOpenGL headers, such asGL_TEXTURE1 above.
ThehasOpenGLFeature() andopenGLFeatures() functions can be used to determine if theOpenGL implementation has a majorOpenGL/ES 2.0 feature. For example, the following checks if non power of two textures are available:
QGLFunctions funcs(QGLContext::currentContext());bool npot= funcs.hasOpenGLFeature(QGLFunctions::NPOTTextures);
This enum definesOpenGL/ES 2.0 features that may be optional on other platforms.
| Constant | Value | Description |
|---|---|---|
QGLFunctions::Multitexture | 0x0001 | glActiveTexture() function is available. |
QGLFunctions::Shaders | 0x0002 | Shader functions are available. |
QGLFunctions::Buffers | 0x0004 | Vertex and index buffer functions are available. |
QGLFunctions::Framebuffers | 0x0008 | Framebuffer object functions are available. |
QGLFunctions::BlendColor | 0x0010 | glBlendColor() is available. |
QGLFunctions::BlendEquation | 0x0020 | glBlendEquation() is available. |
QGLFunctions::BlendEquationSeparate | 0x0040 | glBlendEquationSeparate() is available. |
QGLFunctions::BlendFuncSeparate | 0x0080 | glBlendFuncSeparate() is available. |
QGLFunctions::BlendSubtract | 0x0100 | Blend subtract mode is available. |
QGLFunctions::CompressedTextures | 0x0200 | Compressed texture functions are available. |
QGLFunctions::Multisample | 0x0400 | glSampleCoverage() function is available. |
QGLFunctions::StencilSeparate | 0x0800 | Separate stencil functions are available. |
QGLFunctions::NPOTTextures | 0x1000 | Non power of two textures are available. |
The OpenGLFeatures type is a typedef forQFlags<OpenGLFeature>. It stores an OR combination of OpenGLFeature values.
Constructs a default function resolver. The resolver cannot be used untilinitializeGLFunctions() is called to specify the context.
See alsoinitializeGLFunctions().
Constructs a function resolver forcontext. Ifcontext is null, then the resolver will be created for the currentQGLContext.
An object constructed in this way can only be used withcontext and other contexts that share with it. UseinitializeGLFunctions() to change the object's context association.
See alsoinitializeGLFunctions().
Destroys this function resolver.
Convenience function that calls glActiveTexture(texture).
For more information, see theOpenGL/ES 2.0 documentation forglActiveTexture().
Convenience function that calls glAttachShader(program,shader).
For more information, see theOpenGL/ES 2.0 documentation forglAttachShader().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glBindAttribLocation(program,index,name).
For more information, see theOpenGL/ES 2.0 documentation forglBindAttribLocation().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glBindBuffer(target,buffer).
For more information, see theOpenGL/ES 2.0 documentation forglBindBuffer().
Convenience function that calls glBindFramebuffer(target,framebuffer).
For more information, see theOpenGL/ES 2.0 documentation forglBindFramebuffer().
Convenience function that calls glBindRenderbuffer(target,renderbuffer).
For more information, see theOpenGL/ES 2.0 documentation forglBindRenderbuffer().
Convenience function that calls glBlendColor(red,green,blue,alpha).
For more information, see theOpenGL/ES 2.0 documentation forglBlendColor().
Convenience function that calls glBlendEquation(mode).
For more information, see theOpenGL/ES 2.0 documentation forglBlendEquation().
Convenience function that calls glBlendEquationSeparate(modeRGB,modeAlpha).
For more information, see theOpenGL/ES 2.0 documentation forglBlendEquationSeparate().
Convenience function that calls glBlendFuncSeparate(srcRGB,dstRGB,srcAlpha,dstAlpha).
For more information, see theOpenGL/ES 2.0 documentation forglBlendFuncSeparate().
Convenience function that calls glBufferData(target,size,data,usage).
For more information, see theOpenGL/ES 2.0 documentation forglBufferData().
Convenience function that calls glBufferSubData(target,offset,size,data).
For more information, see theOpenGL/ES 2.0 documentation forglBufferSubData().
Convenience function that calls glCheckFramebufferStatus(target).
For more information, see theOpenGL/ES 2.0 documentation forglCheckFramebufferStatus().
Convenience function that calls glClearDepth(depth) on desktopOpenGL systems and glClearDepthf(depth) on embeddedOpenGL/ES systems.
For more information, see theOpenGL/ES 2.0 documentation forglClearDepthf().
Convenience function that calls glCompileShader(shader).
For more information, see theOpenGL/ES 2.0 documentation forglCompileShader().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glCompressedTexImage2D(target,level,internalformat,width,height,border,imageSize,data).
For more information, see theOpenGL/ES 2.0 documentation forglCompressedTexImage2D().
Convenience function that calls glCompressedTexSubImage2D(target,level,xoffset,yoffset,width,height,format,imageSize,data).
For more information, see theOpenGL/ES 2.0 documentation forglCompressedTexSubImage2D().
Convenience function that calls glCreateProgram().
For more information, see theOpenGL/ES 2.0 documentation forglCreateProgram().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glCreateShader(type).
For more information, see theOpenGL/ES 2.0 documentation forglCreateShader().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glDeleteBuffers(n,buffers).
For more information, see theOpenGL/ES 2.0 documentation forglDeleteBuffers().
Convenience function that calls glDeleteFramebuffers(n,framebuffers).
For more information, see theOpenGL/ES 2.0 documentation forglDeleteFramebuffers().
Convenience function that calls glDeleteProgram(program).
For more information, see theOpenGL/ES 2.0 documentation forglDeleteProgram().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glDeleteRenderbuffers(n,renderbuffers).
For more information, see theOpenGL/ES 2.0 documentation forglDeleteRenderbuffers().
Convenience function that calls glDeleteShader(shader).
For more information, see theOpenGL/ES 2.0 documentation forglDeleteShader().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glDepthRange(zNear,zFar) on desktopOpenGL systems and glDepthRangef(zNear,zFar) on embeddedOpenGL/ES systems.
For more information, see theOpenGL/ES 2.0 documentation forglDepthRangef().
Convenience function that calls glDetachShader(program,shader).
For more information, see theOpenGL/ES 2.0 documentation forglDetachShader().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glDisableVertexAttribArray(index).
For more information, see theOpenGL/ES 2.0 documentation forglDisableVertexAttribArray().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glEnableVertexAttribArray(index).
For more information, see theOpenGL/ES 2.0 documentation forglEnableVertexAttribArray().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glFramebufferRenderbuffer(target,attachment,renderbuffertarget,renderbuffer).
For more information, see theOpenGL/ES 2.0 documentation forglFramebufferRenderbuffer().
Convenience function that calls glFramebufferTexture2D(target,attachment,textarget,texture,level).
For more information, see theOpenGL/ES 2.0 documentation forglFramebufferTexture2D().
Convenience function that calls glGenBuffers(n,buffers).
For more information, see theOpenGL/ES 2.0 documentation forglGenBuffers().
Convenience function that calls glGenFramebuffers(n,framebuffers).
For more information, see theOpenGL/ES 2.0 documentation forglGenFramebuffers().
Convenience function that calls glGenRenderbuffers(n,renderbuffers).
For more information, see theOpenGL/ES 2.0 documentation forglGenRenderbuffers().
Convenience function that calls glGenerateMipmap(target).
For more information, see theOpenGL/ES 2.0 documentation forglGenerateMipmap().
Convenience function that calls glGetActiveAttrib(program,index,bufsize,length,size,type,name).
For more information, see theOpenGL/ES 2.0 documentation forglGetActiveAttrib().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glGetActiveUniform(program,index,bufsize,length,size,type,name).
For more information, see theOpenGL/ES 2.0 documentation forglGetActiveUniform().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glGetAttachedShaders(program,maxcount,count,shaders).
For more information, see theOpenGL/ES 2.0 documentation forglGetAttachedShaders().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glGetAttribLocation(program,name).
For more information, see theOpenGL/ES 2.0 documentation forglGetAttribLocation().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glGetBufferParameteriv(target,pname,params).
For more information, see theOpenGL/ES 2.0 documentation forglGetBufferParameteriv().
Convenience function that calls glGetFramebufferAttachmentParameteriv(target,attachment,pname,params).
For more information, see theOpenGL/ES 2.0 documentation forglGetFramebufferAttachmentParameteriv().
Convenience function that calls glGetProgramInfoLog(program,bufsize,length,infolog).
For more information, see theOpenGL/ES 2.0 documentation forglGetProgramInfoLog().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glGetProgramiv(program,pname,params).
For more information, see theOpenGL/ES 2.0 documentation forglGetProgramiv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glGetRenderbufferParameteriv(target,pname,params).
For more information, see theOpenGL/ES 2.0 documentation forglGetRenderbufferParameteriv().
Convenience function that calls glGetShaderInfoLog(shader,bufsize,length,infolog).
For more information, see theOpenGL/ES 2.0 documentation forglGetShaderInfoLog().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glGetShaderPrecisionFormat(shadertype,precisiontype,range,precision).
For more information, see theOpenGL/ES 2.0 documentation forglGetShaderPrecisionFormat().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glGetShaderSource(shader,bufsize,length,source).
For more information, see theOpenGL/ES 2.0 documentation forglGetShaderSource().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glGetShaderiv(shader,pname,params).
For more information, see theOpenGL/ES 2.0 documentation forglGetShaderiv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glGetUniformLocation(program,name).
For more information, see theOpenGL/ES 2.0 documentation forglGetUniformLocation().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glGetUniformfv(program,location,params).
For more information, see theOpenGL/ES 2.0 documentation forglGetUniformfv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glGetUniformiv(program,location,params).
For more information, see theOpenGL/ES 2.0 documentation forglGetUniformiv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glGetVertexAttribPointerv(index,pname,pointer).
For more information, see theOpenGL/ES 2.0 documentation forglGetVertexAttribPointerv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glGetVertexAttribfv(index,pname,params).
For more information, see theOpenGL/ES 2.0 documentation forglGetVertexAttribfv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glGetVertexAttribiv(index,pname,params).
For more information, see theOpenGL/ES 2.0 documentation forglGetVertexAttribiv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glIsBuffer(buffer).
For more information, see theOpenGL/ES 2.0 documentation forglIsBuffer().
Convenience function that calls glIsFramebuffer(framebuffer).
For more information, see theOpenGL/ES 2.0 documentation forglIsFramebuffer().
Convenience function that calls glIsProgram(program).
For more information, see theOpenGL/ES 2.0 documentation forglIsProgram().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glIsRenderbuffer(renderbuffer).
For more information, see theOpenGL/ES 2.0 documentation forglIsRenderbuffer().
Convenience function that calls glIsShader(shader).
For more information, see theOpenGL/ES 2.0 documentation forglIsShader().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glLinkProgram(program).
For more information, see theOpenGL/ES 2.0 documentation forglLinkProgram().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glReleaseShaderCompiler().
For more information, see theOpenGL/ES 2.0 documentation forglReleaseShaderCompiler().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glRenderbufferStorage(target,internalformat,width,height).
For more information, see theOpenGL/ES 2.0 documentation forglRenderbufferStorage().
Convenience function that calls glSampleCoverage(value,invert).
For more information, see theOpenGL/ES 2.0 documentation forglSampleCoverage().
Convenience function that calls glShaderBinary(n,shaders,binaryformat,binary,length).
For more information, see theOpenGL/ES 2.0 documentation forglShaderBinary().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glShaderSource(shader,count,string,length).
For more information, see theOpenGL/ES 2.0 documentation forglShaderSource().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glStencilFuncSeparate(face,func,ref,mask).
For more information, see theOpenGL/ES 2.0 documentation forglStencilFuncSeparate().
Convenience function that calls glStencilMaskSeparate(face,mask).
For more information, see theOpenGL/ES 2.0 documentation forglStencilMaskSeparate().
Convenience function that calls glStencilOpSeparate(face,fail,zfail,zpass).
For more information, see theOpenGL/ES 2.0 documentation forglStencilOpSeparate().
Convenience function that calls glUniform1f(location,x).
For more information, see theOpenGL/ES 2.0 documentation forglUniform1f().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glUniform1fv(location,count,v).
For more information, see theOpenGL/ES 2.0 documentation forglUniform1fv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glUniform1i(location,x).
For more information, see theOpenGL/ES 2.0 documentation forglUniform1i().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glUniform1iv(location,count,v).
For more information, see theOpenGL/ES 2.0 documentation forglUniform1iv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glUniform2f(location,x,y).
For more information, see theOpenGL/ES 2.0 documentation forglUniform2f().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glUniform2fv(location,count,v).
For more information, see theOpenGL/ES 2.0 documentation forglUniform2fv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glUniform2i(location,x,y).
For more information, see theOpenGL/ES 2.0 documentation forglUniform2i().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glUniform2iv(location,count,v).
For more information, see theOpenGL/ES 2.0 documentation forglUniform2iv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glUniform3f(location,x,y,z).
For more information, see theOpenGL/ES 2.0 documentation forglUniform3f().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glUniform3fv(location,count,v).
For more information, see theOpenGL/ES 2.0 documentation forglUniform3fv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glUniform3i(location,x,y,z).
For more information, see theOpenGL/ES 2.0 documentation forglUniform3i().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glUniform3iv(location,count,v).
For more information, see theOpenGL/ES 2.0 documentation forglUniform3iv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glUniform4f(location,x,y,z,w).
For more information, see theOpenGL/ES 2.0 documentation forglUniform4f().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glUniform4fv(location,count,v).
For more information, see theOpenGL/ES 2.0 documentation forglUniform4fv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glUniform4i(location,x,y,z,w).
For more information, see theOpenGL/ES 2.0 documentation forglUniform4i().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glUniform4iv(location,count,v).
For more information, see theOpenGL/ES 2.0 documentation forglUniform4iv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glUniformMatrix2fv(location,count,transpose,value).
For more information, see theOpenGL/ES 2.0 documentation forglUniformMatrix2fv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glUniformMatrix3fv(location,count,transpose,value).
For more information, see theOpenGL/ES 2.0 documentation forglUniformMatrix3fv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glUniformMatrix4fv(location,count,transpose,value).
For more information, see theOpenGL/ES 2.0 documentation forglUniformMatrix4fv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glUseProgram(program).
For more information, see theOpenGL/ES 2.0 documentation forglUseProgram().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glValidateProgram(program).
For more information, see theOpenGL/ES 2.0 documentation forglValidateProgram().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glVertexAttrib1f(indx,x).
For more information, see theOpenGL/ES 2.0 documentation forglVertexAttrib1f().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glVertexAttrib1fv(indx,values).
For more information, see theOpenGL/ES 2.0 documentation forglVertexAttrib1fv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glVertexAttrib2f(indx,x,y).
For more information, see theOpenGL/ES 2.0 documentation forglVertexAttrib2f().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glVertexAttrib2fv(indx,values).
For more information, see theOpenGL/ES 2.0 documentation forglVertexAttrib2fv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glVertexAttrib3f(indx,x,y,z).
For more information, see theOpenGL/ES 2.0 documentation forglVertexAttrib3f().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glVertexAttrib3fv(indx,values).
For more information, see theOpenGL/ES 2.0 documentation forglVertexAttrib3fv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glVertexAttrib4f(indx,x,y,z,w).
For more information, see theOpenGL/ES 2.0 documentation forglVertexAttrib4f().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glVertexAttrib4fv(indx,values).
For more information, see theOpenGL/ES 2.0 documentation forglVertexAttrib4fv().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Convenience function that calls glVertexAttribPointer(indx,size,type,normalized,stride,ptr).
For more information, see theOpenGL/ES 2.0 documentation forglVertexAttribPointer().
This convenience function will do nothing onOpenGL/ES 1.x systems.
Returns true iffeature is present on this system'sOpenGL implementation; false otherwise.
It is assumed that theQGLContext associated with this function resolver is current.
See alsoopenGLFeatures().
Initializes GL function resolution forcontext. Ifcontext is null, then the currentQGLContext will be used.
After calling this function, theQGLFunctions object can only be used withcontext and other contexts that share with it. Call initializeGLFunctions() again to change the object's context association.
Returns the set of features that are present on this system'sOpenGL implementation.
It is assumed that theQGLContext associated with this function resolver is current.
See alsohasOpenGLFeature().
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.