QOpenGLFunctions Class
The QOpenGLFunctions class provides the OpenGL ES 2.0 API on desktop OpenGL and OpenGL ES alike. More…
| Header | #include <QOpenGLFunctions> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::Gui) |
| Module | Nt GUI C++ Classes |
| Since | 6.0 |
List of all members, including inherited members
Public Types
| enum | OpenGLFeature |
| typedef | OpenGLFeatures |
Public Functions
| QOpenGLFunctions() | |
| QOpenGLFunctions(QOpenGLContext *context) | |
| ~QOpenGLFunctions() | |
| OpenGLFeatures | openGLFeatures() const |
| bool | hasOpenGLFeature(QOpenGLFunctions::OpenGLFeature feature) const |
| void | initializeOpenGLFunctions() |
| void | glActiveTexture(GLenum texture) |
| void | glAttachShader(GLuint program, GLuint shader) |
| void | glBindAttribLocation(GLuint program, GLuint index, const GLchar *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(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) |
| void | glBlendEquation(GLenum mode) |
| void | glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) |
| void | glBlendFunc(GLenum sfactor, GLenum dfactor) |
| void | glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha) |
| void | glBufferData(GLenum target, GLsizeiptr size, const void *data, GLenum usage) |
| void | glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const void *data) |
| GLenum | glCheckFramebufferStatus(GLenum target) |
| void | glClear(GLbitfield mask) |
| void | glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) |
| void | glClearDepthf(GLfloat d) |
| 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(GLfloat n, GLfloat f) |
| 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 void *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, GLchar *name) |
| void | glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name) |
| void | glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders) |
| GLint | glGetAttribLocation(GLuint program, const GLchar *name) |
| void | glGetBooleanv(GLenum pname, GLboolean *data) |
| void | glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params) |
| GLenum | glGetError() |
| void | glGetFloatv(GLenum pname, GLfloat *data) |
| void | glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params) |
| void | glGetIntegerv(GLenum pname, GLint *data) |
| void | glGetProgramiv(GLuint program, GLenum pname, GLint *params) |
| void | glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog) |
| void | glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params) |
| void | glGetShaderiv(GLuint shader, GLenum pname, GLint *params) |
| void | glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog) |
| void | glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision) |
| void | glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *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 GLchar *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, void *pixels) |
| void | glReleaseShaderCompiler() |
| void | glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) |
| void | glSampleCoverage(GLfloat value, GLboolean invert) |
| void | glScissor(GLint x, GLint y, GLsizei width, GLsizei height) |
| void | glShaderBinary(GLsizei count, const GLuint *shaders, GLenum binaryFormat, const void *binary, GLsizei length) |
| void | glShaderSource(GLuint shader, GLsizei count, const GLchar *const *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 sfail, GLenum dpfail, GLenum dppass) |
| void | glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *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 void *pixels) |
| void | glUniform1f(GLint location, GLfloat v0) |
| void | glUniform1fv(GLint location, GLsizei count, const GLfloat *value) |
| void | glUniform1i(GLint location, GLint v0) |
| void | glUniform1iv(GLint location, GLsizei count, const GLint *value) |
| void | glUniform2f(GLint location, GLfloat v0, GLfloat v1) |
| void | glUniform2fv(GLint location, GLsizei count, const GLfloat *value) |
| void | glUniform2i(GLint location, GLint v0, GLint v1) |
| void | glUniform2iv(GLint location, GLsizei count, const GLint *value) |
| void | glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2) |
| void | glUniform3fv(GLint location, GLsizei count, const GLfloat *value) |
| void | glUniform3i(GLint location, GLint v0, GLint v1, GLint v2) |
| void | glUniform3iv(GLint location, GLsizei count, const GLint *value) |
| void | glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) |
| void | glUniform4fv(GLint location, GLsizei count, const GLfloat *value) |
| void | glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3) |
| void | glUniform4iv(GLint location, GLsizei count, const GLint *value) |
| 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 index, GLfloat x) |
| void | glVertexAttrib1fv(GLuint index, const GLfloat *v) |
| void | glVertexAttrib2f(GLuint index, GLfloat x, GLfloat y) |
| void | glVertexAttrib2fv(GLuint index, const GLfloat *v) |
| void | glVertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z) |
| void | glVertexAttrib3fv(GLuint index, const GLfloat *v) |
| void | glVertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w) |
| void | glVertexAttrib4fv(GLuint index, const GLfloat *v) |
| void | glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer) |
| void | glViewport(GLint x, GLint y, GLsizei width, GLsizei height) |
Static Protected Members
| bool | isInitialized(const QOpenGLFunctionsPrivate *d) |
Detailed Description
Each function calls the OpenGL function of the same name in the current context. Get the functions of a context with QOpenGLContext::functions(), or derive from the class and call initializeOpenGLFunctions() once a context is current:
class Renderer : protected QOpenGLFunctions {
public:
void initialize() { initializeOpenGLFunctions(); }
void render() {
glClearColor(0, 0, 0, 1);
glClear(GL_COLOR_BUFFER_BIT);
}
};
The types and constants come from <QtGui/qopengl.h>, which Nt provides: the system's OpenGL headers are not needed.
See also QOpenGLContext.
Differences from Qt
The functions are resolved through EGL. <QtGui/qopengl.h> declares the types and constants of OpenGL ES 3.0 and a few of desktop OpenGL rather than including the system's headers. On desktop OpenGL before 4.1, glReleaseShaderCompiler() and glShaderBinary() do nothing and glGetShaderPrecisionFormat() reports single precision.
Member Type Documentation
enum QOpenGLFunctions::OpenGLFeature
This enum describes the features of OpenGL ES 2.0 that a context may have.
| Constant | Description |
|---|---|
QOpenGLFunctions::Multitexture | glActiveTexture() is available. |
QOpenGLFunctions::Shaders | Shader functions are available. |
QOpenGLFunctions::Buffers | Vertex and index buffer functions are available. |
QOpenGLFunctions::Framebuffers | Framebuffer object functions are available. |
QOpenGLFunctions::BlendColor | glBlendColor() is available. |
QOpenGLFunctions::BlendEquation | glBlendEquation() is available. |
QOpenGLFunctions::BlendEquationSeparate | glBlendEquationSeparate() is available. |
QOpenGLFunctions::BlendFuncSeparate | glBlendFuncSeparate() is available. |
QOpenGLFunctions::BlendSubtract | Blend subtraction is available. |
QOpenGLFunctions::CompressedTextures | Compressed texture functions are available. |
QOpenGLFunctions::Multisample | glSampleCoverage() is available. |
QOpenGLFunctions::StencilSeparate | Separate stencil functions are available. |
QOpenGLFunctions::NPOTTextures | Textures whose sizes are not powers of two are available. |
QOpenGLFunctions::NPOTTextureRepeat | Such textures can also repeat. |
QOpenGLFunctions::FixedFunctionPipeline | The fixed function pipeline is available. |
QOpenGLFunctions::TextureRGFormats | The GL_RED and GL_RG texture formats are available. |
QOpenGLFunctions::MultipleRenderTargets | Framebuffer objects can have several color attachments. |
QOpenGLFunctions::BlendEquationAdvanced | The advanced blend equations are available. |
typedef QOpenGLFunctions::OpenGLFeatures
The OpenGLFeatures type is a typedef for QFlags<OpenGLFeature>. It stores an OR combination of OpenGLFeature values.
Member Function Documentation
QOpenGLFunctions::QOpenGLFunctions()
Constructs a function object that is not initialized yet. Call initializeOpenGLFunctions() when a context is current.
QOpenGLFunctions::QOpenGLFunctions(QOpenGLContext *context)
Constructs a function object for context, which must have been created.
QOpenGLFunctions::~QOpenGLFunctions()
Destroys the function object.
void QOpenGLFunctions::glActiveTexture(GLenum texture)
Calls the OpenGL function glActiveTexture with texture.
void QOpenGLFunctions::glAttachShader(GLuint program, GLuint shader)
Calls the OpenGL function glAttachShader with program and shader.
void QOpenGLFunctions::glBindAttribLocation(GLuint program, GLuint index, const GLchar *name)
Calls the OpenGL function glBindAttribLocation with program, index and name.
void QOpenGLFunctions::glBindBuffer(GLenum target, GLuint buffer)
Calls the OpenGL function glBindBuffer with target and buffer.
void QOpenGLFunctions::glBindFramebuffer(GLenum target, GLuint framebuffer)
Calls the OpenGL function glBindFramebuffer with target and framebuffer.
void QOpenGLFunctions::glBindRenderbuffer(GLenum target, GLuint renderbuffer)
Calls the OpenGL function glBindRenderbuffer with target and renderbuffer.
void QOpenGLFunctions::glBindTexture(GLenum target, GLuint texture)
Calls the OpenGL function glBindTexture with target and texture.
void QOpenGLFunctions::glBlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
Calls the OpenGL function glBlendColor with red, green, blue and alpha.
void QOpenGLFunctions::glBlendEquation(GLenum mode)
Calls the OpenGL function glBlendEquation with mode.
void QOpenGLFunctions::glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
Calls the OpenGL function glBlendEquationSeparate with modeRGB and modeAlpha.
void QOpenGLFunctions::glBlendFunc(GLenum sfactor, GLenum dfactor)
Calls the OpenGL function glBlendFunc with sfactor and dfactor.
void QOpenGLFunctions::glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha)
Calls the OpenGL function glBlendFuncSeparate with sfactorRGB, dfactorRGB, sfactorAlpha and dfactorAlpha.
void QOpenGLFunctions::glBufferData(GLenum target, GLsizeiptr size, const void *data, GLenum usage)
Calls the OpenGL function glBufferData with target, size, data and usage.
void QOpenGLFunctions::glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const void *data)
Calls the OpenGL function glBufferSubData with target, offset, size and data.
GLenum QOpenGLFunctions::glCheckFramebufferStatus(GLenum target)
Returns what the OpenGL function glCheckFramebufferStatus returns when it is called with target.
void QOpenGLFunctions::glClear(GLbitfield mask)
Calls the OpenGL function glClear with mask.
void QOpenGLFunctions::glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
Calls the OpenGL function glClearColor with red, green, blue and alpha.
void QOpenGLFunctions::glClearDepthf(GLfloat d)
Calls the OpenGL function glClearDepthf with d.
void QOpenGLFunctions::glClearStencil(GLint s)
Calls the OpenGL function glClearStencil with s.
void QOpenGLFunctions::glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
Calls the OpenGL function glColorMask with red, green, blue and alpha.
void QOpenGLFunctions::glCompileShader(GLuint shader)
Calls the OpenGL function glCompileShader with shader.
void QOpenGLFunctions::glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data)
Calls the OpenGL function glCompressedTexImage2D with target, level, internalformat, width, height, border, imageSize and data.
void QOpenGLFunctions::glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data)
Calls the OpenGL function glCompressedTexSubImage2D with target, level, xoffset, yoffset, width, height, format, imageSize and data.
void QOpenGLFunctions::glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
Calls the OpenGL function glCopyTexImage2D with target, level, internalformat, x, y, width, height and border.
void QOpenGLFunctions::glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
Calls the OpenGL function glCopyTexSubImage2D with target, level, xoffset, yoffset, x, y, width and height.
GLuint QOpenGLFunctions::glCreateProgram()
Returns what the OpenGL function glCreateProgram returns when it is called.
GLuint QOpenGLFunctions::glCreateShader(GLenum type)
Returns what the OpenGL function glCreateShader returns when it is called with type.
void QOpenGLFunctions::glCullFace(GLenum mode)
Calls the OpenGL function glCullFace with mode.
void QOpenGLFunctions::glDeleteBuffers(GLsizei n, const GLuint *buffers)
Calls the OpenGL function glDeleteBuffers with n and buffers.
void QOpenGLFunctions::glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers)
Calls the OpenGL function glDeleteFramebuffers with n and framebuffers.
void QOpenGLFunctions::glDeleteProgram(GLuint program)
Calls the OpenGL function glDeleteProgram with program.
void QOpenGLFunctions::glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers)
Calls the OpenGL function glDeleteRenderbuffers with n and renderbuffers.
void QOpenGLFunctions::glDeleteShader(GLuint shader)
Calls the OpenGL function glDeleteShader with shader.
void QOpenGLFunctions::glDeleteTextures(GLsizei n, const GLuint *textures)
Calls the OpenGL function glDeleteTextures with n and textures.
void QOpenGLFunctions::glDepthFunc(GLenum func)
Calls the OpenGL function glDepthFunc with func.
void QOpenGLFunctions::glDepthMask(GLboolean flag)
Calls the OpenGL function glDepthMask with flag.
void QOpenGLFunctions::glDepthRangef(GLfloat n, GLfloat f)
Calls the OpenGL function glDepthRangef with n and f.
void QOpenGLFunctions::glDetachShader(GLuint program, GLuint shader)
Calls the OpenGL function glDetachShader with program and shader.
void QOpenGLFunctions::glDisable(GLenum cap)
Calls the OpenGL function glDisable with cap.
void QOpenGLFunctions::glDisableVertexAttribArray(GLuint index)
Calls the OpenGL function glDisableVertexAttribArray with index.
void QOpenGLFunctions::glDrawArrays(GLenum mode, GLint first, GLsizei count)
Calls the OpenGL function glDrawArrays with mode, first and count.
void QOpenGLFunctions::glDrawElements(GLenum mode, GLsizei count, GLenum type, const void *indices)
Calls the OpenGL function glDrawElements with mode, count, type and indices.
void QOpenGLFunctions::glEnable(GLenum cap)
Calls the OpenGL function glEnable with cap.
void QOpenGLFunctions::glEnableVertexAttribArray(GLuint index)
Calls the OpenGL function glEnableVertexAttribArray with index.
void QOpenGLFunctions::glFinish()
Calls the OpenGL function glFinish.
void QOpenGLFunctions::glFlush()
Calls the OpenGL function glFlush.
void QOpenGLFunctions::glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
Calls the OpenGL function glFramebufferRenderbuffer with target, attachment, renderbuffertarget and renderbuffer.
void QOpenGLFunctions::glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
Calls the OpenGL function glFramebufferTexture2D with target, attachment, textarget, texture and level.
void QOpenGLFunctions::glFrontFace(GLenum mode)
Calls the OpenGL function glFrontFace with mode.
void QOpenGLFunctions::glGenBuffers(GLsizei n, GLuint *buffers)
Calls the OpenGL function glGenBuffers with n and buffers.
void QOpenGLFunctions::glGenerateMipmap(GLenum target)
Calls the OpenGL function glGenerateMipmap with target.
void QOpenGLFunctions::glGenFramebuffers(GLsizei n, GLuint *framebuffers)
Calls the OpenGL function glGenFramebuffers with n and framebuffers.
void QOpenGLFunctions::glGenRenderbuffers(GLsizei n, GLuint *renderbuffers)
Calls the OpenGL function glGenRenderbuffers with n and renderbuffers.
void QOpenGLFunctions::glGenTextures(GLsizei n, GLuint *textures)
Calls the OpenGL function glGenTextures with n and textures.
void QOpenGLFunctions::glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)
Calls the OpenGL function glGetActiveAttrib with program, index, bufSize, length, size, type and name.
void QOpenGLFunctions::glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)
Calls the OpenGL function glGetActiveUniform with program, index, bufSize, length, size, type and name.
void QOpenGLFunctions::glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders)
Calls the OpenGL function glGetAttachedShaders with program, maxCount, count and shaders.
GLint QOpenGLFunctions::glGetAttribLocation(GLuint program, const GLchar *name)
Returns what the OpenGL function glGetAttribLocation returns when it is called with program and name.
void QOpenGLFunctions::glGetBooleanv(GLenum pname, GLboolean *data)
Calls the OpenGL function glGetBooleanv with pname and data.
void QOpenGLFunctions::glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params)
Calls the OpenGL function glGetBufferParameteriv with target, pname and params.
GLenum QOpenGLFunctions::glGetError()
Returns what the OpenGL function glGetError returns when it is called.
void QOpenGLFunctions::glGetFloatv(GLenum pname, GLfloat *data)
Calls the OpenGL function glGetFloatv with pname and data.
void QOpenGLFunctions::glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params)
Calls the OpenGL function glGetFramebufferAttachmentParameteriv with target, attachment, pname and params.
void QOpenGLFunctions::glGetIntegerv(GLenum pname, GLint *data)
Calls the OpenGL function glGetIntegerv with pname and data.
void QOpenGLFunctions::glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog)
Calls the OpenGL function glGetProgramInfoLog with program, bufSize, length and infoLog.
void QOpenGLFunctions::glGetProgramiv(GLuint program, GLenum pname, GLint *params)
Calls the OpenGL function glGetProgramiv with program, pname and params.
void QOpenGLFunctions::glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params)
Calls the OpenGL function glGetRenderbufferParameteriv with target, pname and params.
void QOpenGLFunctions::glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog)
Calls the OpenGL function glGetShaderInfoLog with shader, bufSize, length and infoLog.
void QOpenGLFunctions::glGetShaderiv(GLuint shader, GLenum pname, GLint *params)
Calls the OpenGL function glGetShaderiv with shader, pname and params.
void QOpenGLFunctions::glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)
Calls the OpenGL function glGetShaderPrecisionFormat with shadertype, precisiontype, range and precision.
void QOpenGLFunctions::glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source)
Calls the OpenGL function glGetShaderSource with shader, bufSize, length and source.
const GLubyte * QOpenGLFunctions::glGetString(GLenum name)
Returns what the OpenGL function glGetString returns when it is called with name.
void QOpenGLFunctions::glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
Calls the OpenGL function glGetTexParameterfv with target, pname and params.
void QOpenGLFunctions::glGetTexParameteriv(GLenum target, GLenum pname, GLint *params)
Calls the OpenGL function glGetTexParameteriv with target, pname and params.
void QOpenGLFunctions::glGetUniformfv(GLuint program, GLint location, GLfloat *params)
Calls the OpenGL function glGetUniformfv with program, location and params.
void QOpenGLFunctions::glGetUniformiv(GLuint program, GLint location, GLint *params)
Calls the OpenGL function glGetUniformiv with program, location and params.
GLint QOpenGLFunctions::glGetUniformLocation(GLuint program, const GLchar *name)
Returns what the OpenGL function glGetUniformLocation returns when it is called with program and name.
void QOpenGLFunctions::glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params)
Calls the OpenGL function glGetVertexAttribfv with index, pname and params.
void QOpenGLFunctions::glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params)
Calls the OpenGL function glGetVertexAttribiv with index, pname and params.
void QOpenGLFunctions::glGetVertexAttribPointerv(GLuint index, GLenum pname, void **pointer)
Calls the OpenGL function glGetVertexAttribPointerv with index, pname and pointer.
void QOpenGLFunctions::glHint(GLenum target, GLenum mode)
Calls the OpenGL function glHint with target and mode.
GLboolean QOpenGLFunctions::glIsBuffer(GLuint buffer)
Returns what the OpenGL function glIsBuffer returns when it is called with buffer.
GLboolean QOpenGLFunctions::glIsEnabled(GLenum cap)
Returns what the OpenGL function glIsEnabled returns when it is called with cap.
GLboolean QOpenGLFunctions::glIsFramebuffer(GLuint framebuffer)
Returns what the OpenGL function glIsFramebuffer returns when it is called with framebuffer.
GLboolean QOpenGLFunctions::glIsProgram(GLuint program)
Returns what the OpenGL function glIsProgram returns when it is called with program.
GLboolean QOpenGLFunctions::glIsRenderbuffer(GLuint renderbuffer)
Returns what the OpenGL function glIsRenderbuffer returns when it is called with renderbuffer.
GLboolean QOpenGLFunctions::glIsShader(GLuint shader)
Returns what the OpenGL function glIsShader returns when it is called with shader.
GLboolean QOpenGLFunctions::glIsTexture(GLuint texture)
Returns what the OpenGL function glIsTexture returns when it is called with texture.
void QOpenGLFunctions::glLineWidth(GLfloat width)
Calls the OpenGL function glLineWidth with width.
void QOpenGLFunctions::glLinkProgram(GLuint program)
Calls the OpenGL function glLinkProgram with program.
void QOpenGLFunctions::glPixelStorei(GLenum pname, GLint param)
Calls the OpenGL function glPixelStorei with pname and param.
void QOpenGLFunctions::glPolygonOffset(GLfloat factor, GLfloat units)
Calls the OpenGL function glPolygonOffset with factor and units.
void QOpenGLFunctions::glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels)
Calls the OpenGL function glReadPixels with x, y, width, height, format, type and pixels.
void QOpenGLFunctions::glReleaseShaderCompiler()
Calls the OpenGL function glReleaseShaderCompiler.
void QOpenGLFunctions::glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
Calls the OpenGL function glRenderbufferStorage with target, internalformat, width and height.
void QOpenGLFunctions::glSampleCoverage(GLfloat value, GLboolean invert)
Calls the OpenGL function glSampleCoverage with value and invert.
void QOpenGLFunctions::glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
Calls the OpenGL function glScissor with x, y, width and height.
void QOpenGLFunctions::glShaderBinary(GLsizei count, const GLuint *shaders, GLenum binaryFormat, const void *binary, GLsizei length)
Calls the OpenGL function glShaderBinary with count, shaders, binaryFormat, binary and length.
void QOpenGLFunctions::glShaderSource(GLuint shader, GLsizei count, const GLchar *const *string, const GLint *length)
Calls the OpenGL function glShaderSource with shader, count, string and length.
void QOpenGLFunctions::glStencilFunc(GLenum func, GLint ref, GLuint mask)
Calls the OpenGL function glStencilFunc with func, ref and mask.
void QOpenGLFunctions::glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
Calls the OpenGL function glStencilFuncSeparate with face, func, ref and mask.
void QOpenGLFunctions::glStencilMask(GLuint mask)
Calls the OpenGL function glStencilMask with mask.
void QOpenGLFunctions::glStencilMaskSeparate(GLenum face, GLuint mask)
Calls the OpenGL function glStencilMaskSeparate with face and mask.
void QOpenGLFunctions::glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
Calls the OpenGL function glStencilOp with fail, zfail and zpass.
void QOpenGLFunctions::glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass)
Calls the OpenGL function glStencilOpSeparate with face, sfail, dpfail and dppass.
void QOpenGLFunctions::glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels)
Calls the OpenGL function glTexImage2D with target, level, internalformat, width, height, border, format, type and pixels.
void QOpenGLFunctions::glTexParameterf(GLenum target, GLenum pname, GLfloat param)
Calls the OpenGL function glTexParameterf with target, pname and param.
void QOpenGLFunctions::glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
Calls the OpenGL function glTexParameterfv with target, pname and params.
void QOpenGLFunctions::glTexParameteri(GLenum target, GLenum pname, GLint param)
Calls the OpenGL function glTexParameteri with target, pname and param.
void QOpenGLFunctions::glTexParameteriv(GLenum target, GLenum pname, const GLint *params)
Calls the OpenGL function glTexParameteriv with target, pname and params.
void QOpenGLFunctions::glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels)
Calls the OpenGL function glTexSubImage2D with target, level, xoffset, yoffset, width, height, format, type and pixels.
void QOpenGLFunctions::glUniform1f(GLint location, GLfloat v0)
Calls the OpenGL function glUniform1f with location and v0.
void QOpenGLFunctions::glUniform1fv(GLint location, GLsizei count, const GLfloat *value)
Calls the OpenGL function glUniform1fv with location, count and value.
void QOpenGLFunctions::glUniform1i(GLint location, GLint v0)
Calls the OpenGL function glUniform1i with location and v0.
void QOpenGLFunctions::glUniform1iv(GLint location, GLsizei count, const GLint *value)
Calls the OpenGL function glUniform1iv with location, count and value.
void QOpenGLFunctions::glUniform2f(GLint location, GLfloat v0, GLfloat v1)
Calls the OpenGL function glUniform2f with location, v0 and v1.
void QOpenGLFunctions::glUniform2fv(GLint location, GLsizei count, const GLfloat *value)
Calls the OpenGL function glUniform2fv with location, count and value.
void QOpenGLFunctions::glUniform2i(GLint location, GLint v0, GLint v1)
Calls the OpenGL function glUniform2i with location, v0 and v1.
void QOpenGLFunctions::glUniform2iv(GLint location, GLsizei count, const GLint *value)
Calls the OpenGL function glUniform2iv with location, count and value.
void QOpenGLFunctions::glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
Calls the OpenGL function glUniform3f with location, v0, v1 and v2.
void QOpenGLFunctions::glUniform3fv(GLint location, GLsizei count, const GLfloat *value)
Calls the OpenGL function glUniform3fv with location, count and value.
void QOpenGLFunctions::glUniform3i(GLint location, GLint v0, GLint v1, GLint v2)
Calls the OpenGL function glUniform3i with location, v0, v1 and v2.
void QOpenGLFunctions::glUniform3iv(GLint location, GLsizei count, const GLint *value)
Calls the OpenGL function glUniform3iv with location, count and value.
void QOpenGLFunctions::glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
Calls the OpenGL function glUniform4f with location, v0, v1, v2 and v3.
void QOpenGLFunctions::glUniform4fv(GLint location, GLsizei count, const GLfloat *value)
Calls the OpenGL function glUniform4fv with location, count and value.
void QOpenGLFunctions::glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3)
Calls the OpenGL function glUniform4i with location, v0, v1, v2 and v3.
void QOpenGLFunctions::glUniform4iv(GLint location, GLsizei count, const GLint *value)
Calls the OpenGL function glUniform4iv with location, count and value.
void QOpenGLFunctions::glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
Calls the OpenGL function glUniformMatrix2fv with location, count, transpose and value.
void QOpenGLFunctions::glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
Calls the OpenGL function glUniformMatrix3fv with location, count, transpose and value.
void QOpenGLFunctions::glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
Calls the OpenGL function glUniformMatrix4fv with location, count, transpose and value.
void QOpenGLFunctions::glUseProgram(GLuint program)
Calls the OpenGL function glUseProgram with program.
void QOpenGLFunctions::glValidateProgram(GLuint program)
Calls the OpenGL function glValidateProgram with program.
void QOpenGLFunctions::glVertexAttrib1f(GLuint index, GLfloat x)
Calls the OpenGL function glVertexAttrib1f with index and x.
void QOpenGLFunctions::glVertexAttrib1fv(GLuint index, const GLfloat *v)
Calls the OpenGL function glVertexAttrib1fv with index and v.
void QOpenGLFunctions::glVertexAttrib2f(GLuint index, GLfloat x, GLfloat y)
Calls the OpenGL function glVertexAttrib2f with index, x and y.
void QOpenGLFunctions::glVertexAttrib2fv(GLuint index, const GLfloat *v)
Calls the OpenGL function glVertexAttrib2fv with index and v.
void QOpenGLFunctions::glVertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z)
Calls the OpenGL function glVertexAttrib3f with index, x, y and z.
void QOpenGLFunctions::glVertexAttrib3fv(GLuint index, const GLfloat *v)
Calls the OpenGL function glVertexAttrib3fv with index and v.
void QOpenGLFunctions::glVertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
Calls the OpenGL function glVertexAttrib4f with index, x, y, z and w.
void QOpenGLFunctions::glVertexAttrib4fv(GLuint index, const GLfloat *v)
Calls the OpenGL function glVertexAttrib4fv with index and v.
void QOpenGLFunctions::glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer)
Calls the OpenGL function glVertexAttribPointer with index, size, type, normalized, stride and pointer.
void QOpenGLFunctions::glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
Calls the OpenGL function glViewport with x, y, width and height.
bool QOpenGLFunctions::hasOpenGLFeature(QOpenGLFunctions::OpenGLFeature feature) const
Returns true if the current context has feature.
See also openGLFeatures().
void QOpenGLFunctions::initializeOpenGLFunctions()
Initializes the functions for the current context.
bool QOpenGLFunctions::isInitialized(const QOpenGLFunctionsPrivate *d)
Returns true if d has been initialized.
OpenGLFeatures QOpenGLFunctions::openGLFeatures() const
Returns the features of the current context.
See also hasOpenGLFeature().