QOpenGLFunctions Class
La classe QOpenGLFunctions fournit un accès multiplateforme à l'API OpenGL ES 2.0. Plus d'informations...
| En-tête : | #include <QOpenGLFunctions> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS Gui)target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake : | QT += gui |
| Inherited By : |
- Liste de tous les membres, y compris les membres hérités
- QOpenGLFunctions fait partie de Rendu en 3D.
Types publics
| enum | OpenGLFeature { Multitexture, Shaders, Buffers, Framebuffers, BlendColor, …, MultipleRenderTargets } |
| flags | OpenGLFeatures |
Fonctions publiques
| QOpenGLFunctions() | |
| QOpenGLFunctions(QOpenGLContext *contexte) | |
| ~QOpenGLFunctions() | |
| void | glActiveTexture(GLenum texture) |
| void | glAttachShader(GLuint programme, GLuint shader) |
| void (programme GLuint, index GLuint, const char *nom) | glBindAttribLocation(GLuint program, GLuint index, const char *name) |
| void | glBindBuffer(GLenum target, GLuint buffer) |
| void (GLenum target, GLuint buffer) | glBindFramebuffer(GLenum cible, GLuint framebuffer) |
| void (GLenum target, GLuint framebuffer) | glBindRenderbuffer(GLenum target, GLuint renderbuffer) |
| void (GLenum target, GLuint renderbuffer) | glBindTexture(GLenum target, GLuint texture) |
| void (GLenum target, GLuint renderbuffer) | glBlendColor(GLclampf rouge, GLclampf vert, GLclampf bleu, GLclampf alpha) |
| void | glBlendEquation(GLenum mode) |
| void | glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) |
| void | glBlendFunc(GLenum sfactor, GLenum dfactor) |
| void | glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) |
| void | glBufferData(GLenum target, qopengl_GLsizeiptr size, const void *data, GLenum usage) |
| void | glBufferSubData(GLenum target, qopengl_GLintptr offset, qopengl_GLsizeiptr size, const void *data) |
| GLenum | glCheckFramebufferStatus(GLenum cible) |
| void | glClear( masque GLbitfield) |
| void | glClearColor(GLclampf rouge, GLclampf vert, GLclampf bleu, GLclampf alpha) |
| void | glClearDepthf(GLclampf profondeur) |
| void | glClearStencil(GLint s) |
| void (GLint s) | 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 (GLsizei n, const GLuint *framebuffers) | glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers) |
| void (GLsizei n, const GLuint *framebuffers) | glDeleteProgram(GLuint program) |
| void (GLuint program) | glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers) |
| void (GLsizei n, const GLuint *renderbuffers) | glDeleteShader(GLuint shader) |
| void (GLsizei n, const GLuint *renderbuffers) | glDeleteTextures(GLsizei n, const GLuint *textures) |
| void | glDepthFunc(GLenum func) |
| void | glDepthMask(GLboolean flag) |
| void | glDepthRangef(GLclampf zNear, GLclampf zFar) |
| void | glDetachShader(GLuint program, GLuint shader) |
| void | glDisable(GLenum cap) |
| void | glDisableVertexAttribArray(GLuint index) |
| void | glDrawArrays(GLenum mode, GLint first, GLsizei count) |
| void (GLenum mode, GLint first, GLsizei count) | glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) |
| void | glEnable(GLenum cap) |
| void | glEnableVertexAttribArray(GLuint index) |
| void | glFinish() |
| void | glFlush() |
| void | glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) |
| void | glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) |
| void | glFrontFace(GLenum mode) |
| void | glGenBuffers(GLsizei n, GLuint *buffers) |
| void | glGenFramebuffers(GLsizei n, GLuint *framebuffers) |
| void (GLsizei n, GLuint *framebuffers) | glGenRenderbuffers(GLsizei n, GLuint *renderbuffers) |
| void (GLsizei n, GLuint *renderbuffers) | glGenTextures(GLsizei n, GLuint *textures) |
| void (GLsizei n, GLuint *textures) | glGenerateMipmap(GLenum target) |
| void | glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name) |
| void | glGetActiveUniform(GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name) |
| void | glGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders) |
| GLint | glGetAttribLocation( programme GLuint, const char *nom) |
| void | glGetBooleanv(GLenum pname, GLboolean *params) |
| void | glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params) |
| GLenum | glGetError() |
| void (GLenum pname, GLfloat *params) | glGetFloatv(GLenum pname, GLfloat *params) |
| void | glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params) |
| void | glGetIntegerv(GLenum pname, GLint *params) |
| void | glGetProgramInfoLog(GLuint program, GLsizei bufsize, GLsizei *length, char *infolog) |
| void | glGetProgramiv(GLuint program, GLenum pname, GLint *params) |
| void | glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params) |
| void | glGetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei *length, char *infolog) |
| void | glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision) |
| void | glGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei *length, char *source) |
| void | glGetShaderiv(GLuint shader, GLenum pname, GLint *params) |
| const GLubyte * | glGetString(GLenum nom) |
| void | glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params) |
| void | glGetTexParameteriv(GLenum target, GLenum pname, GLint *params) |
| GLint | glGetUniformLocation(GLuint program, const char *name) |
| void | glGetUniformfv(GLuint program, GLint location, GLfloat *params) |
| void | glGetUniformiv(GLuint program, GLint location, GLint *params) |
| void (GLuint program, GLint location, GLint *params) | glGetVertexAttribPointerv(GLuint index, GLenum pname, void **pointer) |
| void (GLuint index, GLenum pname, void **pointer) | glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params) |
| void (GLuint index, GLenum pname, GLfloat *params) | glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params) |
| void (GLuint index, GLenum pname, GLint *params) | glHint(GLenum target, GLenum mode) |
| GLboolean | glIsBuffer(GLuint buffer) |
| GLboolean | glIsEnabled(GLenum cap) |
| GLboolean | glIsFramebuffer(GLuint framebuffer) |
| GLboolean (GLuint framebuffer) | glIsProgram( Programme GLuint) |
| GLboolean | glIsRenderbuffer(GLuint renderbuffer) |
| GLboolean | glIsShader(GLuint shader) |
| GLboolean | glIsTexture(GLuint texture) |
| void | glLineWidth(GLfloat largeur) |
| void | glLinkProgram(GLuint programme) |
| void | glPixelStorei(GLenum pname, GLint param) |
| void | glPolygonOffset(GLfloat factor, GLfloat units) |
| void (GLint x, GLint y, GLsizei width, GLsizei units) | glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels) |
| void | glReleaseShaderCompiler() |
| void | glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) |
| void | glSampleCoverage(GLclampf value, GLboolean invert) |
| void (GLint x, GLint y, GLsizei largeur, GLsizei hauteur) | glScissor(GLint x, GLint y, GLsizei largeur, GLsizei hauteur) |
| void | glShaderBinary(GLint n, const GLuint *shaders, GLenum binaryformat, const void *binary, GLint length) |
| void | glShaderSource(GLuint shader, GLsizei count, const char **string, const GLint *length) |
| void | glStencilFunc(GLenum func, GLint ref, GLuint mask) |
| void | glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) |
| void | glStencilMask(GLuint mask) |
| void | glStencilMaskSeparate(GLenum face, GLuint mask) |
| void | glStencilOp(GLenum fail, GLenum zfail, GLenum zpass) |
| void | glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) |
| void | glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels) |
| void | glTexParameterf(GLenum target, GLenum pname, GLfloat param) |
| void | glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params) |
| void (GLenum target, GLenum pname, const GLfloat *params) | glTexParameteri(GLenum target, GLenum pname, GLint param) |
| void (GLenum target, GLenum pname, const GLint *params) | glTexParameteriv(GLenum target, GLenum pname, const GLint *params) |
| void (GLenum target, GLenum pname, const GLint *params) | glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels) |
| void | glUniform1f(GLint location, GLfloat x) |
| void | glUniform1fv(GLint location, GLsizei count, const GLfloat *v) |
| void (GLint location, GLsizei count, const GLfloat *v) | glUniform1i( emplacement GLint, GLint x) |
| void (GLint location, GLsizei count, const GLfloat *v) | glUniform1iv( emplacement GLint, nombre GLsizei, const GLint *v) |
| void (GLint location, GLsizei count, const GLint *v) | glUniform2f( emplacement GLint, GLfloat x, GLfloat y) |
| void (GLint location, GLfloat x, GLfloat y) | glUniform2fv(GLint location, GLsizei count, const GLfloat *v) |
| void (GLint location, GLsizei count, const GLfloat *v) | glUniform2i( emplacement GLint, GLint x, GLint y) |
| void (GLint location, GLsizei count, const GLfloat *v) | 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 (emplacement GLint, nombre GLsizei, constance GLfloat *v) | glUniform3iv( emplacement GLint, nombre GLsizei, const GLint *v) |
| void (GLint location, GLsizei count, const GLint *v) | glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) |
| void | glUniform4fv(GLint location, GLsizei count, const GLfloat *v) |
| void | glUniform4i( emplacement GLint, GLint x, GLint y, GLint z, GLint w) |
| void (GLint location, GLsizei count, const GLfloat *v) | 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( Programme GLuint) |
| void (GLuint program) | glValidateProgram( programme GLuint) |
| void | glVertexAttrib1f(GLuint indx, GLfloat x) |
| void | glVertexAttrib1fv(GLuint indx, const GLfloat *values) |
| void (GLuint indx, GLfloat x, const GLfloat *values) | glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) |
| void (GLuint indx, const GLfloat x, GLfloat y) | glVertexAttrib2fv(GLuint indx, const GLfloat *values) |
| void (GLuint indx, GLfloat *values) | glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) |
| void | glVertexAttrib3fv(GLuint indx, const GLfloat *values) |
| void | glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) |
| void | glVertexAttrib4fv(GLuint indx, const GLfloat *values) |
| void | glVertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *ptr) |
| void | glViewport(GLint x, GLint y, GLsizei largeur, GLsizei hauteur) |
| bool | hasOpenGLFeature(QOpenGLFunctions::OpenGLFeature feature) const |
| void | initializeOpenGLFunctions() |
| QOpenGLFunctions::OpenGLFeatures | openGLFeatures() const |
Description détaillée
OpenGL ES 2.0 définit un sous-ensemble de la spécification OpenGL qui est commun à de nombreuses implémentations OpenGL de bureau et embarquées. Cependant, il peut être difficile d'utiliser les fonctions de ce sous-ensemble car elles doivent être résolues manuellement sur les systèmes de bureau.
QOpenGLFunctions fournit une API garantie qui est disponible sur tous les systèmes OpenGL et prend en charge la résolution des fonctions sur les systèmes qui en ont besoin. La manière recommandée d'utiliser QOpenGLFunctions est l'héritage direct :
class MyGLWindow : public QWindow, protected QOpenGLFunctions { Q_OBJECT public: explicit MyGLWindow(QScreen *screen = nullptr); protected: void initializeGL(); void paintGL(); QOpenGLContext *m_context; }; MyGLWindow::MyGLWindow(QScreen *screen) : QWindow(screen) { setSurfaceType(OpenGLSurface); create(); // Create an OpenGL context m_context = new QOpenGLContext; m_context->create(); // Setup scene and render it initializeGL(); paintGL(); }; void MyGLWindow::initializeGL() { m_context->makeCurrent(this); initializeOpenGLFunctions(); }
La fonction paintGL() peut alors utiliser n'importe quelle fonction OpenGL ES 2.0 sans résolution explicite, comme glActiveTexture() dans l'exemple suivant :
void MyGLWindow::paintGL() { m_context->makeCurrent(this); glActiveTexture(GL_TEXTURE1); glBindTexture(GL_TEXTURE_2D, textureId); // ... m_context->swapBuffers(this); m_context->doneCurrent(); }
QOpenGLFunctions peut également être utilisé directement pour l'invocation ad-hoc des fonctions OpenGL ES 2.0 sur toutes les plateformes :
QOpenGLFunctions glFuncs(QOpenGLContext::currentContext()); glFuncs.glActiveTexture(GL_TEXTURE1);
Une approche alternative consiste à interroger l'instance QOpenGLFunctions associée au contexte. Cette approche est un peu plus rapide que la précédente car elle évite la création d'une nouvelle instance, mais la différence est assez faible car les structures de données internes sont partagées, et la résolution des fonctions ne se fait qu'une seule fois pour un contexte donné, quel que soit le nombre d'instances QOpenGLFunctions initialisées pour lui.
QOpenGLFunctions *glFuncs = QOpenGLContext::currentContext()->functions(); glFuncs->glActiveTexture(GL_TEXTURE1);
QOpenGLFunctions fournit des enveloppes pour toutes les fonctions OpenGL ES 2.0, y compris le sous-ensemble commun d'OpenGL 1.x et ES 2.0. Bien que de telles fonctions, par exemple glClear() ou glDrawArrays(), puissent être appelées directement, tant que l'application est liée à la bibliothèque OpenGL spécifique à la plate-forme, les appeler via QOpenGLFunctions permet la possibilité de charger dynamiquement l'implémentation OpenGL.
Les fonctions hasOpenGLFeature() et openGLFeatures() peuvent être utilisées pour déterminer si l'implémentation OpenGL possède une fonctionnalité majeure d'OpenGL ES 2.0. Par exemple, la fonction suivante vérifie si des textures non puissance de deux sont disponibles :
QOpenGLFunctions funcs(QOpenGLContext::currentContext()); bool npot = funcs.hasOpenGLFeature(QOpenGLFunctions::NPOTTextures);
Voir aussi QOpenGLContext et QSurfaceFormat.
Documentation des types de membres
enum QOpenGLFunctions::OpenGLFeature
flags QOpenGLFunctions::OpenGLFeatures
Cette énumération définit les caractéristiques d'OpenGL et d'OpenGL ES dont la présence peut dépendre de l'implémentation.
| Constante | Valeur | Description |
|---|---|---|
QOpenGLFunctions::Multitexture | 0x0001 | glActiveTextureLa fonction () est disponible. |
QOpenGLFunctions::Shaders | 0x0002 | Les fonctions de shaders sont disponibles. |
QOpenGLFunctions::Buffers | 0x0004 | Les fonctions des tampons de sommet et d'index sont disponibles. |
QOpenGLFunctions::Framebuffers | 0x0008 | Les fonctions de l'objet Framebuffer sont disponibles. |
QOpenGLFunctions::BlendColor | 0x0010 | glBlendColorLa fonction () est disponible. |
QOpenGLFunctions::BlendEquation | 0x0020 | glBlendEquationLa fonction () est disponible. |
QOpenGLFunctions::BlendEquationSeparate | 0x0040 | glBlendEquationSeparate() est disponible. |
QOpenGLFunctions::BlendEquationAdvanced | 0x20000 | Les équations de fusion avancées sont disponibles. |
QOpenGLFunctions::BlendFuncSeparate | 0x0080 | glBlendFuncSeparate() est disponible. |
QOpenGLFunctions::BlendSubtract | 0x0100 | Le mode de soustraction de mélange est disponible. |
QOpenGLFunctions::CompressedTextures | 0x0200 | Les fonctions de texture compressée sont disponibles. |
QOpenGLFunctions::Multisample | 0x0400 | glSampleCoverageLa fonction () est disponible. |
QOpenGLFunctions::StencilSeparate | 0x0800 | Des fonctions de pochoir séparées sont disponibles. |
QOpenGLFunctions::NPOTTextures | 0x1000 | Les textures non puissance de deux sont disponibles. |
QOpenGLFunctions::NPOTTextureRepeat | 0x2000 | Les textures non puissance deux peuvent utiliser GL_REPEAT comme paramètre d'enveloppement. |
QOpenGLFunctions::FixedFunctionPipeline | 0x4000 | Le pipeline de fonctions fixes est disponible. |
QOpenGLFunctions::TextureRGFormats | 0x8000 | Les formats de texture GL_RED et GL_RG sont disponibles. |
QOpenGLFunctions::MultipleRenderTargets | 0x10000 | Les attachements de couleurs multiples aux objets framebuffer sont disponibles. |
Le type OpenGLFeatures est un typedef pour QFlags<OpenGLFeature>. Il stocke une combinaison OR de valeurs OpenGLFeatures.
Documentation des fonctions membres
QOpenGLFunctions::QOpenGLFunctions()
Construit un résolveur de fonctions par défaut. Le résolveur ne peut pas être utilisé tant que initializeOpenGLFunctions() n'est pas appelé pour spécifier le contexte.
Voir aussi initializeOpenGLFunctions().
[explicit] QOpenGLFunctions::QOpenGLFunctions(QOpenGLContext *context)
Construit un résolveur de fonctions pour context. Si context est nullptr, le résolveur sera créé pour le contexte actuel QOpenGLContext.
Le contexte ou un autre contexte du groupe doit être courant.
Un objet construit de cette manière ne peut être utilisé qu'avec context et d'autres contextes qui partagent avec lui. Utilisez initializeOpenGLFunctions() pour modifier l'association de contexte de l'objet.
Voir aussi initializeOpenGLFunctions().
[noexcept] QOpenGLFunctions::~QOpenGLFunctions()
Détruit ce résolveur de fonctions.
void QOpenGLFunctions::glActiveTexture(GLenum texture)
Fonction de commodité qui appelle glActiveTexture(texture).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glActiveTexture().
void QOpenGLFunctions::glAttachShader(GLuint program, GLuint shader)
Fonction de commodité qui appelle glAttachShader(program, shader).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glAttachShader().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glBindAttribLocation(GLuint program, GLuint index, const char *name)
Fonction de commodité qui appelle glBindAttribLocation(program, index, name).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glBindAttribLocation().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glBindBuffer(GLenum target, GLuint buffer)
Fonction de commodité qui appelle glBindBuffer(target, buffer).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glBindBuffer().
void QOpenGLFunctions::glBindFramebuffer(GLenum target, GLuint framebuffer)
Fonction de commodité qui appelle glBindFramebuffer(target, framebuffer).
Notez que Qt traduira un argument framebuffer de 0 vers l'objet defaultFramebufferObject() de QOpenGLContext actuellement lié.
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glBindFramebuffer().
void QOpenGLFunctions::glBindRenderbuffer(GLenum target, GLuint renderbuffer)
Fonction de commodité qui appelle glBindRenderbuffer(target, renderbuffer).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glBindRenderbuffer().
void QOpenGLFunctions::glBindTexture(GLenum target, GLuint texture)
Fonction de commodité qui appelle glBindTexture(target, texture).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glBindTexture().
void QOpenGLFunctions::glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
Fonction de commodité qui appelle glBlendColor(red, green, blue, alpha).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glBlendColor().
void QOpenGLFunctions::glBlendEquation(GLenum mode)
Fonction de commodité qui appelle glBlendEquation(mode).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glBlendEquation().
void QOpenGLFunctions::glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
Fonction de commodité qui appelle glBlendEquationSeparate(modeRGB, modeAlpha).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glBlendEquationSeparate().
void QOpenGLFunctions::glBlendFunc(GLenum sfactor, GLenum dfactor)
Fonction de commodité qui appelle glBlendFunc(sfactor, dfactor).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glBlendFunc().
void QOpenGLFunctions::glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
Fonction de commodité qui appelle glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glBlendFuncSeparate().
void QOpenGLFunctions::glBufferData(GLenum target, qopengl_GLsizeiptr size, const void *data, GLenum usage)
Fonction de commodité qui appelle glBufferData(target, size, data, usage).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glBufferData().
void QOpenGLFunctions::glBufferSubData(GLenum target, qopengl_GLintptr offset, qopengl_GLsizeiptr size, const void *data)
Fonction de commodité qui appelle glBufferSubData(target, offset, size, data).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glBufferSubData().
GLenum QOpenGLFunctions::glCheckFramebufferStatus(GLenum target)
Fonction de commodité qui appelle glCheckFramebufferStatus(target).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glCheckFramebufferStatus().
void QOpenGLFunctions::glClear(GLbitfield mask)
Fonction de commodité qui appelle glClear(mask).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glClear().
void QOpenGLFunctions::glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
Fonction de commodité qui appelle glClearColor(red, green, blue, alpha).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glClearColor().
void QOpenGLFunctions::glClearDepthf(GLclampf depth)
Fonction de commodité qui appelle glClearDepth(depth) sur les systèmes OpenGL de bureau et glClearDepthf(depth) sur les systèmes OpenGL ES embarqués.
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glClearDepthf().
void QOpenGLFunctions::glClearStencil(GLint s)
Fonction de commodité qui appelle glClearStencil(s).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glClearStencil().
void QOpenGLFunctions::glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
Fonction de commodité qui appelle glColorMask(red, green, blue, alpha).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glColorMask().
void QOpenGLFunctions::glCompileShader(GLuint shader)
Fonction de commodité qui appelle glCompileShader(shader).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glCompileShader().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data)
Fonction de commodité qui appelle glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glCompressedTexImage2D().
void QOpenGLFunctions::glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data)
Fonction de commodité qui appelle glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glCompressedTexSubImage2D().
void QOpenGLFunctions::glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
Fonction de commodité qui appelle glCopyTexImage2D(target, level, internalformat, x, y, width, height, border).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glCopyTexImage2D().
void QOpenGLFunctions::glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
Fonction de commodité qui appelle glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glCopyTexSubImage2D().
GLuint QOpenGLFunctions::glCreateProgram()
Fonction de commodité qui appelle glCreateProgram().
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glCreateProgram().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
GLuint QOpenGLFunctions::glCreateShader(GLenum type)
Fonction de commodité qui appelle glCreateShader(type).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glCreateShader().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glCullFace(GLenum mode)
Fonction de commodité qui appelle glCullFace(mode).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glCullFace().
void QOpenGLFunctions::glDeleteBuffers(GLsizei n, const GLuint *buffers)
Fonction de commodité qui appelle glDeleteBuffers(n, buffers).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glDeleteBuffers().
void QOpenGLFunctions::glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers)
Fonction de commodité qui appelle glDeleteFramebuffers(n, framebuffers).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glDeleteFramebuffers().
void QOpenGLFunctions::glDeleteProgram(GLuint program)
Fonction de commodité qui appelle glDeleteProgram(program).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glDeleteProgram().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers)
Fonction de commodité qui appelle glDeleteRenderbuffers(n, renderbuffers).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glDeleteRenderbuffers().
void QOpenGLFunctions::glDeleteShader(GLuint shader)
Fonction de commodité qui appelle glDeleteShader(shader).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glDeleteShader().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glDeleteTextures(GLsizei n, const GLuint *textures)
Fonction de commodité qui appelle glDeleteTextures(n, textures).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glDeleteTextures().
void QOpenGLFunctions::glDepthFunc(GLenum func)
Fonction de commodité qui appelle glDepthFunc(func).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glDepthFunc().
void QOpenGLFunctions::glDepthMask(GLboolean flag)
Fonction de commodité qui appelle glDepthMask(flag).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glDepthMask().
void QOpenGLFunctions::glDepthRangef(GLclampf zNear, GLclampf zFar)
Fonction de commodité qui appelle glDepthRange(zNear, zFar) sur les systèmes OpenGL de bureau et glDepthRangef(zNear, zFar) sur les systèmes OpenGL ES embarqués.
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glDepthRangef().
void QOpenGLFunctions::glDetachShader(GLuint program, GLuint shader)
Fonction de commodité qui appelle glDetachShader(program, shader).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glDetachShader().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glDisable(GLenum cap)
Fonction de commodité qui appelle glDisable(cap).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glDisable().
void QOpenGLFunctions::glDisableVertexAttribArray(GLuint index)
Fonction de commodité qui appelle glDisableVertexAttribArray(index).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glDisableVertexAttribArray().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glDrawArrays(GLenum mode, GLint first, GLsizei count)
Fonction de commodité qui appelle glDrawArrays(mode, first, count).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glDrawArrays().
void QOpenGLFunctions::glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
Fonction de commodité qui appelle glDrawElements(mode, count, type, indices).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glDrawElements().
void QOpenGLFunctions::glEnable(GLenum cap)
Fonction de commodité qui appelle glEnable(cap).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glEnable().
void QOpenGLFunctions::glEnableVertexAttribArray(GLuint index)
Fonction de commodité qui appelle glEnableVertexAttribArray(index).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glEnableVertexAttribArray().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glFinish()
Fonction de commodité qui appelle glFinish().
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glFinish().
void QOpenGLFunctions::glFlush()
Fonction de commodité qui appelle glFlush().
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glFlush().
void QOpenGLFunctions::glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
Fonction de commodité qui appelle glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glFramebufferRenderbuffer().
void QOpenGLFunctions::glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
Fonction de commodité qui appelle glFramebufferTexture2D(target, attachment, textarget, texture, level).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glFramebufferTexture2D().
void QOpenGLFunctions::glFrontFace(GLenum mode)
Fonction de commodité qui appelle glFrontFace(mode).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glFrontFace().
void QOpenGLFunctions::glGenBuffers(GLsizei n, GLuint *buffers)
Fonction de commodité qui appelle glGenBuffers(n, buffers).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGenBuffers().
void QOpenGLFunctions::glGenFramebuffers(GLsizei n, GLuint *framebuffers)
Fonction de commodité qui appelle glGenFramebuffers(n, framebuffers).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGenFramebuffers().
void QOpenGLFunctions::glGenRenderbuffers(GLsizei n, GLuint *renderbuffers)
Fonction de commodité qui appelle glGenRenderbuffers(n, renderbuffers).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGenRenderbuffers().
void QOpenGLFunctions::glGenTextures(GLsizei n, GLuint *textures)
Fonction de commodité qui appelle glGenTextures(n, textures).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGenTextures().
void QOpenGLFunctions::glGenerateMipmap(GLenum target)
Fonction de commodité qui appelle glGenerateMipmap(target).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGenerateMipmap().
void QOpenGLFunctions::glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)
Fonction de commodité qui appelle glGetActiveAttrib(program, index, bufsize, length, size, type, name).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetActiveAttrib().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glGetActiveUniform(GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)
Fonction de commodité qui appelle glGetActiveUniform(program, index, bufsize, length, size, type, name).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetActiveUniform().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders)
Fonction de commodité qui appelle glGetAttachedShaders(program, maxcount, count, shaders).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetAttachedShaders().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
GLint QOpenGLFunctions::glGetAttribLocation(GLuint program, const char *name)
Fonction de commodité qui appelle glGetAttribLocation(program, name).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetAttribLocation().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glGetBooleanv(GLenum pname, GLboolean *params)
Fonction de commodité qui appelle glGetBooleanv(pname, params).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetBooleanv().
void QOpenGLFunctions::glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params)
Fonction de commodité qui appelle glGetBufferParameteriv(target, pname, params).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetBufferParameteriv().
GLenum QOpenGLFunctions::glGetError()
Fonction de commodité qui appelle glGetError().
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetError().
void QOpenGLFunctions::glGetFloatv(GLenum pname, GLfloat *params)
Fonction de commodité qui appelle glGetFloatv(pname, params).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetFloatv().
void QOpenGLFunctions::glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params)
Fonction de commodité qui appelle glGetFramebufferAttachmentParameteriv(target, attachment, pname, params).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetFramebufferAttachmentParameteriv().
void QOpenGLFunctions::glGetIntegerv(GLenum pname, GLint *params)
Fonction de commodité qui appelle glGetIntegerv(pname, params).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetIntegerv().
void QOpenGLFunctions::glGetProgramInfoLog(GLuint program, GLsizei bufsize, GLsizei *length, char *infolog)
Fonction de commodité qui appelle glGetProgramInfoLog(program, bufsize, length, infolog).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetProgramInfoLog().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glGetProgramiv(GLuint program, GLenum pname, GLint *params)
Fonction de commodité qui appelle glGetProgramiv(program, pname, params).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetProgramiv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params)
Fonction de commodité qui appelle glGetRenderbufferParameteriv(target, pname, params).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetRenderbufferParameteriv().
void QOpenGLFunctions::glGetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei *length, char *infolog)
Fonction de commodité qui appelle glGetShaderInfoLog(shader, bufsize, length, infolog).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetShaderInfoLog().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)
Fonction de commodité qui appelle glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetShaderPrecisionFormat().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei *length, char *source)
Fonction de commodité qui appelle glGetShaderSource(shader, bufsize, length, source).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetShaderSource().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glGetShaderiv(GLuint shader, GLenum pname, GLint *params)
Fonction de commodité qui appelle glGetShaderiv(shader, pname, params).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetShaderiv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
const GLubyte *QOpenGLFunctions::glGetString(GLenum name)
Fonction de commodité qui appelle glGetString(name).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetString().
void QOpenGLFunctions::glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
Fonction de commodité qui appelle glGetTexParameterfv(target, pname, params).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetTexParameterfv().
void QOpenGLFunctions::glGetTexParameteriv(GLenum target, GLenum pname, GLint *params)
Fonction de commodité qui appelle glGetTexParameteriv(target, pname, params).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetTexParameteriv().
GLint QOpenGLFunctions::glGetUniformLocation(GLuint program, const char *name)
Fonction de commodité qui appelle glGetUniformLocation(program, name).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetUniformLocation().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glGetUniformfv(GLuint program, GLint location, GLfloat *params)
Fonction de commodité qui appelle glGetUniformfv(program, location, params).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetUniformfv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glGetUniformiv(GLuint program, GLint location, GLint *params)
Fonction de commodité qui appelle glGetUniformiv(program, location, params).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetUniformiv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glGetVertexAttribPointerv(GLuint index, GLenum pname, void **pointer)
Fonction de commodité qui appelle glGetVertexAttribPointerv(index, pname, pointer).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetVertexAttribPointerv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params)
Fonction de commodité qui appelle glGetVertexAttribfv(index, pname, params).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetVertexAttribfv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params)
Fonction de commodité qui appelle glGetVertexAttribiv(index, pname, params).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glGetVertexAttribiv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glHint(GLenum target, GLenum mode)
Fonction de commodité qui appelle glHint(target, mode).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glHint().
GLboolean QOpenGLFunctions::glIsBuffer(GLuint buffer)
Fonction de commodité qui appelle glIsBuffer(buffer).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glIsBuffer().
GLboolean QOpenGLFunctions::glIsEnabled(GLenum cap)
Fonction de commodité qui appelle glIsEnabled(cap).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glIsEnabled().
GLboolean QOpenGLFunctions::glIsFramebuffer(GLuint framebuffer)
Fonction de commodité qui appelle glIsFramebuffer(framebuffer).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glIsFramebuffer().
GLboolean QOpenGLFunctions::glIsProgram(GLuint program)
Fonction de commodité qui appelle glIsProgram(program).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glIsProgram().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
GLboolean QOpenGLFunctions::glIsRenderbuffer(GLuint renderbuffer)
Fonction de commodité qui appelle glIsRenderbuffer(renderbuffer).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glIsRenderbuffer().
GLboolean QOpenGLFunctions::glIsShader(GLuint shader)
Fonction de commodité qui appelle glIsShader(shader).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glIsShader().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
GLboolean QOpenGLFunctions::glIsTexture(GLuint texture)
Fonction de commodité qui appelle glIsTexture(texture).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glIsTexture().
void QOpenGLFunctions::glLineWidth(GLfloat width)
Fonction de commodité qui appelle glLineWidth(width).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glLineWidth().
void QOpenGLFunctions::glLinkProgram(GLuint program)
Fonction de commodité qui appelle glLinkProgram(program).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glLinkProgram().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glPixelStorei(GLenum pname, GLint param)
Fonction de commodité qui appelle glPixelStorei(pname, param).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glPixelStorei().
void QOpenGLFunctions::glPolygonOffset(GLfloat factor, GLfloat units)
Fonction de commodité qui appelle glPolygonOffset(factor, units).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glPolygonOffset().
void QOpenGLFunctions::glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
Fonction de commodité qui appelle glReadPixels(x, y, width, height, format, type, pixels).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glReadPixels().
void QOpenGLFunctions::glReleaseShaderCompiler()
Fonction de commodité qui appelle glReleaseShaderCompiler().
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glReleaseShaderCompiler().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
Fonction de commodité qui appelle glRenderbufferStorage(target, internalformat, width, height).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glRenderbufferStorage().
void QOpenGLFunctions::glSampleCoverage(GLclampf value, GLboolean invert)
Fonction de commodité qui appelle glSampleCoverage(value, invert).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glSampleCoverage().
void QOpenGLFunctions::glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
Fonction de commodité qui appelle glScissor(x, y, width, height).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glScissor().
void QOpenGLFunctions::glShaderBinary(GLint n, const GLuint *shaders, GLenum binaryformat, const void *binary, GLint length)
Fonction de commodité qui appelle glShaderBinary(n, shaders, binaryformat, binary, length).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glShaderBinary().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glShaderSource(GLuint shader, GLsizei count, const char **string, const GLint *length)
Fonction de commodité qui appelle glShaderSource(shader, count, string, length).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glShaderSource().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glStencilFunc(GLenum func, GLint ref, GLuint mask)
Fonction de commodité qui appelle glStencilFunc(func, ref, mask).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glStencilFunc().
void QOpenGLFunctions::glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
Fonction de commodité qui appelle glStencilFuncSeparate(face, func, ref, mask).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glStencilFuncSeparate().
void QOpenGLFunctions::glStencilMask(GLuint mask)
Fonction de commodité qui appelle glStencilMask(mask).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glStencilMask().
void QOpenGLFunctions::glStencilMaskSeparate(GLenum face, GLuint mask)
Fonction de commodité qui appelle glStencilMaskSeparate(face, mask).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glStencilMaskSeparate().
void QOpenGLFunctions::glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
Fonction de commodité qui appelle glStencilOp(fail, zfail, zpass).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glStencilOp().
void QOpenGLFunctions::glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
Fonction de commodité qui appelle glStencilOpSeparate(face, fail, zfail, zpass).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glStencilOpSeparate().
void QOpenGLFunctions::glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
Fonction de commodité qui appelle glTexImage2D(target, level, internalformat, width, height, border, format, type, pixels).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glTexImage2D().
void QOpenGLFunctions::glTexParameterf(GLenum target, GLenum pname, GLfloat param)
Fonction de commodité qui appelle glTexParameterf(target, pname, param).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glTexParameterf().
void QOpenGLFunctions::glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
Fonction de commodité qui appelle glTexParameterfv(target, pname, params).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glTexParameterfv().
void QOpenGLFunctions::glTexParameteri(GLenum target, GLenum pname, GLint param)
Fonction de commodité qui appelle glTexParameteri(target, pname, param).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glTexParameteri().
void QOpenGLFunctions::glTexParameteriv(GLenum target, GLenum pname, const GLint *params)
Fonction de commodité qui appelle glTexParameteriv(target, pname, params).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glTexParameteriv().
void QOpenGLFunctions::glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
Fonction de commodité qui appelle glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glTexSubImage2D().
void QOpenGLFunctions::glUniform1f(GLint location, GLfloat x)
Fonction de commodité qui appelle glUniform1f(location, x).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUniform1f().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glUniform1fv(GLint location, GLsizei count, const GLfloat *v)
Fonction de commodité qui appelle glUniform1fv(location, count, v).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUniform1fv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glUniform1i(GLint location, GLint x)
Fonction de commodité qui appelle glUniform1i(location, x).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUniform1i().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glUniform1iv(GLint location, GLsizei count, const GLint *v)
Fonction de commodité qui appelle glUniform1iv(location, count, v).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUniform1iv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glUniform2f(GLint location, GLfloat x, GLfloat y)
Fonction de commodité qui appelle glUniform2f(location, x, y).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUniform2f().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glUniform2fv(GLint location, GLsizei count, const GLfloat *v)
Fonction de commodité qui appelle glUniform2fv(location, count, v).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUniform2fv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glUniform2i(GLint location, GLint x, GLint y)
Fonction de commodité qui appelle glUniform2i(location, x, y).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUniform2i().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glUniform2iv(GLint location, GLsizei count, const GLint *v)
Fonction de commodité qui appelle glUniform2iv(location, count, v).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUniform2iv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z)
Fonction de commodité qui appelle glUniform3f(location, x, y, z).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUniform3f().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glUniform3fv(GLint location, GLsizei count, const GLfloat *v)
Fonction de commodité qui appelle glUniform3fv(location, count, v).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUniform3fv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glUniform3i(GLint location, GLint x, GLint y, GLint z)
Fonction de commodité qui appelle glUniform3i(location, x, y, z).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUniform3i().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glUniform3iv(GLint location, GLsizei count, const GLint *v)
Fonction de commodité qui appelle glUniform3iv(location, count, v).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUniform3iv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
Fonction de commodité qui appelle glUniform4f(location, x, y, z, w).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUniform4f().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glUniform4fv(GLint location, GLsizei count, const GLfloat *v)
Fonction de commodité qui appelle glUniform4fv(location, count, v).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUniform4fv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w)
Fonction de commodité qui appelle glUniform4i(location, x, y, z, w).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUniform4i().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glUniform4iv(GLint location, GLsizei count, const GLint *v)
Fonction de commodité qui appelle glUniform4iv(location, count, v).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUniform4iv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
Fonction de commodité qui appelle glUniformMatrix2fv(location, count, transpose, value).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUniformMatrix2fv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
Fonction de commodité qui appelle glUniformMatrix3fv(location, count, transpose, value).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUniformMatrix3fv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
Fonction de commodité qui appelle glUniformMatrix4fv(location, count, transpose, value).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUniformMatrix4fv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glUseProgram(GLuint program)
Fonction de commodité qui appelle glUseProgram(program).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glUseProgram().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glValidateProgram(GLuint program)
Fonction de commodité qui appelle glValidateProgram(program).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glValidateProgram().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glVertexAttrib1f(GLuint indx, GLfloat x)
Fonction de commodité qui appelle glVertexAttrib1f(indx, x).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glVertexAttrib1f().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glVertexAttrib1fv(GLuint indx, const GLfloat *values)
Fonction de commodité qui appelle glVertexAttrib1fv(indx, values).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glVertexAttrib1fv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y)
Fonction de commodité qui appelle glVertexAttrib2f(indx, x, y).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glVertexAttrib2f().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glVertexAttrib2fv(GLuint indx, const GLfloat *values)
Fonction de commodité qui appelle glVertexAttrib2fv(indx, values).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glVertexAttrib2fv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z)
Fonction de commodité qui appelle glVertexAttrib3f(indx, x, y, z).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glVertexAttrib3f().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glVertexAttrib3fv(GLuint indx, const GLfloat *values)
Fonction de commodité qui appelle glVertexAttrib3fv(indx, values).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glVertexAttrib3fv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
Fonction de commodité qui appelle glVertexAttrib4f(indx, x, y, z, w).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glVertexAttrib4f().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glVertexAttrib4fv(GLuint indx, const GLfloat *values)
Fonction de commodité qui appelle glVertexAttrib4fv(indx, values).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glVertexAttrib4fv().
Cette fonction de commodité ne fera rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glVertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *ptr)
Fonction de commodité qui appelle glVertexAttribPointer(indx, size, type, normalized, stride, ptr).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glVertexAttribPointer().
Cette fonction de commodité ne fait rien sur les systèmes OpenGL ES 1.x.
void QOpenGLFunctions::glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
Fonction de commodité qui appelle glViewport(x, y, width, height).
Pour plus d'informations, voir la documentation OpenGL ES 3.X pour glViewport().
bool QOpenGLFunctions::hasOpenGLFeature(QOpenGLFunctions::OpenGLFeature feature) const
Renvoie true si feature est présent dans l'implémentation OpenGL de ce système ; faux sinon.
Il est supposé que le site QOpenGLContext associé à ce résolveur de fonctions est à jour.
Voir aussi openGLFeatures().
void QOpenGLFunctions::initializeOpenGLFunctions()
Initialise la résolution des fonctions OpenGL pour le contexte actuel.
Après avoir appelé cette fonction, l'objet QOpenGLFunctions ne peut être utilisé qu'avec le contexte actuel et les autres contextes qui le partagent. Appelez à nouveau initializeOpenGLFunctions() pour changer l'association de contexte de l'objet.
QOpenGLFunctions::OpenGLFeatures QOpenGLFunctions::openGLFeatures() const
Renvoie l'ensemble des fonctionnalités présentes dans l'implémentation OpenGL de ce système.
Il est supposé que le site QOpenGLContext associé à ce résolveur de fonctions est à jour.
Voir aussi hasOpenGLFeature().
© 2026 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 the GNU 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.