Qt 4.8
|
The QGLFunctions class provides cross-platform access to the OpenGL/ES 2.0 API. More...
#include <qglfunctions.h>
Public Types | |
enum | OpenGLFeature { Multitexture = 0x0001, Shaders = 0x0002, Buffers = 0x0004, Framebuffers = 0x0008, BlendColor = 0x0010, BlendEquation = 0x0020, BlendEquationSeparate = 0x0040, BlendFuncSeparate = 0x0080, BlendSubtract = 0x0100, CompressedTextures = 0x0200, Multisample = 0x0400, StencilSeparate = 0x0800, NPOTTextures = 0x1000 } |
This enum defines OpenGL/ES 2. More... | |
Public Functions | |
void | glActiveTexture (GLenum texture) |
Convenience function that calls glActiveTexture(texture). More... | |
void | glAttachShader (GLuint program, GLuint shader) |
Convenience function that calls glAttachShader(program, shader). More... | |
void | glBindAttribLocation (GLuint program, GLuint index, const char *name) |
Convenience function that calls glBindAttribLocation(program, index, name). More... | |
void | glBindBuffer (GLenum target, GLuint buffer) |
Convenience function that calls glBindBuffer(target, buffer). More... | |
void | glBindFramebuffer (GLenum target, GLuint framebuffer) |
Convenience function that calls glBindFramebuffer(target, framebuffer). More... | |
void | glBindRenderbuffer (GLenum target, GLuint renderbuffer) |
Convenience function that calls glBindRenderbuffer(target, renderbuffer). More... | |
void | glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) |
Convenience function that calls glBlendColor(red, green, blue, alpha). More... | |
void | glBlendEquation (GLenum mode) |
Convenience function that calls glBlendEquation(mode). More... | |
void | glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) |
Convenience function that calls glBlendEquationSeparate(modeRGB, modeAlpha). More... | |
void | glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) |
Convenience function that calls glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha). More... | |
void | glBufferData (GLenum target, qgl_GLsizeiptr size, const void *data, GLenum usage) |
Convenience function that calls glBufferData(target, size, data, usage). More... | |
void | glBufferSubData (GLenum target, qgl_GLintptr offset, qgl_GLsizeiptr size, const void *data) |
Convenience function that calls glBufferSubData(target, offset, size, data). More... | |
GLenum | glCheckFramebufferStatus (GLenum target) |
Convenience function that calls glCheckFramebufferStatus(target). More... | |
void | glClearDepthf (GLclampf depth) |
Convenience function that calls glClearDepth(depth) on desktop OpenGL systems and glClearDepthf(depth) on embedded OpenGL/ES systems. More... | |
void | glCompileShader (GLuint shader) |
Convenience function that calls glCompileShader(shader). More... | |
void | glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data) |
Convenience function that calls glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data). More... | |
void | glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data) |
Convenience function that calls glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data). More... | |
GLuint | glCreateProgram () |
Convenience function that calls glCreateProgram(). More... | |
GLuint | glCreateShader (GLenum type) |
Convenience function that calls glCreateShader(type). More... | |
void | glDeleteBuffers (GLsizei n, const GLuint *buffers) |
Convenience function that calls glDeleteBuffers(n, buffers). More... | |
void | glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers) |
Convenience function that calls glDeleteFramebuffers(n, framebuffers). More... | |
void | glDeleteProgram (GLuint program) |
Convenience function that calls glDeleteProgram(program). More... | |
void | glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers) |
Convenience function that calls glDeleteRenderbuffers(n, renderbuffers). More... | |
void | glDeleteShader (GLuint shader) |
Convenience function that calls glDeleteShader(shader). More... | |
void | 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. More... | |
void | glDetachShader (GLuint program, GLuint shader) |
Convenience function that calls glDetachShader(program, shader). More... | |
void | glDisableVertexAttribArray (GLuint index) |
Convenience function that calls glDisableVertexAttribArray(index). More... | |
void | glEnableVertexAttribArray (GLuint index) |
Convenience function that calls glEnableVertexAttribArray(index). More... | |
void | glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) |
Convenience function that calls glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer). More... | |
void | glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) |
Convenience function that calls glFramebufferTexture2D(target, attachment, textarget, texture, level). More... | |
void | glGenBuffers (GLsizei n, GLuint *buffers) |
Convenience function that calls glGenBuffers(n, buffers). More... | |
void | glGenerateMipmap (GLenum target) |
Convenience function that calls glGenerateMipmap(target). More... | |
void | glGenFramebuffers (GLsizei n, GLuint *framebuffers) |
Convenience function that calls glGenFramebuffers(n, framebuffers). More... | |
void | glGenRenderbuffers (GLsizei n, GLuint *renderbuffers) |
Convenience function that calls glGenRenderbuffers(n, renderbuffers). More... | |
void | glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name) |
Convenience function that calls glGetActiveAttrib(program, index, bufsize, length, size, type, name). More... | |
void | glGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name) |
Convenience function that calls glGetActiveUniform(program, index, bufsize, length, size, type, name). More... | |
void | glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders) |
Convenience function that calls glGetAttachedShaders(program, maxcount, count, shaders). More... | |
int | glGetAttribLocation (GLuint program, const char *name) |
Convenience function that calls glGetAttribLocation(program, name). More... | |
void | glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params) |
Convenience function that calls glGetBufferParameteriv(target, pname, params). More... | |
void | glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params) |
Convenience function that calls glGetFramebufferAttachmentParameteriv(target, attachment, pname, params). More... | |
void | glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei *length, char *infolog) |
Convenience function that calls glGetProgramInfoLog(program, bufsize, length, infolog). More... | |
void | glGetProgramiv (GLuint program, GLenum pname, GLint *params) |
Convenience function that calls glGetProgramiv(program, pname, params). More... | |
void | glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params) |
Convenience function that calls glGetRenderbufferParameteriv(target, pname, params). More... | |
void | glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei *length, char *infolog) |
Convenience function that calls glGetShaderInfoLog(shader, bufsize, length, infolog). More... | |
void | glGetShaderiv (GLuint shader, GLenum pname, GLint *params) |
Convenience function that calls glGetShaderiv(shader, pname, params). More... | |
void | glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision) |
Convenience function that calls glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision). More... | |
void | glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei *length, char *source) |
Convenience function that calls glGetShaderSource(shader, bufsize, length, source). More... | |
void | glGetUniformfv (GLuint program, GLint location, GLfloat *params) |
Convenience function that calls glGetUniformfv(program, location, params). More... | |
void | glGetUniformiv (GLuint program, GLint location, GLint *params) |
Convenience function that calls glGetUniformiv(program, location, params). More... | |
int | glGetUniformLocation (GLuint program, const char *name) |
Convenience function that calls glGetUniformLocation(program, name). More... | |
void | glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params) |
Convenience function that calls glGetVertexAttribfv(index, pname, params). More... | |
void | glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params) |
Convenience function that calls glGetVertexAttribiv(index, pname, params). More... | |
void | glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer) |
Convenience function that calls glGetVertexAttribPointerv(index, pname, pointer). More... | |
GLboolean | glIsBuffer (GLuint buffer) |
Convenience function that calls glIsBuffer(buffer). More... | |
GLboolean | glIsFramebuffer (GLuint framebuffer) |
Convenience function that calls glIsFramebuffer(framebuffer). More... | |
GLboolean | glIsProgram (GLuint program) |
Convenience function that calls glIsProgram(program). More... | |
GLboolean | glIsRenderbuffer (GLuint renderbuffer) |
Convenience function that calls glIsRenderbuffer(renderbuffer). More... | |
GLboolean | glIsShader (GLuint shader) |
Convenience function that calls glIsShader(shader). More... | |
void | glLinkProgram (GLuint program) |
Convenience function that calls glLinkProgram(program). More... | |
void | glReleaseShaderCompiler () |
Convenience function that calls glReleaseShaderCompiler(). More... | |
void | glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height) |
Convenience function that calls glRenderbufferStorage(target, internalformat, width, height). More... | |
void | glSampleCoverage (GLclampf value, GLboolean invert) |
Convenience function that calls glSampleCoverage(value, invert). More... | |
void | glShaderBinary (GLint n, const GLuint *shaders, GLenum binaryformat, const void *binary, GLint length) |
Convenience function that calls glShaderBinary(n, shaders, binaryformat, binary, length). More... | |
void | glShaderSource (GLuint shader, GLsizei count, const char **string, const GLint *length) |
Convenience function that calls glShaderSource(shader, count, string, length). More... | |
void | glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) |
Convenience function that calls glStencilFuncSeparate(face, func, ref, mask). More... | |
void | glStencilMaskSeparate (GLenum face, GLuint mask) |
Convenience function that calls glStencilMaskSeparate(face, mask). More... | |
void | glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) |
Convenience function that calls glStencilOpSeparate(face, fail, zfail, zpass). More... | |
void | glUniform1f (GLint location, GLfloat x) |
Convenience function that calls glUniform1f(location, x). More... | |
void | glUniform1fv (GLint location, GLsizei count, const GLfloat *v) |
Convenience function that calls glUniform1fv(location, count, v). More... | |
void | glUniform1i (GLint location, GLint x) |
Convenience function that calls glUniform1i(location, x). More... | |
void | glUniform1iv (GLint location, GLsizei count, const GLint *v) |
Convenience function that calls glUniform1iv(location, count, v). More... | |
void | glUniform2f (GLint location, GLfloat x, GLfloat y) |
Convenience function that calls glUniform2f(location, x, y). More... | |
void | glUniform2fv (GLint location, GLsizei count, const GLfloat *v) |
Convenience function that calls glUniform2fv(location, count, v). More... | |
void | glUniform2i (GLint location, GLint x, GLint y) |
Convenience function that calls glUniform2i(location, x, y). More... | |
void | glUniform2iv (GLint location, GLsizei count, const GLint *v) |
Convenience function that calls glUniform2iv(location, count, v). More... | |
void | glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) |
Convenience function that calls glUniform3f(location, x, y, z). More... | |
void | glUniform3fv (GLint location, GLsizei count, const GLfloat *v) |
Convenience function that calls glUniform3fv(location, count, v). More... | |
void | glUniform3i (GLint location, GLint x, GLint y, GLint z) |
Convenience function that calls glUniform3i(location, x, y, z). More... | |
void | glUniform3iv (GLint location, GLsizei count, const GLint *v) |
Convenience function that calls glUniform3iv(location, count, v). More... | |
void | glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) |
Convenience function that calls glUniform4f(location, x, y, z, w). More... | |
void | glUniform4fv (GLint location, GLsizei count, const GLfloat *v) |
Convenience function that calls glUniform4fv(location, count, v). More... | |
void | glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) |
Convenience function that calls glUniform4i(location, x, y, z, w). More... | |
void | glUniform4iv (GLint location, GLsizei count, const GLint *v) |
Convenience function that calls glUniform4iv(location, count, v). More... | |
void | glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
Convenience function that calls glUniformMatrix2fv(location, count, transpose, value). More... | |
void | glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
Convenience function that calls glUniformMatrix3fv(location, count, transpose, value). More... | |
void | glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
Convenience function that calls glUniformMatrix4fv(location, count, transpose, value). More... | |
void | glUseProgram (GLuint program) |
Convenience function that calls glUseProgram(program). More... | |
void | glValidateProgram (GLuint program) |
Convenience function that calls glValidateProgram(program). More... | |
void | glVertexAttrib1f (GLuint indx, GLfloat x) |
Convenience function that calls glVertexAttrib1f(indx, x). More... | |
void | glVertexAttrib1fv (GLuint indx, const GLfloat *values) |
Convenience function that calls glVertexAttrib1fv(indx, values). More... | |
void | glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) |
Convenience function that calls glVertexAttrib2f(indx, x, y). More... | |
void | glVertexAttrib2fv (GLuint indx, const GLfloat *values) |
Convenience function that calls glVertexAttrib2fv(indx, values). More... | |
void | glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) |
Convenience function that calls glVertexAttrib3f(indx, x, y, z). More... | |
void | glVertexAttrib3fv (GLuint indx, const GLfloat *values) |
Convenience function that calls glVertexAttrib3fv(indx, values). More... | |
void | glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) |
Convenience function that calls glVertexAttrib4f(indx, x, y, z, w). More... | |
void | glVertexAttrib4fv (GLuint indx, const GLfloat *values) |
Convenience function that calls glVertexAttrib4fv(indx, values). More... | |
void | 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). More... | |
bool | hasOpenGLFeature (QGLFunctions::OpenGLFeature feature) const |
Returns true if feature is present on this system's OpenGL implementation; false otherwise. More... | |
void | initializeGLFunctions (const QGLContext *context=0) |
Initializes GL function resolution for context. More... | |
QGLFunctions::OpenGLFeatures | openGLFeatures () const |
Returns the set of features that are present on this system's OpenGL implementation. More... | |
QGLFunctions () | |
Constructs a default function resolver. More... | |
QGLFunctions (const QGLContext *context) | |
Constructs a function resolver for context. More... | |
~QGLFunctions () | |
Destroys this function resolver. More... | |
Static Private Functions | |
static bool | isInitialized (const QGLFunctionsPrivate *d) |
Properties | |
QGLFunctionsPrivate * | d_ptr |
The QGLFunctions class provides cross-platform access to the OpenGL/ES 2.0 API.
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.
QGLFunctions 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 QGLFunctions is by direct inheritance:
The paintGL()
function can then use any of the OpenGL/ES 2.0 functions without explicit resolution, such as glActiveTexture() in the following example:
QGLFunctions can also be used directly for ad-hoc invocation of OpenGL/ES 2.0 functions on all platforms:
QGLFunctions provides wrappers for all OpenGL/ES 2.0 functions, except those like glDrawArrays()
, glViewport()
, and glBindTexture()
that don't have portability issues.
Including the header for QGLFunctions will also define all of the OpenGL/ES 2.0 macro constants that are not already defined by the system's OpenGL headers, such as GL_TEXTURE1
above.
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:
Definition at line 178 of file qglfunctions.h.
This enum defines OpenGL/ES 2.
0 features that may be optional on other platforms.
Enumerator | |
---|---|
Multitexture | |
Shaders | |
Buffers | |
Framebuffers | |
BlendColor | |
BlendEquation | |
BlendEquationSeparate | |
BlendFuncSeparate | |
BlendSubtract | |
CompressedTextures | |
Multisample | |
StencilSeparate | |
NPOTTextures |
Definition at line 185 of file qglfunctions.h.
QGLFunctions::QGLFunctions | ( | ) |
Constructs a default function resolver.
The resolver cannot be used until initializeGLFunctions() is called to specify the context.
Definition at line 191 of file qglfunctions.cpp.
|
explicit |
Constructs a function resolver for context.
If context is null, then the resolver will be created for the current QGLContext.
An object constructed in this way can only be used with context and other contexts that share with it. Use initializeGLFunctions() to change the object's context association.
Definition at line 206 of file qglfunctions.cpp.
|
inline |
|
inline |
Convenience function that calls glActiveTexture(texture).
For more information, see the OpenGL/ES 2.0 documentation for glActiveTexture().
Definition at line 416 of file qglfunctions.h.
|
inline |
Convenience function that calls glAttachShader(program, shader).
For more information, see the OpenGL/ES 2.0 documentation for glAttachShader().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 426 of file qglfunctions.h.
|
inline |
Convenience function that calls glBindAttribLocation(program, index, name).
For more information, see the OpenGL/ES 2.0 documentation for glBindAttribLocation().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 436 of file qglfunctions.h.
|
inline |
Convenience function that calls glBindBuffer(target, buffer).
For more information, see the OpenGL/ES 2.0 documentation for glBindBuffer().
Definition at line 446 of file qglfunctions.h.
|
inline |
Convenience function that calls glBindFramebuffer(target, framebuffer).
For more information, see the OpenGL/ES 2.0 documentation for glBindFramebuffer().
Definition at line 456 of file qglfunctions.h.
|
inline |
Convenience function that calls glBindRenderbuffer(target, renderbuffer).
For more information, see the OpenGL/ES 2.0 documentation for glBindRenderbuffer().
Definition at line 466 of file qglfunctions.h.
|
inline |
Convenience function that calls glBlendColor(red, green, blue, alpha).
For more information, see the OpenGL/ES 2.0 documentation for glBlendColor().
Definition at line 476 of file qglfunctions.h.
|
inline |
Convenience function that calls glBlendEquation(mode).
For more information, see the OpenGL/ES 2.0 documentation for glBlendEquation().
Definition at line 486 of file qglfunctions.h.
Convenience function that calls glBlendEquationSeparate(modeRGB, modeAlpha).
For more information, see the OpenGL/ES 2.0 documentation for glBlendEquationSeparate().
Definition at line 496 of file qglfunctions.h.
|
inline |
Convenience function that calls glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha).
For more information, see the OpenGL/ES 2.0 documentation for glBlendFuncSeparate().
Definition at line 506 of file qglfunctions.h.
|
inline |
Convenience function that calls glBufferData(target, size, data, usage).
For more information, see the OpenGL/ES 2.0 documentation for glBufferData().
Definition at line 516 of file qglfunctions.h.
|
inline |
Convenience function that calls glBufferSubData(target, offset, size, data).
For more information, see the OpenGL/ES 2.0 documentation for glBufferSubData().
Definition at line 526 of file qglfunctions.h.
Convenience function that calls glCheckFramebufferStatus(target).
For more information, see the OpenGL/ES 2.0 documentation for glCheckFramebufferStatus().
Definition at line 536 of file qglfunctions.h.
|
inline |
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 2.0 documentation for glClearDepthf().
Definition at line 546 of file qglfunctions.h.
|
inline |
Convenience function that calls glCompileShader(shader).
For more information, see the OpenGL/ES 2.0 documentation for glCompileShader().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 555 of file qglfunctions.h.
|
inline |
Convenience function that calls glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data).
For more information, see the OpenGL/ES 2.0 documentation for glCompressedTexImage2D().
Definition at line 565 of file qglfunctions.h.
|
inline |
Convenience function that calls glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data).
For more information, see the OpenGL/ES 2.0 documentation for glCompressedTexSubImage2D().
Definition at line 575 of file qglfunctions.h.
|
inline |
Convenience function that calls glCreateProgram().
For more information, see the OpenGL/ES 2.0 documentation for glCreateProgram().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 585 of file qglfunctions.h.
|
inline |
Convenience function that calls glCreateShader(type).
For more information, see the OpenGL/ES 2.0 documentation for glCreateShader().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 595 of file qglfunctions.h.
|
inline |
Convenience function that calls glDeleteBuffers(n, buffers).
For more information, see the OpenGL/ES 2.0 documentation for glDeleteBuffers().
Definition at line 605 of file qglfunctions.h.
|
inline |
Convenience function that calls glDeleteFramebuffers(n, framebuffers).
For more information, see the OpenGL/ES 2.0 documentation for glDeleteFramebuffers().
Definition at line 615 of file qglfunctions.h.
|
inline |
Convenience function that calls glDeleteProgram(program).
For more information, see the OpenGL/ES 2.0 documentation for glDeleteProgram().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 625 of file qglfunctions.h.
|
inline |
Convenience function that calls glDeleteRenderbuffers(n, renderbuffers).
For more information, see the OpenGL/ES 2.0 documentation for glDeleteRenderbuffers().
Definition at line 635 of file qglfunctions.h.
|
inline |
Convenience function that calls glDeleteShader(shader).
For more information, see the OpenGL/ES 2.0 documentation for glDeleteShader().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 645 of file qglfunctions.h.
|
inline |
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 2.0 documentation for glDepthRangef().
Definition at line 655 of file qglfunctions.h.
|
inline |
Convenience function that calls glDetachShader(program, shader).
For more information, see the OpenGL/ES 2.0 documentation for glDetachShader().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 664 of file qglfunctions.h.
|
inline |
Convenience function that calls glDisableVertexAttribArray(index).
For more information, see the OpenGL/ES 2.0 documentation for glDisableVertexAttribArray().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 674 of file qglfunctions.h.
|
inline |
Convenience function that calls glEnableVertexAttribArray(index).
For more information, see the OpenGL/ES 2.0 documentation for glEnableVertexAttribArray().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 684 of file qglfunctions.h.
|
inline |
Convenience function that calls glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer).
For more information, see the OpenGL/ES 2.0 documentation for glFramebufferRenderbuffer().
Definition at line 694 of file qglfunctions.h.
|
inline |
Convenience function that calls glFramebufferTexture2D(target, attachment, textarget, texture, level).
For more information, see the OpenGL/ES 2.0 documentation for glFramebufferTexture2D().
Definition at line 704 of file qglfunctions.h.
|
inline |
Convenience function that calls glGenBuffers(n, buffers).
For more information, see the OpenGL/ES 2.0 documentation for glGenBuffers().
Definition at line 714 of file qglfunctions.h.
|
inline |
Convenience function that calls glGenerateMipmap(target).
For more information, see the OpenGL/ES 2.0 documentation for glGenerateMipmap().
Definition at line 724 of file qglfunctions.h.
|
inline |
Convenience function that calls glGenFramebuffers(n, framebuffers).
For more information, see the OpenGL/ES 2.0 documentation for glGenFramebuffers().
Definition at line 734 of file qglfunctions.h.
|
inline |
Convenience function that calls glGenRenderbuffers(n, renderbuffers).
For more information, see the OpenGL/ES 2.0 documentation for glGenRenderbuffers().
Definition at line 744 of file qglfunctions.h.
|
inline |
Convenience function that calls glGetActiveAttrib(program, index, bufsize, length, size, type, name).
For more information, see the OpenGL/ES 2.0 documentation for glGetActiveAttrib().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 754 of file qglfunctions.h.
|
inline |
Convenience function that calls glGetActiveUniform(program, index, bufsize, length, size, type, name).
For more information, see the OpenGL/ES 2.0 documentation for glGetActiveUniform().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 764 of file qglfunctions.h.
|
inline |
Convenience function that calls glGetAttachedShaders(program, maxcount, count, shaders).
For more information, see the OpenGL/ES 2.0 documentation for glGetAttachedShaders().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 774 of file qglfunctions.h.
|
inline |
Convenience function that calls glGetAttribLocation(program, name).
For more information, see the OpenGL/ES 2.0 documentation for glGetAttribLocation().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 784 of file qglfunctions.h.
Convenience function that calls glGetBufferParameteriv(target, pname, params).
For more information, see the OpenGL/ES 2.0 documentation for glGetBufferParameteriv().
Definition at line 794 of file qglfunctions.h.
|
inline |
Convenience function that calls glGetFramebufferAttachmentParameteriv(target, attachment, pname, params).
For more information, see the OpenGL/ES 2.0 documentation for glGetFramebufferAttachmentParameteriv().
Definition at line 804 of file qglfunctions.h.
|
inline |
Convenience function that calls glGetProgramInfoLog(program, bufsize, length, infolog).
For more information, see the OpenGL/ES 2.0 documentation for glGetProgramInfoLog().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 824 of file qglfunctions.h.
Convenience function that calls glGetProgramiv(program, pname, params).
For more information, see the OpenGL/ES 2.0 documentation for glGetProgramiv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 814 of file qglfunctions.h.
|
inline |
Convenience function that calls glGetRenderbufferParameteriv(target, pname, params).
For more information, see the OpenGL/ES 2.0 documentation for glGetRenderbufferParameteriv().
Definition at line 834 of file qglfunctions.h.
|
inline |
Convenience function that calls glGetShaderInfoLog(shader, bufsize, length, infolog).
For more information, see the OpenGL/ES 2.0 documentation for glGetShaderInfoLog().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 854 of file qglfunctions.h.
Convenience function that calls glGetShaderiv(shader, pname, params).
For more information, see the OpenGL/ES 2.0 documentation for glGetShaderiv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 844 of file qglfunctions.h.
|
inline |
Convenience function that calls glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision).
For more information, see the OpenGL/ES 2.0 documentation for glGetShaderPrecisionFormat().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 864 of file qglfunctions.h.
|
inline |
Convenience function that calls glGetShaderSource(shader, bufsize, length, source).
For more information, see the OpenGL/ES 2.0 documentation for glGetShaderSource().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 874 of file qglfunctions.h.
|
inline |
Convenience function that calls glGetUniformfv(program, location, params).
For more information, see the OpenGL/ES 2.0 documentation for glGetUniformfv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 884 of file qglfunctions.h.
Convenience function that calls glGetUniformiv(program, location, params).
For more information, see the OpenGL/ES 2.0 documentation for glGetUniformiv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 894 of file qglfunctions.h.
|
inline |
Convenience function that calls glGetUniformLocation(program, name).
For more information, see the OpenGL/ES 2.0 documentation for glGetUniformLocation().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 904 of file qglfunctions.h.
|
inline |
Convenience function that calls glGetVertexAttribfv(index, pname, params).
For more information, see the OpenGL/ES 2.0 documentation for glGetVertexAttribfv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 914 of file qglfunctions.h.
Convenience function that calls glGetVertexAttribiv(index, pname, params).
For more information, see the OpenGL/ES 2.0 documentation for glGetVertexAttribiv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 924 of file qglfunctions.h.
|
inline |
Convenience function that calls glGetVertexAttribPointerv(index, pname, pointer).
For more information, see the OpenGL/ES 2.0 documentation for glGetVertexAttribPointerv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 934 of file qglfunctions.h.
|
inline |
Convenience function that calls glIsBuffer(buffer).
For more information, see the OpenGL/ES 2.0 documentation for glIsBuffer().
Definition at line 944 of file qglfunctions.h.
|
inline |
Convenience function that calls glIsFramebuffer(framebuffer).
For more information, see the OpenGL/ES 2.0 documentation for glIsFramebuffer().
Definition at line 954 of file qglfunctions.h.
|
inline |
Convenience function that calls glIsProgram(program).
For more information, see the OpenGL/ES 2.0 documentation for glIsProgram().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 964 of file qglfunctions.h.
|
inline |
Convenience function that calls glIsRenderbuffer(renderbuffer).
For more information, see the OpenGL/ES 2.0 documentation for glIsRenderbuffer().
Definition at line 974 of file qglfunctions.h.
|
inline |
Convenience function that calls glIsShader(shader).
For more information, see the OpenGL/ES 2.0 documentation for glIsShader().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 984 of file qglfunctions.h.
|
inline |
Convenience function that calls glLinkProgram(program).
For more information, see the OpenGL/ES 2.0 documentation for glLinkProgram().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 994 of file qglfunctions.h.
|
inline |
Convenience function that calls glReleaseShaderCompiler().
For more information, see the OpenGL/ES 2.0 documentation for glReleaseShaderCompiler().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1004 of file qglfunctions.h.
|
inline |
Convenience function that calls glRenderbufferStorage(target, internalformat, width, height).
For more information, see the OpenGL/ES 2.0 documentation for glRenderbufferStorage().
Definition at line 1014 of file qglfunctions.h.
|
inline |
Convenience function that calls glSampleCoverage(value, invert).
For more information, see the OpenGL/ES 2.0 documentation for glSampleCoverage().
Definition at line 1024 of file qglfunctions.h.
|
inline |
Convenience function that calls glShaderBinary(n, shaders, binaryformat, binary, length).
For more information, see the OpenGL/ES 2.0 documentation for glShaderBinary().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1034 of file qglfunctions.h.
|
inline |
Convenience function that calls glShaderSource(shader, count, string, length).
For more information, see the OpenGL/ES 2.0 documentation for glShaderSource().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1044 of file qglfunctions.h.
|
inline |
Convenience function that calls glStencilFuncSeparate(face, func, ref, mask).
For more information, see the OpenGL/ES 2.0 documentation for glStencilFuncSeparate().
Definition at line 1054 of file qglfunctions.h.
|
inline |
Convenience function that calls glStencilMaskSeparate(face, mask).
For more information, see the OpenGL/ES 2.0 documentation for glStencilMaskSeparate().
Definition at line 1064 of file qglfunctions.h.
|
inline |
Convenience function that calls glStencilOpSeparate(face, fail, zfail, zpass).
For more information, see the OpenGL/ES 2.0 documentation for glStencilOpSeparate().
Definition at line 1074 of file qglfunctions.h.
|
inline |
Convenience function that calls glUniform1f(location, x).
For more information, see the OpenGL/ES 2.0 documentation for glUniform1f().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1084 of file qglfunctions.h.
Convenience function that calls glUniform1fv(location, count, v).
For more information, see the OpenGL/ES 2.0 documentation for glUniform1fv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1094 of file qglfunctions.h.
Convenience function that calls glUniform1i(location, x).
For more information, see the OpenGL/ES 2.0 documentation for glUniform1i().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1104 of file qglfunctions.h.
Convenience function that calls glUniform1iv(location, count, v).
For more information, see the OpenGL/ES 2.0 documentation for glUniform1iv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1114 of file qglfunctions.h.
|
inline |
Convenience function that calls glUniform2f(location, x, y).
For more information, see the OpenGL/ES 2.0 documentation for glUniform2f().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1124 of file qglfunctions.h.
Convenience function that calls glUniform2fv(location, count, v).
For more information, see the OpenGL/ES 2.0 documentation for glUniform2fv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1134 of file qglfunctions.h.
Convenience function that calls glUniform2i(location, x, y).
For more information, see the OpenGL/ES 2.0 documentation for glUniform2i().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1144 of file qglfunctions.h.
Convenience function that calls glUniform2iv(location, count, v).
For more information, see the OpenGL/ES 2.0 documentation for glUniform2iv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1154 of file qglfunctions.h.
|
inline |
Convenience function that calls glUniform3f(location, x, y, z).
For more information, see the OpenGL/ES 2.0 documentation for glUniform3f().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1164 of file qglfunctions.h.
Convenience function that calls glUniform3fv(location, count, v).
For more information, see the OpenGL/ES 2.0 documentation for glUniform3fv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1174 of file qglfunctions.h.
Convenience function that calls glUniform3i(location, x, y, z).
For more information, see the OpenGL/ES 2.0 documentation for glUniform3i().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1184 of file qglfunctions.h.
Convenience function that calls glUniform3iv(location, count, v).
For more information, see the OpenGL/ES 2.0 documentation for glUniform3iv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1194 of file qglfunctions.h.
|
inline |
Convenience function that calls glUniform4f(location, x, y, z, w).
For more information, see the OpenGL/ES 2.0 documentation for glUniform4f().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1204 of file qglfunctions.h.
Convenience function that calls glUniform4fv(location, count, v).
For more information, see the OpenGL/ES 2.0 documentation for glUniform4fv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1214 of file qglfunctions.h.
Convenience function that calls glUniform4i(location, x, y, z, w).
For more information, see the OpenGL/ES 2.0 documentation for glUniform4i().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1224 of file qglfunctions.h.
Convenience function that calls glUniform4iv(location, count, v).
For more information, see the OpenGL/ES 2.0 documentation for glUniform4iv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1234 of file qglfunctions.h.
|
inline |
Convenience function that calls glUniformMatrix2fv(location, count, transpose, value).
For more information, see the OpenGL/ES 2.0 documentation for glUniformMatrix2fv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1244 of file qglfunctions.h.
|
inline |
Convenience function that calls glUniformMatrix3fv(location, count, transpose, value).
For more information, see the OpenGL/ES 2.0 documentation for glUniformMatrix3fv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1254 of file qglfunctions.h.
|
inline |
Convenience function that calls glUniformMatrix4fv(location, count, transpose, value).
For more information, see the OpenGL/ES 2.0 documentation for glUniformMatrix4fv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1264 of file qglfunctions.h.
|
inline |
Convenience function that calls glUseProgram(program).
For more information, see the OpenGL/ES 2.0 documentation for glUseProgram().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1274 of file qglfunctions.h.
|
inline |
Convenience function that calls glValidateProgram(program).
For more information, see the OpenGL/ES 2.0 documentation for glValidateProgram().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1284 of file qglfunctions.h.
|
inline |
Convenience function that calls glVertexAttrib1f(indx, x).
For more information, see the OpenGL/ES 2.0 documentation for glVertexAttrib1f().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1294 of file qglfunctions.h.
|
inline |
Convenience function that calls glVertexAttrib1fv(indx, values).
For more information, see the OpenGL/ES 2.0 documentation for glVertexAttrib1fv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1304 of file qglfunctions.h.
|
inline |
Convenience function that calls glVertexAttrib2f(indx, x, y).
For more information, see the OpenGL/ES 2.0 documentation for glVertexAttrib2f().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1314 of file qglfunctions.h.
|
inline |
Convenience function that calls glVertexAttrib2fv(indx, values).
For more information, see the OpenGL/ES 2.0 documentation for glVertexAttrib2fv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1324 of file qglfunctions.h.
|
inline |
Convenience function that calls glVertexAttrib3f(indx, x, y, z).
For more information, see the OpenGL/ES 2.0 documentation for glVertexAttrib3f().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1334 of file qglfunctions.h.
|
inline |
Convenience function that calls glVertexAttrib3fv(indx, values).
For more information, see the OpenGL/ES 2.0 documentation for glVertexAttrib3fv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1344 of file qglfunctions.h.
|
inline |
Convenience function that calls glVertexAttrib4f(indx, x, y, z, w).
For more information, see the OpenGL/ES 2.0 documentation for glVertexAttrib4f().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1354 of file qglfunctions.h.
|
inline |
Convenience function that calls glVertexAttrib4fv(indx, values).
For more information, see the OpenGL/ES 2.0 documentation for glVertexAttrib4fv().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1364 of file qglfunctions.h.
|
inline |
Convenience function that calls glVertexAttribPointer(indx, size, type, normalized, stride, ptr).
For more information, see the OpenGL/ES 2.0 documentation for glVertexAttribPointer().
This convenience function will do nothing on OpenGL/ES 1.x systems.
Definition at line 1374 of file qglfunctions.h.
bool QGLFunctions::hasOpenGLFeature | ( | QGLFunctions::OpenGLFeature | feature | ) | const |
Returns true if feature is present on this system's OpenGL implementation; false otherwise.
It is assumed that the QGLContext associated with this function resolver is current.
Definition at line 340 of file qglfunctions.cpp.
Referenced by QGL2PaintEngineExPrivate::updateBrushTexture().
void QGLFunctions::initializeGLFunctions | ( | const QGLContext * | context = 0 | ) |
Initializes GL function resolution for context.
If context is null, then the current QGLContext will be used.
After calling this function, the QGLFunctions object can only be used with context and other contexts that share with it. Call initializeGLFunctions() again to change the object's context association.
Definition at line 359 of file qglfunctions.cpp.
|
inlinestaticprivate |
Definition at line 308 of file qglfunctions.h.
Referenced by glActiveTexture(), glAttachShader(), glBindAttribLocation(), glBindBuffer(), glBindFramebuffer(), glBindRenderbuffer(), glBlendColor(), glBlendEquation(), glBlendEquationSeparate(), glBlendFuncSeparate(), glBufferData(), glBufferSubData(), glCheckFramebufferStatus(), glCompileShader(), glCompressedTexImage2D(), glCompressedTexSubImage2D(), glCreateProgram(), glCreateShader(), glDeleteBuffers(), glDeleteFramebuffers(), glDeleteProgram(), glDeleteRenderbuffers(), glDeleteShader(), glDetachShader(), glDisableVertexAttribArray(), glEnableVertexAttribArray(), glFramebufferRenderbuffer(), glFramebufferTexture2D(), glGenBuffers(), glGenerateMipmap(), glGenFramebuffers(), glGenRenderbuffers(), glGetActiveAttrib(), glGetActiveUniform(), glGetAttachedShaders(), glGetAttribLocation(), glGetBufferParameteriv(), glGetFramebufferAttachmentParameteriv(), glGetProgramInfoLog(), glGetProgramiv(), glGetRenderbufferParameteriv(), glGetShaderInfoLog(), glGetShaderiv(), glGetShaderPrecisionFormat(), glGetShaderSource(), glGetUniformfv(), glGetUniformiv(), glGetUniformLocation(), glGetVertexAttribfv(), glGetVertexAttribiv(), glGetVertexAttribPointerv(), glIsBuffer(), glIsFramebuffer(), glIsProgram(), glIsRenderbuffer(), glIsShader(), glLinkProgram(), glReleaseShaderCompiler(), glRenderbufferStorage(), glSampleCoverage(), glShaderBinary(), glShaderSource(), glStencilFuncSeparate(), glStencilMaskSeparate(), glStencilOpSeparate(), glUniform1f(), glUniform1fv(), glUniform1i(), glUniform1iv(), glUniform2f(), glUniform2fv(), glUniform2i(), glUniform2iv(), glUniform3f(), glUniform3fv(), glUniform3i(), glUniform3iv(), glUniform4f(), glUniform4fv(), glUniform4i(), glUniform4iv(), glUniformMatrix2fv(), glUniformMatrix3fv(), glUniformMatrix4fv(), glUseProgram(), glValidateProgram(), glVertexAttrib1f(), glVertexAttrib1fv(), glVertexAttrib2f(), glVertexAttrib2fv(), glVertexAttrib3f(), glVertexAttrib3fv(), glVertexAttrib4f(), glVertexAttrib4fv(), and glVertexAttribPointer().
QGLFunctions::OpenGLFeatures QGLFunctions::openGLFeatures | ( | ) | const |
Returns the set of features that are present on this system's OpenGL implementation.
It is assumed that the QGLContext associated with this function resolver is current.
Definition at line 321 of file qglfunctions.cpp.
|
private |
Definition at line 307 of file qglfunctions.h.
Referenced by hasOpenGLFeature(), initializeGLFunctions(), and openGLFeatures().