6#include <QOpenGLContext>
7#include <QOpenGLFunctions>
8#include <QOpenGLFramebufferObject>
9#include <private/qopenglvertexarrayobject_p.h>
59 for (
int i=0;
i<maxAttribs; ++
i) {
static QOpenGLContext * currentContext()
Returns the last context which called makeCurrent in the current thread, or \nullptr,...
static bool bindDefault()
Switches rendering back to the default, windowing system provided framebuffer.
The QOpenGLFunctions class provides cross-platform access to the OpenGL ES 2.0 API.
void glStencilFunc(GLenum func, GLint ref, GLuint mask)
Convenience function that calls glStencilFunc(func, ref, mask).
void glBlendFunc(GLenum sfactor, GLenum dfactor)
Convenience function that calls glBlendFunc(sfactor, dfactor).
void glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
Convenience function that calls glClearColor(red, green, blue, alpha).
void glVertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *ptr)
Convenience function that calls glVertexAttribPointer(indx, size, type, normalized,...
void glClearDepthf(GLclampf depth)
Convenience function that calls glClearDepth(depth) on desktop OpenGL systems and glClearDepthf(depth...
void glUseProgram(GLuint program)
Convenience function that calls glUseProgram(program).
void glBindBuffer(GLenum target, GLuint buffer)
Convenience function that calls glBindBuffer(target, buffer).
void glDisableVertexAttribArray(GLuint index)
Convenience function that calls glDisableVertexAttribArray(index).
void glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
Convenience function that calls glColorMask(red, green, blue, alpha).
void glBindTexture(GLenum target, GLuint texture)
Convenience function that calls glBindTexture(target, texture).
void glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
Convenience function that calls glStencilOp(fail, zfail, zpass).
void glDepthMask(GLboolean flag)
Convenience function that calls glDepthMask(flag).
void glActiveTexture(GLenum texture)
Convenience function that calls glActiveTexture(texture).
void glDisable(GLenum cap)
Convenience function that calls glDisable(cap).
void glStencilMask(GLuint mask)
Convenience function that calls glStencilMask(mask).
void glGetIntegerv(GLenum pname, GLint *params)
Convenience function that calls glGetIntegerv(pname, params).
QOpenGLFunctions::OpenGLFeatures openGLFeatures() const
Returns the set of features that are present on this system's OpenGL implementation.
void glDepthFunc(GLenum func)
Convenience function that calls glDepthFunc(func).
void glBindVertexArray(GLuint array) const
static Q_OPENGL_EXPORT QOpenGLVertexArrayObjectHelper * vertexArrayObjectHelperForContext(QOpenGLContext *context)
Q_QUICK_EXPORT void resetOpenGLState()
Call this function to reset the current OpenGL context its default state.
Combined button and popup list for selecting options.
#define GL_MAX_VERTEX_ATTRIBS
#define GL_ELEMENT_ARRAY_BUFFER