Qt 4.8
Public Types | Public Functions | Static Private Functions | Properties | List of all members
QGLFunctions Class Reference

The QGLFunctions class provides cross-platform access to the OpenGL/ES 2.0 API. More...

#include <qglfunctions.h>

Public Types

enum  OpenGLFeature {
  Multitexture = 0x0001, Shaders = 0x0002, Buffers = 0x0004, Framebuffers = 0x0008,
  BlendColor = 0x0010, BlendEquation = 0x0020, BlendEquationSeparate = 0x0040, BlendFuncSeparate = 0x0080,
  BlendSubtract = 0x0100, CompressedTextures = 0x0200, Multisample = 0x0400, StencilSeparate = 0x0800,
  NPOTTextures = 0x1000
}
 This enum defines OpenGL/ES 2. More...
 

Public Functions

void glActiveTexture (GLenum texture)
 Convenience function that calls glActiveTexture(texture). More...
 
void glAttachShader (GLuint program, GLuint shader)
 Convenience function that calls glAttachShader(program, shader). More...
 
void glBindAttribLocation (GLuint program, GLuint index, const char *name)
 Convenience function that calls glBindAttribLocation(program, index, name). More...
 
void glBindBuffer (GLenum target, GLuint buffer)
 Convenience function that calls glBindBuffer(target, buffer). More...
 
void glBindFramebuffer (GLenum target, GLuint framebuffer)
 Convenience function that calls glBindFramebuffer(target, framebuffer). More...
 
void glBindRenderbuffer (GLenum target, GLuint renderbuffer)
 Convenience function that calls glBindRenderbuffer(target, renderbuffer). More...
 
void glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
 Convenience function that calls glBlendColor(red, green, blue, alpha). More...
 
void glBlendEquation (GLenum mode)
 Convenience function that calls glBlendEquation(mode). More...
 
void glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha)
 Convenience function that calls glBlendEquationSeparate(modeRGB, modeAlpha). More...
 
void glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
 Convenience function that calls glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha). More...
 
void glBufferData (GLenum target, qgl_GLsizeiptr size, const void *data, GLenum usage)
 Convenience function that calls glBufferData(target, size, data, usage). More...
 
void glBufferSubData (GLenum target, qgl_GLintptr offset, qgl_GLsizeiptr size, const void *data)
 Convenience function that calls glBufferSubData(target, offset, size, data). More...
 
GLenum glCheckFramebufferStatus (GLenum target)
 Convenience function that calls glCheckFramebufferStatus(target). More...
 
void glClearDepthf (GLclampf depth)
 Convenience function that calls glClearDepth(depth) on desktop OpenGL systems and glClearDepthf(depth) on embedded OpenGL/ES systems. More...
 
void glCompileShader (GLuint shader)
 Convenience function that calls glCompileShader(shader). More...
 
void glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data)
 Convenience function that calls glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data). More...
 
void glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data)
 Convenience function that calls glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data). More...
 
GLuint glCreateProgram ()
 Convenience function that calls glCreateProgram(). More...
 
GLuint glCreateShader (GLenum type)
 Convenience function that calls glCreateShader(type). More...
 
void glDeleteBuffers (GLsizei n, const GLuint *buffers)
 Convenience function that calls glDeleteBuffers(n, buffers). More...
 
void glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers)
 Convenience function that calls glDeleteFramebuffers(n, framebuffers). More...
 
void glDeleteProgram (GLuint program)
 Convenience function that calls glDeleteProgram(program). More...
 
void glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers)
 Convenience function that calls glDeleteRenderbuffers(n, renderbuffers). More...
 
void glDeleteShader (GLuint shader)
 Convenience function that calls glDeleteShader(shader). More...
 
void glDepthRangef (GLclampf zNear, GLclampf zFar)
 Convenience function that calls glDepthRange(zNear, zFar) on desktop OpenGL systems and glDepthRangef(zNear, zFar) on embedded OpenGL/ES systems. More...
 
void glDetachShader (GLuint program, GLuint shader)
 Convenience function that calls glDetachShader(program, shader). More...
 
void glDisableVertexAttribArray (GLuint index)
 Convenience function that calls glDisableVertexAttribArray(index). More...
 
void glEnableVertexAttribArray (GLuint index)
 Convenience function that calls glEnableVertexAttribArray(index). More...
 
void glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
 Convenience function that calls glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer). More...
 
void glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
 Convenience function that calls glFramebufferTexture2D(target, attachment, textarget, texture, level). More...
 
void glGenBuffers (GLsizei n, GLuint *buffers)
 Convenience function that calls glGenBuffers(n, buffers). More...
 
void glGenerateMipmap (GLenum target)
 Convenience function that calls glGenerateMipmap(target). More...
 
void glGenFramebuffers (GLsizei n, GLuint *framebuffers)
 Convenience function that calls glGenFramebuffers(n, framebuffers). More...
 
void glGenRenderbuffers (GLsizei n, GLuint *renderbuffers)
 Convenience function that calls glGenRenderbuffers(n, renderbuffers). More...
 
void glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)
 Convenience function that calls glGetActiveAttrib(program, index, bufsize, length, size, type, name). More...
 
void glGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)
 Convenience function that calls glGetActiveUniform(program, index, bufsize, length, size, type, name). More...
 
void glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders)
 Convenience function that calls glGetAttachedShaders(program, maxcount, count, shaders). More...
 
int glGetAttribLocation (GLuint program, const char *name)
 Convenience function that calls glGetAttribLocation(program, name). More...
 
void glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params)
 Convenience function that calls glGetBufferParameteriv(target, pname, params). More...
 
void glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params)
 Convenience function that calls glGetFramebufferAttachmentParameteriv(target, attachment, pname, params). More...
 
void glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei *length, char *infolog)
 Convenience function that calls glGetProgramInfoLog(program, bufsize, length, infolog). More...
 
void glGetProgramiv (GLuint program, GLenum pname, GLint *params)
 Convenience function that calls glGetProgramiv(program, pname, params). More...
 
void glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params)
 Convenience function that calls glGetRenderbufferParameteriv(target, pname, params). More...
 
void glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei *length, char *infolog)
 Convenience function that calls glGetShaderInfoLog(shader, bufsize, length, infolog). More...
 
void glGetShaderiv (GLuint shader, GLenum pname, GLint *params)
 Convenience function that calls glGetShaderiv(shader, pname, params). More...
 
void glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)
 Convenience function that calls glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision). More...
 
void glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei *length, char *source)
 Convenience function that calls glGetShaderSource(shader, bufsize, length, source). More...
 
void glGetUniformfv (GLuint program, GLint location, GLfloat *params)
 Convenience function that calls glGetUniformfv(program, location, params). More...
 
void glGetUniformiv (GLuint program, GLint location, GLint *params)
 Convenience function that calls glGetUniformiv(program, location, params). More...
 
int glGetUniformLocation (GLuint program, const char *name)
 Convenience function that calls glGetUniformLocation(program, name). More...
 
void glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params)
 Convenience function that calls glGetVertexAttribfv(index, pname, params). More...
 
void glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params)
 Convenience function that calls glGetVertexAttribiv(index, pname, params). More...
 
void glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer)
 Convenience function that calls glGetVertexAttribPointerv(index, pname, pointer). More...
 
GLboolean glIsBuffer (GLuint buffer)
 Convenience function that calls glIsBuffer(buffer). More...
 
GLboolean glIsFramebuffer (GLuint framebuffer)
 Convenience function that calls glIsFramebuffer(framebuffer). More...
 
GLboolean glIsProgram (GLuint program)
 Convenience function that calls glIsProgram(program). More...
 
GLboolean glIsRenderbuffer (GLuint renderbuffer)
 Convenience function that calls glIsRenderbuffer(renderbuffer). More...
 
GLboolean glIsShader (GLuint shader)
 Convenience function that calls glIsShader(shader). More...
 
void glLinkProgram (GLuint program)
 Convenience function that calls glLinkProgram(program). More...
 
void glReleaseShaderCompiler ()
 Convenience function that calls glReleaseShaderCompiler(). More...
 
void glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
 Convenience function that calls glRenderbufferStorage(target, internalformat, width, height). More...
 
void glSampleCoverage (GLclampf value, GLboolean invert)
 Convenience function that calls glSampleCoverage(value, invert). More...
 
void glShaderBinary (GLint n, const GLuint *shaders, GLenum binaryformat, const void *binary, GLint length)
 Convenience function that calls glShaderBinary(n, shaders, binaryformat, binary, length). More...
 
void glShaderSource (GLuint shader, GLsizei count, const char **string, const GLint *length)
 Convenience function that calls glShaderSource(shader, count, string, length). More...
 
void glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask)
 Convenience function that calls glStencilFuncSeparate(face, func, ref, mask). More...
 
void glStencilMaskSeparate (GLenum face, GLuint mask)
 Convenience function that calls glStencilMaskSeparate(face, mask). More...
 
void glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
 Convenience function that calls glStencilOpSeparate(face, fail, zfail, zpass). More...
 
void glUniform1f (GLint location, GLfloat x)
 Convenience function that calls glUniform1f(location, x). More...
 
void glUniform1fv (GLint location, GLsizei count, const GLfloat *v)
 Convenience function that calls glUniform1fv(location, count, v). More...
 
void glUniform1i (GLint location, GLint x)
 Convenience function that calls glUniform1i(location, x). More...
 
void glUniform1iv (GLint location, GLsizei count, const GLint *v)
 Convenience function that calls glUniform1iv(location, count, v). More...
 
void glUniform2f (GLint location, GLfloat x, GLfloat y)
 Convenience function that calls glUniform2f(location, x, y). More...
 
void glUniform2fv (GLint location, GLsizei count, const GLfloat *v)
 Convenience function that calls glUniform2fv(location, count, v). More...
 
void glUniform2i (GLint location, GLint x, GLint y)
 Convenience function that calls glUniform2i(location, x, y). More...
 
void glUniform2iv (GLint location, GLsizei count, const GLint *v)
 Convenience function that calls glUniform2iv(location, count, v). More...
 
void glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z)
 Convenience function that calls glUniform3f(location, x, y, z). More...
 
void glUniform3fv (GLint location, GLsizei count, const GLfloat *v)
 Convenience function that calls glUniform3fv(location, count, v). More...
 
void glUniform3i (GLint location, GLint x, GLint y, GLint z)
 Convenience function that calls glUniform3i(location, x, y, z). More...
 
void glUniform3iv (GLint location, GLsizei count, const GLint *v)
 Convenience function that calls glUniform3iv(location, count, v). More...
 
void glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
 Convenience function that calls glUniform4f(location, x, y, z, w). More...
 
void glUniform4fv (GLint location, GLsizei count, const GLfloat *v)
 Convenience function that calls glUniform4fv(location, count, v). More...
 
void glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w)
 Convenience function that calls glUniform4i(location, x, y, z, w). More...
 
void glUniform4iv (GLint location, GLsizei count, const GLint *v)
 Convenience function that calls glUniform4iv(location, count, v). More...
 
void glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
 Convenience function that calls glUniformMatrix2fv(location, count, transpose, value). More...
 
void glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
 Convenience function that calls glUniformMatrix3fv(location, count, transpose, value). More...
 
void glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
 Convenience function that calls glUniformMatrix4fv(location, count, transpose, value). More...
 
void glUseProgram (GLuint program)
 Convenience function that calls glUseProgram(program). More...
 
void glValidateProgram (GLuint program)
 Convenience function that calls glValidateProgram(program). More...
 
void glVertexAttrib1f (GLuint indx, GLfloat x)
 Convenience function that calls glVertexAttrib1f(indx, x). More...
 
void glVertexAttrib1fv (GLuint indx, const GLfloat *values)
 Convenience function that calls glVertexAttrib1fv(indx, values). More...
 
void glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y)
 Convenience function that calls glVertexAttrib2f(indx, x, y). More...
 
void glVertexAttrib2fv (GLuint indx, const GLfloat *values)
 Convenience function that calls glVertexAttrib2fv(indx, values). More...
 
void glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z)
 Convenience function that calls glVertexAttrib3f(indx, x, y, z). More...
 
void glVertexAttrib3fv (GLuint indx, const GLfloat *values)
 Convenience function that calls glVertexAttrib3fv(indx, values). More...
 
void glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
 Convenience function that calls glVertexAttrib4f(indx, x, y, z, w). More...
 
void glVertexAttrib4fv (GLuint indx, const GLfloat *values)
 Convenience function that calls glVertexAttrib4fv(indx, values). More...
 
void glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *ptr)
 Convenience function that calls glVertexAttribPointer(indx, size, type, normalized, stride, ptr). More...
 
bool hasOpenGLFeature (QGLFunctions::OpenGLFeature feature) const
 Returns true if feature is present on this system's OpenGL implementation; false otherwise. More...
 
void initializeGLFunctions (const QGLContext *context=0)
 Initializes GL function resolution for context. More...
 
QGLFunctions::OpenGLFeatures openGLFeatures () const
 Returns the set of features that are present on this system's OpenGL implementation. More...
 
 QGLFunctions ()
 Constructs a default function resolver. More...
 
 QGLFunctions (const QGLContext *context)
 Constructs a function resolver for context. More...
 
 ~QGLFunctions ()
 Destroys this function resolver. More...
 

Static Private Functions

static bool isInitialized (const QGLFunctionsPrivate *d)
 

Properties

QGLFunctionsPrivated_ptr
 

Detailed Description

The QGLFunctions class provides cross-platform access to the OpenGL/ES 2.0 API.

Since
4.8

OpenGL/ES 2.0 defines a subset of the OpenGL specification that is common across many desktop and embedded OpenGL implementations. However, it can be difficult to use the functions from that subset because they need to be resolved manually on desktop systems.

QGLFunctions provides a guaranteed API that is available on all OpenGL systems and takes care of function resolution on systems that need it. The recommended way to use QGLFunctions is by direct inheritance:

class MyGLWidget : public QGLWidget, protected QGLFunctions
{
public:
MyGLWidget(QWidget *parent = 0) : QGLWidget(parent) {}
protected:
void initializeGL();
void paintGL();
};
void MyGLWidget::initializeGL()
{
}

The paintGL() function can then use any of the OpenGL/ES 2.0 functions without explicit resolution, such as glActiveTexture() in the following example:

void MyGLWidget::paintGL()
{
glBindTexture(GL_TEXTURE_2D, textureId);
...
}

QGLFunctions can also be used directly for ad-hoc invocation of OpenGL/ES 2.0 functions on all platforms:

glFuncs.glActiveTexture(GL_TEXTURE1);

QGLFunctions provides wrappers for all OpenGL/ES 2.0 functions, except those like glDrawArrays(), glViewport(), and glBindTexture() that don't have portability issues.

Including the header for QGLFunctions will also define all of the OpenGL/ES 2.0 macro constants that are not already defined by the system's OpenGL headers, such as GL_TEXTURE1 above.

The hasOpenGLFeature() and openGLFeatures() functions can be used to determine if the OpenGL implementation has a major OpenGL/ES 2.0 feature. For example, the following checks if non power of two textures are available:

bool npot = funcs.hasOpenGLFeature(QGLFunctions::NPOTTextures);

Definition at line 178 of file qglfunctions.h.

Enumerations

◆ OpenGLFeature

This enum defines OpenGL/ES 2.

0 features that may be optional on other platforms.

  • Multitexture glActiveTexture() function is available.
  • Shaders Shader functions are available.
  • Buffers Vertex and index buffer functions are available.
  • Framebuffers Framebuffer object functions are available.
  • BlendColor glBlendColor() is available.
  • BlendEquation glBlendEquation() is available.
  • BlendEquationSeparate glBlendEquationSeparate() is available.
  • BlendFuncSeparate glBlendFuncSeparate() is available.
  • BlendSubtract Blend subtract mode is available.
  • CompressedTextures Compressed texture functions are available.
  • Multisample glSampleCoverage() function is available.
  • StencilSeparate Separate stencil functions are available.
  • NPOTTextures Non power of two textures are available.
Enumerator
Multitexture 
Shaders 
Buffers 
Framebuffers 
BlendColor 
BlendEquation 
BlendEquationSeparate 
BlendFuncSeparate 
BlendSubtract 
CompressedTextures 
Multisample 
StencilSeparate 
NPOTTextures 

Definition at line 185 of file qglfunctions.h.

Constructors and Destructors

◆ QGLFunctions() [1/2]

QGLFunctions::QGLFunctions ( )

Constructs a default function resolver.

The resolver cannot be used until initializeGLFunctions() is called to specify the context.

See also
initializeGLFunctions()

Definition at line 191 of file qglfunctions.cpp.

192  : d_ptr(0)
193 {
194 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307

◆ QGLFunctions() [2/2]

QGLFunctions::QGLFunctions ( const QGLContext context)
explicit

Constructs a function resolver for context.

If context is null, then the resolver will be created for the current QGLContext.

An object constructed in this way can only be used with context and other contexts that share with it. Use initializeGLFunctions() to change the object's context association.

See also
initializeGLFunctions()

Definition at line 206 of file qglfunctions.cpp.

207  : d_ptr(qt_gl_functions(context))
208 {
209 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
static QGLFunctionsPrivateEx * qt_gl_functions(const QGLContext *context=0)

◆ ~QGLFunctions()

QGLFunctions::~QGLFunctions ( )
inline

Destroys this function resolver.

Definition at line 183 of file qglfunctions.h.

183 {}

Functions

◆ glActiveTexture()

void QGLFunctions::glActiveTexture ( GLenum  texture)
inline

Convenience function that calls glActiveTexture(texture).

For more information, see the OpenGL/ES 2.0 documentation for glActiveTexture().

Definition at line 416 of file qglfunctions.h.

417 {
418 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
419  ::glActiveTexture(texture);
420 #else
422  d_ptr->activeTexture(texture);
423 #endif
424 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glActiveTexture(GLenum texture)
Convenience function that calls glActiveTexture(texture).
Definition: qglfunctions.h:416

◆ glAttachShader()

void QGLFunctions::glAttachShader ( GLuint  program,
GLuint  shader 
)
inline

Convenience function that calls glAttachShader(program, shader).

For more information, see the OpenGL/ES 2.0 documentation for glAttachShader().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 426 of file qglfunctions.h.

427 {
428 #if defined(QT_OPENGL_ES_2)
429  ::glAttachShader(program, shader);
430 #else
432  d_ptr->attachShader(program, shader);
433 #endif
434 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glAttachShader(GLuint program, GLuint shader)
Convenience function that calls glAttachShader(program, shader).
Definition: qglfunctions.h:426

◆ glBindAttribLocation()

void QGLFunctions::glBindAttribLocation ( GLuint  program,
GLuint  index,
const char *  name 
)
inline

Convenience function that calls glBindAttribLocation(program, index, name).

For more information, see the OpenGL/ES 2.0 documentation for glBindAttribLocation().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 436 of file qglfunctions.h.

437 {
438 #if defined(QT_OPENGL_ES_2)
439  ::glBindAttribLocation(program, index, name);
440 #else
442  d_ptr->bindAttribLocation(program, index, name);
443 #endif
444 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glBindAttribLocation(GLuint program, GLuint index, const char *name)
Convenience function that calls glBindAttribLocation(program, index, name).
Definition: qglfunctions.h:436
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
const char * name
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
quint16 index

◆ glBindBuffer()

void QGLFunctions::glBindBuffer ( GLenum  target,
GLuint  buffer 
)
inline

Convenience function that calls glBindBuffer(target, buffer).

For more information, see the OpenGL/ES 2.0 documentation for glBindBuffer().

Definition at line 446 of file qglfunctions.h.

447 {
448 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
449  ::glBindBuffer(target, buffer);
450 #else
452  d_ptr->bindBuffer(target, buffer);
453 #endif
454 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glBindBuffer(GLenum target, GLuint buffer)
Convenience function that calls glBindBuffer(target, buffer).
Definition: qglfunctions.h:446

◆ glBindFramebuffer()

void QGLFunctions::glBindFramebuffer ( GLenum  target,
GLuint  framebuffer 
)
inline

Convenience function that calls glBindFramebuffer(target, framebuffer).

For more information, see the OpenGL/ES 2.0 documentation for glBindFramebuffer().

Definition at line 456 of file qglfunctions.h.

457 {
458 #if defined(QT_OPENGL_ES_2)
459  ::glBindFramebuffer(target, framebuffer);
460 #else
462  d_ptr->bindFramebuffer(target, framebuffer);
463 #endif
464 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glBindFramebuffer(GLenum target, GLuint framebuffer)
Convenience function that calls glBindFramebuffer(target, framebuffer).
Definition: qglfunctions.h:456
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glBindRenderbuffer()

void QGLFunctions::glBindRenderbuffer ( GLenum  target,
GLuint  renderbuffer 
)
inline

Convenience function that calls glBindRenderbuffer(target, renderbuffer).

For more information, see the OpenGL/ES 2.0 documentation for glBindRenderbuffer().

Definition at line 466 of file qglfunctions.h.

467 {
468 #if defined(QT_OPENGL_ES_2)
469  ::glBindRenderbuffer(target, renderbuffer);
470 #else
472  d_ptr->bindRenderbuffer(target, renderbuffer);
473 #endif
474 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glBindRenderbuffer(GLenum target, GLuint renderbuffer)
Convenience function that calls glBindRenderbuffer(target, renderbuffer).
Definition: qglfunctions.h:466

◆ glBlendColor()

void QGLFunctions::glBlendColor ( GLclampf  red,
GLclampf  green,
GLclampf  blue,
GLclampf  alpha 
)
inline

Convenience function that calls glBlendColor(red, green, blue, alpha).

For more information, see the OpenGL/ES 2.0 documentation for glBlendColor().

Definition at line 476 of file qglfunctions.h.

477 {
478 #if defined(QT_OPENGL_ES_2)
479  ::glBlendColor(red, green, blue, alpha);
480 #else
482  d_ptr->blendColor(red, green, blue, alpha);
483 #endif
484 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
Convenience function that calls glBlendColor(red, green, blue, alpha).
Definition: qglfunctions.h:476
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glBlendEquation()

void QGLFunctions::glBlendEquation ( GLenum  mode)
inline

Convenience function that calls glBlendEquation(mode).

For more information, see the OpenGL/ES 2.0 documentation for glBlendEquation().

Definition at line 486 of file qglfunctions.h.

487 {
488 #if defined(QT_OPENGL_ES_2)
489  ::glBlendEquation(mode);
490 #else
492  d_ptr->blendEquation(mode);
493 #endif
494 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glBlendEquation(GLenum mode)
Convenience function that calls glBlendEquation(mode).
Definition: qglfunctions.h:486
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glBlendEquationSeparate()

void QGLFunctions::glBlendEquationSeparate ( GLenum  modeRGB,
GLenum  modeAlpha 
)
inline

Convenience function that calls glBlendEquationSeparate(modeRGB, modeAlpha).

For more information, see the OpenGL/ES 2.0 documentation for glBlendEquationSeparate().

Definition at line 496 of file qglfunctions.h.

497 {
498 #if defined(QT_OPENGL_ES_2)
499  ::glBlendEquationSeparate(modeRGB, modeAlpha);
500 #else
502  d_ptr->blendEquationSeparate(modeRGB, modeAlpha);
503 #endif
504 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
Convenience function that calls glBlendEquationSeparate(modeRGB, modeAlpha).
Definition: qglfunctions.h:496
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glBlendFuncSeparate()

void QGLFunctions::glBlendFuncSeparate ( GLenum  srcRGB,
GLenum  dstRGB,
GLenum  srcAlpha,
GLenum  dstAlpha 
)
inline

Convenience function that calls glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha).

For more information, see the OpenGL/ES 2.0 documentation for glBlendFuncSeparate().

Definition at line 506 of file qglfunctions.h.

507 {
508 #if defined(QT_OPENGL_ES_2)
509  ::glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
510 #else
512  d_ptr->blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
513 #endif
514 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
Convenience function that calls glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha).
Definition: qglfunctions.h:506
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glBufferData()

void QGLFunctions::glBufferData ( GLenum  target,
qgl_GLsizeiptr  size,
const void *  data,
GLenum  usage 
)
inline

Convenience function that calls glBufferData(target, size, data, usage).

For more information, see the OpenGL/ES 2.0 documentation for glBufferData().

Definition at line 516 of file qglfunctions.h.

517 {
518 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
519  ::glBufferData(target, size, data, usage);
520 #else
522  d_ptr->bufferData(target, size, data, usage);
523 #endif
524 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
static void usage()
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static const char * data(const QByteArray &arr)
void glBufferData(GLenum target, qgl_GLsizeiptr size, const void *data, GLenum usage)
Convenience function that calls glBufferData(target, size, data, usage).
Definition: qglfunctions.h:516
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glBufferSubData()

void QGLFunctions::glBufferSubData ( GLenum  target,
qgl_GLintptr  offset,
qgl_GLsizeiptr  size,
const void *  data 
)
inline

Convenience function that calls glBufferSubData(target, offset, size, data).

For more information, see the OpenGL/ES 2.0 documentation for glBufferSubData().

Definition at line 526 of file qglfunctions.h.

527 {
528 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
529  ::glBufferSubData(target, offset, size, data);
530 #else
532  d_ptr->bufferSubData(target, offset, size, data);
533 #endif
534 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glBufferSubData(GLenum target, qgl_GLintptr offset, qgl_GLsizeiptr size, const void *data)
Convenience function that calls glBufferSubData(target, offset, size, data).
Definition: qglfunctions.h:526
static const char * data(const QByteArray &arr)
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glCheckFramebufferStatus()

GLenum QGLFunctions::glCheckFramebufferStatus ( GLenum  target)
inline

Convenience function that calls glCheckFramebufferStatus(target).

For more information, see the OpenGL/ES 2.0 documentation for glCheckFramebufferStatus().

Definition at line 536 of file qglfunctions.h.

537 {
538 #if defined(QT_OPENGL_ES_2)
540 #else
542  return d_ptr->checkFramebufferStatus(target);
543 #endif
544 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define glCheckFramebufferStatus
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glClearDepthf()

void QGLFunctions::glClearDepthf ( GLclampf  depth)
inline

Convenience function that calls glClearDepth(depth) on desktop OpenGL systems and glClearDepthf(depth) on embedded OpenGL/ES systems.

For more information, see the OpenGL/ES 2.0 documentation for glClearDepthf().

Definition at line 546 of file qglfunctions.h.

547 {
548 #ifndef QT_OPENGL_ES
549  ::glClearDepth(depth);
550 #else
551  ::glClearDepthf(depth);
552 #endif
553 }
void glClearDepthf(GLclampf depth)
Convenience function that calls glClearDepth(depth) on desktop OpenGL systems and glClearDepthf(depth...
Definition: qglfunctions.h:546

◆ glCompileShader()

void QGLFunctions::glCompileShader ( GLuint  shader)
inline

Convenience function that calls glCompileShader(shader).

For more information, see the OpenGL/ES 2.0 documentation for glCompileShader().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 555 of file qglfunctions.h.

556 {
557 #if defined(QT_OPENGL_ES_2)
558  ::glCompileShader(shader);
559 #else
561  d_ptr->compileShader(shader);
562 #endif
563 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glCompileShader(GLuint shader)
Convenience function that calls glCompileShader(shader).
Definition: qglfunctions.h:555
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glCompressedTexImage2D()

void QGLFunctions::glCompressedTexImage2D ( GLenum  target,
GLint  level,
GLenum  internalformat,
GLsizei  width,
GLsizei  height,
GLint  border,
GLsizei  imageSize,
const void *  data 
)
inline

Convenience function that calls glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data).

For more information, see the OpenGL/ES 2.0 documentation for glCompressedTexImage2D().

Definition at line 565 of file qglfunctions.h.

566 {
567 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
568  ::glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data);
569 #else
571  d_ptr->compressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data);
572 #endif
573 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data)
Convenience function that calls glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data).
Definition: qglfunctions.h:565
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static const char * data(const QByteArray &arr)
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glCompressedTexSubImage2D()

void QGLFunctions::glCompressedTexSubImage2D ( GLenum  target,
GLint  level,
GLint  xoffset,
GLint  yoffset,
GLsizei  width,
GLsizei  height,
GLenum  format,
GLsizei  imageSize,
const void *  data 
)
inline

Convenience function that calls glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data).

For more information, see the OpenGL/ES 2.0 documentation for glCompressedTexSubImage2D().

Definition at line 575 of file qglfunctions.h.

576 {
577 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
578  ::glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
579 #else
581  d_ptr->compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
582 #endif
583 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data)
Convenience function that calls glCompressedTexSubImage2D(target, level, xoffset, yoffset...
Definition: qglfunctions.h:575
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static const char * data(const QByteArray &arr)
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glCreateProgram()

GLuint QGLFunctions::glCreateProgram ( )
inline

Convenience function that calls glCreateProgram().

For more information, see the OpenGL/ES 2.0 documentation for glCreateProgram().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 585 of file qglfunctions.h.

586 {
587 #if defined(QT_OPENGL_ES_2)
589 #else
591  return d_ptr->createProgram();
592 #endif
593 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define glCreateProgram
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glCreateShader()

GLuint QGLFunctions::glCreateShader ( GLenum  type)
inline

Convenience function that calls glCreateShader(type).

For more information, see the OpenGL/ES 2.0 documentation for glCreateShader().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 595 of file qglfunctions.h.

596 {
597 #if defined(QT_OPENGL_ES_2)
599 #else
601  return d_ptr->createShader(type);
602 #endif
603 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
int type
Definition: qmetatype.cpp:239
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define glCreateShader
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glDeleteBuffers()

void QGLFunctions::glDeleteBuffers ( GLsizei  n,
const GLuint *  buffers 
)
inline

Convenience function that calls glDeleteBuffers(n, buffers).

For more information, see the OpenGL/ES 2.0 documentation for glDeleteBuffers().

Definition at line 605 of file qglfunctions.h.

606 {
607 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
608  ::glDeleteBuffers(n, buffers);
609 #else
611  d_ptr->deleteBuffers(n, buffers);
612 #endif
613 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glDeleteBuffers(GLsizei n, const GLuint *buffers)
Convenience function that calls glDeleteBuffers(n, buffers).
Definition: qglfunctions.h:605
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glDeleteFramebuffers()

void QGLFunctions::glDeleteFramebuffers ( GLsizei  n,
const GLuint *  framebuffers 
)
inline

Convenience function that calls glDeleteFramebuffers(n, framebuffers).

For more information, see the OpenGL/ES 2.0 documentation for glDeleteFramebuffers().

Definition at line 615 of file qglfunctions.h.

616 {
617 #if defined(QT_OPENGL_ES_2)
618  ::glDeleteFramebuffers(n, framebuffers);
619 #else
621  d_ptr->deleteFramebuffers(n, framebuffers);
622 #endif
623 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers)
Convenience function that calls glDeleteFramebuffers(n, framebuffers).
Definition: qglfunctions.h:615
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glDeleteProgram()

void QGLFunctions::glDeleteProgram ( GLuint  program)
inline

Convenience function that calls glDeleteProgram(program).

For more information, see the OpenGL/ES 2.0 documentation for glDeleteProgram().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 625 of file qglfunctions.h.

626 {
627 #if defined(QT_OPENGL_ES_2)
628  ::glDeleteProgram(program);
629 #else
631  d_ptr->deleteProgram(program);
632 #endif
633 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glDeleteProgram(GLuint program)
Convenience function that calls glDeleteProgram(program).
Definition: qglfunctions.h:625

◆ glDeleteRenderbuffers()

void QGLFunctions::glDeleteRenderbuffers ( GLsizei  n,
const GLuint *  renderbuffers 
)
inline

Convenience function that calls glDeleteRenderbuffers(n, renderbuffers).

For more information, see the OpenGL/ES 2.0 documentation for glDeleteRenderbuffers().

Definition at line 635 of file qglfunctions.h.

636 {
637 #if defined(QT_OPENGL_ES_2)
638  ::glDeleteRenderbuffers(n, renderbuffers);
639 #else
641  d_ptr->deleteRenderbuffers(n, renderbuffers);
642 #endif
643 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers)
Convenience function that calls glDeleteRenderbuffers(n, renderbuffers).
Definition: qglfunctions.h:635
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glDeleteShader()

void QGLFunctions::glDeleteShader ( GLuint  shader)
inline

Convenience function that calls glDeleteShader(shader).

For more information, see the OpenGL/ES 2.0 documentation for glDeleteShader().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 645 of file qglfunctions.h.

646 {
647 #if defined(QT_OPENGL_ES_2)
648  ::glDeleteShader(shader);
649 #else
651  d_ptr->deleteShader(shader);
652 #endif
653 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glDeleteShader(GLuint shader)
Convenience function that calls glDeleteShader(shader).
Definition: qglfunctions.h:645
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glDepthRangef()

void QGLFunctions::glDepthRangef ( GLclampf  zNear,
GLclampf  zFar 
)
inline

Convenience function that calls glDepthRange(zNear, zFar) on desktop OpenGL systems and glDepthRangef(zNear, zFar) on embedded OpenGL/ES systems.

For more information, see the OpenGL/ES 2.0 documentation for glDepthRangef().

Definition at line 655 of file qglfunctions.h.

656 {
657 #ifndef QT_OPENGL_ES
658  ::glDepthRange(zNear, zFar);
659 #else
660  ::glDepthRangef(zNear, zFar);
661 #endif
662 }
void glDepthRangef(GLclampf zNear, GLclampf zFar)
Convenience function that calls glDepthRange(zNear, zFar) on desktop OpenGL systems and glDepthRangef...
Definition: qglfunctions.h:655

◆ glDetachShader()

void QGLFunctions::glDetachShader ( GLuint  program,
GLuint  shader 
)
inline

Convenience function that calls glDetachShader(program, shader).

For more information, see the OpenGL/ES 2.0 documentation for glDetachShader().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 664 of file qglfunctions.h.

665 {
666 #if defined(QT_OPENGL_ES_2)
667  ::glDetachShader(program, shader);
668 #else
670  d_ptr->detachShader(program, shader);
671 #endif
672 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glDetachShader(GLuint program, GLuint shader)
Convenience function that calls glDetachShader(program, shader).
Definition: qglfunctions.h:664
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glDisableVertexAttribArray()

void QGLFunctions::glDisableVertexAttribArray ( GLuint  index)
inline

Convenience function that calls glDisableVertexAttribArray(index).

For more information, see the OpenGL/ES 2.0 documentation for glDisableVertexAttribArray().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 674 of file qglfunctions.h.

675 {
676 #if defined(QT_OPENGL_ES_2)
678 #else
680  d_ptr->disableVertexAttribArray(index);
681 #endif
682 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glDisableVertexAttribArray(GLuint index)
Convenience function that calls glDisableVertexAttribArray(index).
Definition: qglfunctions.h:674
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
quint16 index

◆ glEnableVertexAttribArray()

void QGLFunctions::glEnableVertexAttribArray ( GLuint  index)
inline

Convenience function that calls glEnableVertexAttribArray(index).

For more information, see the OpenGL/ES 2.0 documentation for glEnableVertexAttribArray().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 684 of file qglfunctions.h.

685 {
686 #if defined(QT_OPENGL_ES_2)
688 #else
690  d_ptr->enableVertexAttribArray(index);
691 #endif
692 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glEnableVertexAttribArray(GLuint index)
Convenience function that calls glEnableVertexAttribArray(index).
Definition: qglfunctions.h:684
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
quint16 index

◆ glFramebufferRenderbuffer()

void QGLFunctions::glFramebufferRenderbuffer ( GLenum  target,
GLenum  attachment,
GLenum  renderbuffertarget,
GLuint  renderbuffer 
)
inline

Convenience function that calls glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer).

For more information, see the OpenGL/ES 2.0 documentation for glFramebufferRenderbuffer().

Definition at line 694 of file qglfunctions.h.

695 {
696 #if defined(QT_OPENGL_ES_2)
697  ::glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
698 #else
700  d_ptr->framebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
701 #endif
702 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
Convenience function that calls glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer).
Definition: qglfunctions.h:694
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glFramebufferTexture2D()

void QGLFunctions::glFramebufferTexture2D ( GLenum  target,
GLenum  attachment,
GLenum  textarget,
GLuint  texture,
GLint  level 
)
inline

Convenience function that calls glFramebufferTexture2D(target, attachment, textarget, texture, level).

For more information, see the OpenGL/ES 2.0 documentation for glFramebufferTexture2D().

Definition at line 704 of file qglfunctions.h.

705 {
706 #if defined(QT_OPENGL_ES_2)
707  ::glFramebufferTexture2D(target, attachment, textarget, texture, level);
708 #else
710  d_ptr->framebufferTexture2D(target, attachment, textarget, texture, level);
711 #endif
712 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
Convenience function that calls glFramebufferTexture2D(target, attachment, textarget, texture, level).
Definition: qglfunctions.h:704
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glGenBuffers()

void QGLFunctions::glGenBuffers ( GLsizei  n,
GLuint *  buffers 
)
inline

Convenience function that calls glGenBuffers(n, buffers).

For more information, see the OpenGL/ES 2.0 documentation for glGenBuffers().

Definition at line 714 of file qglfunctions.h.

715 {
716 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
717  ::glGenBuffers(n, buffers);
718 #else
720  d_ptr->genBuffers(n, buffers);
721 #endif
722 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glGenBuffers(GLsizei n, GLuint *buffers)
Convenience function that calls glGenBuffers(n, buffers).
Definition: qglfunctions.h:714
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glGenerateMipmap()

void QGLFunctions::glGenerateMipmap ( GLenum  target)
inline

Convenience function that calls glGenerateMipmap(target).

For more information, see the OpenGL/ES 2.0 documentation for glGenerateMipmap().

Definition at line 724 of file qglfunctions.h.

725 {
726 #if defined(QT_OPENGL_ES_2)
727  ::glGenerateMipmap(target);
728 #else
730  d_ptr->generateMipmap(target);
731 #endif
732 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glGenerateMipmap(GLenum target)
Convenience function that calls glGenerateMipmap(target).
Definition: qglfunctions.h:724

◆ glGenFramebuffers()

void QGLFunctions::glGenFramebuffers ( GLsizei  n,
GLuint *  framebuffers 
)
inline

Convenience function that calls glGenFramebuffers(n, framebuffers).

For more information, see the OpenGL/ES 2.0 documentation for glGenFramebuffers().

Definition at line 734 of file qglfunctions.h.

735 {
736 #if defined(QT_OPENGL_ES_2)
737  ::glGenFramebuffers(n, framebuffers);
738 #else
740  d_ptr->genFramebuffers(n, framebuffers);
741 #endif
742 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glGenFramebuffers(GLsizei n, GLuint *framebuffers)
Convenience function that calls glGenFramebuffers(n, framebuffers).
Definition: qglfunctions.h:734
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glGenRenderbuffers()

void QGLFunctions::glGenRenderbuffers ( GLsizei  n,
GLuint *  renderbuffers 
)
inline

Convenience function that calls glGenRenderbuffers(n, renderbuffers).

For more information, see the OpenGL/ES 2.0 documentation for glGenRenderbuffers().

Definition at line 744 of file qglfunctions.h.

745 {
746 #if defined(QT_OPENGL_ES_2)
747  ::glGenRenderbuffers(n, renderbuffers);
748 #else
750  d_ptr->genRenderbuffers(n, renderbuffers);
751 #endif
752 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glGenRenderbuffers(GLsizei n, GLuint *renderbuffers)
Convenience function that calls glGenRenderbuffers(n, renderbuffers).
Definition: qglfunctions.h:744
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glGetActiveAttrib()

void QGLFunctions::glGetActiveAttrib ( GLuint  program,
GLuint  index,
GLsizei  bufsize,
GLsizei length,
GLint size,
GLenum type,
char *  name 
)
inline

Convenience function that calls glGetActiveAttrib(program, index, bufsize, length, size, type, name).

For more information, see the OpenGL/ES 2.0 documentation for glGetActiveAttrib().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 754 of file qglfunctions.h.

755 {
756 #if defined(QT_OPENGL_ES_2)
757  ::glGetActiveAttrib(program, index, bufsize, length, size, type, name);
758 #else
760  d_ptr->getActiveAttrib(program, index, bufsize, length, size, type, name);
761 #endif
762 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
int type
Definition: qmetatype.cpp:239
void glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)
Convenience function that calls glGetActiveAttrib(program, index, bufsize, length, size, type, name).
Definition: qglfunctions.h:754
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
const char * name
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
quint16 index

◆ glGetActiveUniform()

void QGLFunctions::glGetActiveUniform ( GLuint  program,
GLuint  index,
GLsizei  bufsize,
GLsizei length,
GLint size,
GLenum type,
char *  name 
)
inline

Convenience function that calls glGetActiveUniform(program, index, bufsize, length, size, type, name).

For more information, see the OpenGL/ES 2.0 documentation for glGetActiveUniform().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 764 of file qglfunctions.h.

765 {
766 #if defined(QT_OPENGL_ES_2)
767  ::glGetActiveUniform(program, index, bufsize, length, size, type, name);
768 #else
770  d_ptr->getActiveUniform(program, index, bufsize, length, size, type, name);
771 #endif
772 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
int type
Definition: qmetatype.cpp:239
void glGetActiveUniform(GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)
Convenience function that calls glGetActiveUniform(program, index, bufsize, length, size, type, name).
Definition: qglfunctions.h:764
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
const char * name
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
quint16 index

◆ glGetAttachedShaders()

void QGLFunctions::glGetAttachedShaders ( GLuint  program,
GLsizei  maxcount,
GLsizei count,
GLuint *  shaders 
)
inline

Convenience function that calls glGetAttachedShaders(program, maxcount, count, shaders).

For more information, see the OpenGL/ES 2.0 documentation for glGetAttachedShaders().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 774 of file qglfunctions.h.

775 {
776 #if defined(QT_OPENGL_ES_2)
777  ::glGetAttachedShaders(program, maxcount, count, shaders);
778 #else
780  d_ptr->getAttachedShaders(program, maxcount, count, shaders);
781 #endif
782 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders)
Convenience function that calls glGetAttachedShaders(program, maxcount, count, shaders).
Definition: qglfunctions.h:774

◆ glGetAttribLocation()

int QGLFunctions::glGetAttribLocation ( GLuint  program,
const char *  name 
)
inline

Convenience function that calls glGetAttribLocation(program, name).

For more information, see the OpenGL/ES 2.0 documentation for glGetAttribLocation().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 784 of file qglfunctions.h.

785 {
786 #if defined(QT_OPENGL_ES_2)
788 #else
790  return d_ptr->getAttribLocation(program, name);
791 #endif
792 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define glGetAttribLocation
const char * name
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glGetBufferParameteriv()

void QGLFunctions::glGetBufferParameteriv ( GLenum  target,
GLenum  pname,
GLint params 
)
inline

Convenience function that calls glGetBufferParameteriv(target, pname, params).

For more information, see the OpenGL/ES 2.0 documentation for glGetBufferParameteriv().

Definition at line 794 of file qglfunctions.h.

795 {
796 #if defined(QT_OPENGL_ES_2)
797  ::glGetBufferParameteriv(target, pname, params);
798 #else
800  d_ptr->getBufferParameteriv(target, pname, params);
801 #endif
802 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params)
Convenience function that calls glGetBufferParameteriv(target, pname, params).
Definition: qglfunctions.h:794

◆ glGetFramebufferAttachmentParameteriv()

void QGLFunctions::glGetFramebufferAttachmentParameteriv ( GLenum  target,
GLenum  attachment,
GLenum  pname,
GLint params 
)
inline

Convenience function that calls glGetFramebufferAttachmentParameteriv(target, attachment, pname, params).

For more information, see the OpenGL/ES 2.0 documentation for glGetFramebufferAttachmentParameteriv().

Definition at line 804 of file qglfunctions.h.

805 {
806 #if defined(QT_OPENGL_ES_2)
807  ::glGetFramebufferAttachmentParameteriv(target, attachment, pname, params);
808 #else
810  d_ptr->getFramebufferAttachmentParameteriv(target, attachment, pname, params);
811 #endif
812 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params)
Convenience function that calls glGetFramebufferAttachmentParameteriv(target, attachment, pname, params).
Definition: qglfunctions.h:804
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glGetProgramInfoLog()

void QGLFunctions::glGetProgramInfoLog ( GLuint  program,
GLsizei  bufsize,
GLsizei length,
char *  infolog 
)
inline

Convenience function that calls glGetProgramInfoLog(program, bufsize, length, infolog).

For more information, see the OpenGL/ES 2.0 documentation for glGetProgramInfoLog().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 824 of file qglfunctions.h.

825 {
826 #if defined(QT_OPENGL_ES_2)
827  ::glGetProgramInfoLog(program, bufsize, length, infolog);
828 #else
830  d_ptr->getProgramInfoLog(program, bufsize, length, infolog);
831 #endif
832 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glGetProgramInfoLog(GLuint program, GLsizei bufsize, GLsizei *length, char *infolog)
Convenience function that calls glGetProgramInfoLog(program, bufsize, length, infolog).
Definition: qglfunctions.h:824
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glGetProgramiv()

void QGLFunctions::glGetProgramiv ( GLuint  program,
GLenum  pname,
GLint params 
)
inline

Convenience function that calls glGetProgramiv(program, pname, params).

For more information, see the OpenGL/ES 2.0 documentation for glGetProgramiv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 814 of file qglfunctions.h.

815 {
816 #if defined(QT_OPENGL_ES_2)
817  ::glGetProgramiv(program, pname, params);
818 #else
820  d_ptr->getProgramiv(program, pname, params);
821 #endif
822 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glGetProgramiv(GLuint program, GLenum pname, GLint *params)
Convenience function that calls glGetProgramiv(program, pname, params).
Definition: qglfunctions.h:814
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glGetRenderbufferParameteriv()

void QGLFunctions::glGetRenderbufferParameteriv ( GLenum  target,
GLenum  pname,
GLint params 
)
inline

Convenience function that calls glGetRenderbufferParameteriv(target, pname, params).

For more information, see the OpenGL/ES 2.0 documentation for glGetRenderbufferParameteriv().

Definition at line 834 of file qglfunctions.h.

835 {
836 #if defined(QT_OPENGL_ES_2)
837  ::glGetRenderbufferParameteriv(target, pname, params);
838 #else
840  d_ptr->getRenderbufferParameteriv(target, pname, params);
841 #endif
842 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params)
Convenience function that calls glGetRenderbufferParameteriv(target, pname, params).
Definition: qglfunctions.h:834
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glGetShaderInfoLog()

void QGLFunctions::glGetShaderInfoLog ( GLuint  shader,
GLsizei  bufsize,
GLsizei length,
char *  infolog 
)
inline

Convenience function that calls glGetShaderInfoLog(shader, bufsize, length, infolog).

For more information, see the OpenGL/ES 2.0 documentation for glGetShaderInfoLog().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 854 of file qglfunctions.h.

855 {
856 #if defined(QT_OPENGL_ES_2)
857  ::glGetShaderInfoLog(shader, bufsize, length, infolog);
858 #else
860  d_ptr->getShaderInfoLog(shader, bufsize, length, infolog);
861 #endif
862 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glGetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei *length, char *infolog)
Convenience function that calls glGetShaderInfoLog(shader, bufsize, length, infolog).
Definition: qglfunctions.h:854
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glGetShaderiv()

void QGLFunctions::glGetShaderiv ( GLuint  shader,
GLenum  pname,
GLint params 
)
inline

Convenience function that calls glGetShaderiv(shader, pname, params).

For more information, see the OpenGL/ES 2.0 documentation for glGetShaderiv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 844 of file qglfunctions.h.

845 {
846 #if defined(QT_OPENGL_ES_2)
847  ::glGetShaderiv(shader, pname, params);
848 #else
850  d_ptr->getShaderiv(shader, pname, params);
851 #endif
852 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glGetShaderiv(GLuint shader, GLenum pname, GLint *params)
Convenience function that calls glGetShaderiv(shader, pname, params).
Definition: qglfunctions.h:844

◆ glGetShaderPrecisionFormat()

void QGLFunctions::glGetShaderPrecisionFormat ( GLenum  shadertype,
GLenum  precisiontype,
GLint range,
GLint precision 
)
inline

Convenience function that calls glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision).

For more information, see the OpenGL/ES 2.0 documentation for glGetShaderPrecisionFormat().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 864 of file qglfunctions.h.

865 {
866 #if defined(QT_OPENGL_ES_2)
867  ::glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision);
868 #else
870  d_ptr->getShaderPrecisionFormat(shadertype, precisiontype, range, precision);
871 #endif
872 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)
Convenience function that calls glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision).
Definition: qglfunctions.h:864

◆ glGetShaderSource()

void QGLFunctions::glGetShaderSource ( GLuint  shader,
GLsizei  bufsize,
GLsizei length,
char *  source 
)
inline

Convenience function that calls glGetShaderSource(shader, bufsize, length, source).

For more information, see the OpenGL/ES 2.0 documentation for glGetShaderSource().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 874 of file qglfunctions.h.

875 {
876 #if defined(QT_OPENGL_ES_2)
877  ::glGetShaderSource(shader, bufsize, length, source);
878 #else
880  d_ptr->getShaderSource(shader, bufsize, length, source);
881 #endif
882 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei *length, char *source)
Convenience function that calls glGetShaderSource(shader, bufsize, length, source).
Definition: qglfunctions.h:874

◆ glGetUniformfv()

void QGLFunctions::glGetUniformfv ( GLuint  program,
GLint  location,
GLfloat *  params 
)
inline

Convenience function that calls glGetUniformfv(program, location, params).

For more information, see the OpenGL/ES 2.0 documentation for glGetUniformfv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 884 of file qglfunctions.h.

885 {
886 #if defined(QT_OPENGL_ES_2)
887  ::glGetUniformfv(program, location, params);
888 #else
890  d_ptr->getUniformfv(program, location, params);
891 #endif
892 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glGetUniformfv(GLuint program, GLint location, GLfloat *params)
Convenience function that calls glGetUniformfv(program, location, params).
Definition: qglfunctions.h:884

◆ glGetUniformiv()

void QGLFunctions::glGetUniformiv ( GLuint  program,
GLint  location,
GLint params 
)
inline

Convenience function that calls glGetUniformiv(program, location, params).

For more information, see the OpenGL/ES 2.0 documentation for glGetUniformiv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 894 of file qglfunctions.h.

895 {
896 #if defined(QT_OPENGL_ES_2)
897  ::glGetUniformiv(program, location, params);
898 #else
900  d_ptr->getUniformiv(program, location, params);
901 #endif
902 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glGetUniformiv(GLuint program, GLint location, GLint *params)
Convenience function that calls glGetUniformiv(program, location, params).
Definition: qglfunctions.h:894
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glGetUniformLocation()

int QGLFunctions::glGetUniformLocation ( GLuint  program,
const char *  name 
)
inline

Convenience function that calls glGetUniformLocation(program, name).

For more information, see the OpenGL/ES 2.0 documentation for glGetUniformLocation().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 904 of file qglfunctions.h.

905 {
906 #if defined(QT_OPENGL_ES_2)
908 #else
910  return d_ptr->getUniformLocation(program, name);
911 #endif
912 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
const char * name
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
#define glGetUniformLocation

◆ glGetVertexAttribfv()

void QGLFunctions::glGetVertexAttribfv ( GLuint  index,
GLenum  pname,
GLfloat *  params 
)
inline

Convenience function that calls glGetVertexAttribfv(index, pname, params).

For more information, see the OpenGL/ES 2.0 documentation for glGetVertexAttribfv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 914 of file qglfunctions.h.

915 {
916 #if defined(QT_OPENGL_ES_2)
917  ::glGetVertexAttribfv(index, pname, params);
918 #else
920  d_ptr->getVertexAttribfv(index, pname, params);
921 #endif
922 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
quint16 index
void glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params)
Convenience function that calls glGetVertexAttribfv(index, pname, params).
Definition: qglfunctions.h:914

◆ glGetVertexAttribiv()

void QGLFunctions::glGetVertexAttribiv ( GLuint  index,
GLenum  pname,
GLint params 
)
inline

Convenience function that calls glGetVertexAttribiv(index, pname, params).

For more information, see the OpenGL/ES 2.0 documentation for glGetVertexAttribiv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 924 of file qglfunctions.h.

925 {
926 #if defined(QT_OPENGL_ES_2)
927  ::glGetVertexAttribiv(index, pname, params);
928 #else
930  d_ptr->getVertexAttribiv(index, pname, params);
931 #endif
932 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params)
Convenience function that calls glGetVertexAttribiv(index, pname, params).
Definition: qglfunctions.h:924
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
quint16 index

◆ glGetVertexAttribPointerv()

void QGLFunctions::glGetVertexAttribPointerv ( GLuint  index,
GLenum  pname,
void **  pointer 
)
inline

Convenience function that calls glGetVertexAttribPointerv(index, pname, pointer).

For more information, see the OpenGL/ES 2.0 documentation for glGetVertexAttribPointerv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 934 of file qglfunctions.h.

935 {
936 #if defined(QT_OPENGL_ES_2)
937  ::glGetVertexAttribPointerv(index, pname, pointer);
938 #else
940  d_ptr->getVertexAttribPointerv(index, pname, pointer);
941 #endif
942 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glGetVertexAttribPointerv(GLuint index, GLenum pname, void **pointer)
Convenience function that calls glGetVertexAttribPointerv(index, pname, pointer). ...
Definition: qglfunctions.h:934
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
quint16 index

◆ glIsBuffer()

GLboolean QGLFunctions::glIsBuffer ( GLuint  buffer)
inline

Convenience function that calls glIsBuffer(buffer).

For more information, see the OpenGL/ES 2.0 documentation for glIsBuffer().

Definition at line 944 of file qglfunctions.h.

945 {
946 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
947  return ::glIsBuffer(buffer);
948 #else
950  return d_ptr->isBuffer(buffer);
951 #endif
952 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glIsFramebuffer()

GLboolean QGLFunctions::glIsFramebuffer ( GLuint  framebuffer)
inline

Convenience function that calls glIsFramebuffer(framebuffer).

For more information, see the OpenGL/ES 2.0 documentation for glIsFramebuffer().

Definition at line 954 of file qglfunctions.h.

955 {
956 #if defined(QT_OPENGL_ES_2)
957  return ::glIsFramebuffer(framebuffer);
958 #else
960  return d_ptr->isFramebuffer(framebuffer);
961 #endif
962 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define glIsFramebuffer
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glIsProgram()

GLboolean QGLFunctions::glIsProgram ( GLuint  program)
inline

Convenience function that calls glIsProgram(program).

For more information, see the OpenGL/ES 2.0 documentation for glIsProgram().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 964 of file qglfunctions.h.

965 {
966 #if defined(QT_OPENGL_ES_2)
967  return ::glIsProgram(program);
968 #else
970  return d_ptr->isProgram(program);
971 #endif
972 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define glIsProgram
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glIsRenderbuffer()

GLboolean QGLFunctions::glIsRenderbuffer ( GLuint  renderbuffer)
inline

Convenience function that calls glIsRenderbuffer(renderbuffer).

For more information, see the OpenGL/ES 2.0 documentation for glIsRenderbuffer().

Definition at line 974 of file qglfunctions.h.

975 {
976 #if defined(QT_OPENGL_ES_2)
977  return ::glIsRenderbuffer(renderbuffer);
978 #else
980  return d_ptr->isRenderbuffer(renderbuffer);
981 #endif
982 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define glIsRenderbuffer
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glIsShader()

GLboolean QGLFunctions::glIsShader ( GLuint  shader)
inline

Convenience function that calls glIsShader(shader).

For more information, see the OpenGL/ES 2.0 documentation for glIsShader().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 984 of file qglfunctions.h.

985 {
986 #if defined(QT_OPENGL_ES_2)
987  return ::glIsShader(shader);
988 #else
990  return d_ptr->isShader(shader);
991 #endif
992 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define glIsShader
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glLinkProgram()

void QGLFunctions::glLinkProgram ( GLuint  program)
inline

Convenience function that calls glLinkProgram(program).

For more information, see the OpenGL/ES 2.0 documentation for glLinkProgram().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 994 of file qglfunctions.h.

995 {
996 #if defined(QT_OPENGL_ES_2)
997  ::glLinkProgram(program);
998 #else
1000  d_ptr->linkProgram(program);
1001 #endif
1002 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glLinkProgram(GLuint program)
Convenience function that calls glLinkProgram(program).
Definition: qglfunctions.h:994
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glReleaseShaderCompiler()

void QGLFunctions::glReleaseShaderCompiler ( )
inline

Convenience function that calls glReleaseShaderCompiler().

For more information, see the OpenGL/ES 2.0 documentation for glReleaseShaderCompiler().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1004 of file qglfunctions.h.

1005 {
1006 #if defined(QT_OPENGL_ES_2)
1008 #else
1010  d_ptr->releaseShaderCompiler();
1011 #endif
1012 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glReleaseShaderCompiler()
Convenience function that calls glReleaseShaderCompiler().
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glRenderbufferStorage()

void QGLFunctions::glRenderbufferStorage ( GLenum  target,
GLenum  internalformat,
GLsizei  width,
GLsizei  height 
)
inline

Convenience function that calls glRenderbufferStorage(target, internalformat, width, height).

For more information, see the OpenGL/ES 2.0 documentation for glRenderbufferStorage().

Definition at line 1014 of file qglfunctions.h.

1015 {
1016 #if defined(QT_OPENGL_ES_2)
1017  ::glRenderbufferStorage(target, internalformat, width, height);
1018 #else
1020  d_ptr->renderbufferStorage(target, internalformat, width, height);
1021 #endif
1022 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
Convenience function that calls glRenderbufferStorage(target, internalformat, width, height).
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glSampleCoverage()

void QGLFunctions::glSampleCoverage ( GLclampf  value,
GLboolean  invert 
)
inline

Convenience function that calls glSampleCoverage(value, invert).

For more information, see the OpenGL/ES 2.0 documentation for glSampleCoverage().

Definition at line 1024 of file qglfunctions.h.

1025 {
1026 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
1027  ::glSampleCoverage(value, invert);
1028 #else
1030  d_ptr->sampleCoverage(value, invert);
1031 #endif
1032 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glSampleCoverage(GLclampf value, GLboolean invert)
Convenience function that calls glSampleCoverage(value, invert).

◆ glShaderBinary()

void QGLFunctions::glShaderBinary ( GLint  n,
const GLuint *  shaders,
GLenum  binaryformat,
const void *  binary,
GLint  length 
)
inline

Convenience function that calls glShaderBinary(n, shaders, binaryformat, binary, length).

For more information, see the OpenGL/ES 2.0 documentation for glShaderBinary().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1034 of file qglfunctions.h.

1035 {
1036 #if defined(QT_OPENGL_ES_2)
1037  ::glShaderBinary(n, shaders, binaryformat, binary, length);
1038 #else
1040  d_ptr->shaderBinary(n, shaders, binaryformat, binary, length);
1041 #endif
1042 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glShaderBinary(GLint n, const GLuint *shaders, GLenum binaryformat, const void *binary, GLint length)
Convenience function that calls glShaderBinary(n, shaders, binaryformat, binary, length).
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glShaderSource()

void QGLFunctions::glShaderSource ( GLuint  shader,
GLsizei  count,
const char **  string,
const GLint length 
)
inline

Convenience function that calls glShaderSource(shader, count, string, length).

For more information, see the OpenGL/ES 2.0 documentation for glShaderSource().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1044 of file qglfunctions.h.

1045 {
1046 #if defined(QT_OPENGL_ES_2)
1047  ::glShaderSource(shader, count, string, length);
1048 #else
1050  d_ptr->shaderSource(shader, count, string, length);
1051 #endif
1052 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glShaderSource(GLuint shader, GLsizei count, const char **string, const GLint *length)
Convenience function that calls glShaderSource(shader, count, string, length).
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glStencilFuncSeparate()

void QGLFunctions::glStencilFuncSeparate ( GLenum  face,
GLenum  func,
GLint  ref,
GLuint  mask 
)
inline

Convenience function that calls glStencilFuncSeparate(face, func, ref, mask).

For more information, see the OpenGL/ES 2.0 documentation for glStencilFuncSeparate().

Definition at line 1054 of file qglfunctions.h.

1055 {
1056 #if defined(QT_OPENGL_ES_2)
1057  ::glStencilFuncSeparate(face, func, ref, mask);
1058 #else
1060  d_ptr->stencilFuncSeparate(face, func, ref, mask);
1061 #endif
1062 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
Convenience function that calls glStencilFuncSeparate(face, func, ref, mask).
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glStencilMaskSeparate()

void QGLFunctions::glStencilMaskSeparate ( GLenum  face,
GLuint  mask 
)
inline

Convenience function that calls glStencilMaskSeparate(face, mask).

For more information, see the OpenGL/ES 2.0 documentation for glStencilMaskSeparate().

Definition at line 1064 of file qglfunctions.h.

1065 {
1066 #if defined(QT_OPENGL_ES_2)
1067  ::glStencilMaskSeparate(face, mask);
1068 #else
1070  d_ptr->stencilMaskSeparate(face, mask);
1071 #endif
1072 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glStencilMaskSeparate(GLenum face, GLuint mask)
Convenience function that calls glStencilMaskSeparate(face, mask).
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glStencilOpSeparate()

void QGLFunctions::glStencilOpSeparate ( GLenum  face,
GLenum  fail,
GLenum  zfail,
GLenum  zpass 
)
inline

Convenience function that calls glStencilOpSeparate(face, fail, zfail, zpass).

For more information, see the OpenGL/ES 2.0 documentation for glStencilOpSeparate().

Definition at line 1074 of file qglfunctions.h.

1075 {
1076 #if defined(QT_OPENGL_ES_2)
1077  ::glStencilOpSeparate(face, fail, zfail, zpass);
1078 #else
1080  d_ptr->stencilOpSeparate(face, fail, zfail, zpass);
1081 #endif
1082 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
Convenience function that calls glStencilOpSeparate(face, fail, zfail, zpass).
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glUniform1f()

void QGLFunctions::glUniform1f ( GLint  location,
GLfloat  x 
)
inline

Convenience function that calls glUniform1f(location, x).

For more information, see the OpenGL/ES 2.0 documentation for glUniform1f().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1084 of file qglfunctions.h.

1085 {
1086 #if defined(QT_OPENGL_ES_2)
1087  ::glUniform1f(location, x);
1088 #else
1090  d_ptr->uniform1f(location, x);
1091 #endif
1092 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glUniform1f(GLint location, GLfloat x)
Convenience function that calls glUniform1f(location, x).
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glUniform1fv()

void QGLFunctions::glUniform1fv ( GLint  location,
GLsizei  count,
const GLfloat *  v 
)
inline

Convenience function that calls glUniform1fv(location, count, v).

For more information, see the OpenGL/ES 2.0 documentation for glUniform1fv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1094 of file qglfunctions.h.

1095 {
1096 #if defined(QT_OPENGL_ES_2)
1097  ::glUniform1fv(location, count, v);
1098 #else
1100  d_ptr->uniform1fv(location, count, v);
1101 #endif
1102 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glUniform1fv(GLint location, GLsizei count, const GLfloat *v)
Convenience function that calls glUniform1fv(location, count, v).
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glUniform1i()

void QGLFunctions::glUniform1i ( GLint  location,
GLint  x 
)
inline

Convenience function that calls glUniform1i(location, x).

For more information, see the OpenGL/ES 2.0 documentation for glUniform1i().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1104 of file qglfunctions.h.

1105 {
1106 #if defined(QT_OPENGL_ES_2)
1107  ::glUniform1i(location, x);
1108 #else
1110  d_ptr->uniform1i(location, x);
1111 #endif
1112 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glUniform1i(GLint location, GLint x)
Convenience function that calls glUniform1i(location, x).
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glUniform1iv()

void QGLFunctions::glUniform1iv ( GLint  location,
GLsizei  count,
const GLint v 
)
inline

Convenience function that calls glUniform1iv(location, count, v).

For more information, see the OpenGL/ES 2.0 documentation for glUniform1iv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1114 of file qglfunctions.h.

1115 {
1116 #if defined(QT_OPENGL_ES_2)
1117  ::glUniform1iv(location, count, v);
1118 #else
1120  d_ptr->uniform1iv(location, count, v);
1121 #endif
1122 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glUniform1iv(GLint location, GLsizei count, const GLint *v)
Convenience function that calls glUniform1iv(location, count, v).

◆ glUniform2f()

void QGLFunctions::glUniform2f ( GLint  location,
GLfloat  x,
GLfloat  y 
)
inline

Convenience function that calls glUniform2f(location, x, y).

For more information, see the OpenGL/ES 2.0 documentation for glUniform2f().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1124 of file qglfunctions.h.

1125 {
1126 #if defined(QT_OPENGL_ES_2)
1127  ::glUniform2f(location, x, y);
1128 #else
1130  d_ptr->uniform2f(location, x, y);
1131 #endif
1132 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glUniform2f(GLint location, GLfloat x, GLfloat y)
Convenience function that calls glUniform2f(location, x, y).

◆ glUniform2fv()

void QGLFunctions::glUniform2fv ( GLint  location,
GLsizei  count,
const GLfloat *  v 
)
inline

Convenience function that calls glUniform2fv(location, count, v).

For more information, see the OpenGL/ES 2.0 documentation for glUniform2fv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1134 of file qglfunctions.h.

1135 {
1136 #if defined(QT_OPENGL_ES_2)
1137  ::glUniform2fv(location, count, v);
1138 #else
1140  d_ptr->uniform2fv(location, count, v);
1141 #endif
1142 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glUniform2fv(GLint location, GLsizei count, const GLfloat *v)
Convenience function that calls glUniform2fv(location, count, v).
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glUniform2i()

void QGLFunctions::glUniform2i ( GLint  location,
GLint  x,
GLint  y 
)
inline

Convenience function that calls glUniform2i(location, x, y).

For more information, see the OpenGL/ES 2.0 documentation for glUniform2i().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1144 of file qglfunctions.h.

1145 {
1146 #if defined(QT_OPENGL_ES_2)
1147  ::glUniform2i(location, x, y);
1148 #else
1150  d_ptr->uniform2i(location, x, y);
1151 #endif
1152 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glUniform2i(GLint location, GLint x, GLint y)
Convenience function that calls glUniform2i(location, x, y).
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glUniform2iv()

void QGLFunctions::glUniform2iv ( GLint  location,
GLsizei  count,
const GLint v 
)
inline

Convenience function that calls glUniform2iv(location, count, v).

For more information, see the OpenGL/ES 2.0 documentation for glUniform2iv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1154 of file qglfunctions.h.

1155 {
1156 #if defined(QT_OPENGL_ES_2)
1157  ::glUniform2iv(location, count, v);
1158 #else
1160  d_ptr->uniform2iv(location, count, v);
1161 #endif
1162 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glUniform2iv(GLint location, GLsizei count, const GLint *v)
Convenience function that calls glUniform2iv(location, count, v).

◆ glUniform3f()

void QGLFunctions::glUniform3f ( GLint  location,
GLfloat  x,
GLfloat  y,
GLfloat  z 
)
inline

Convenience function that calls glUniform3f(location, x, y, z).

For more information, see the OpenGL/ES 2.0 documentation for glUniform3f().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1164 of file qglfunctions.h.

1165 {
1166 #if defined(QT_OPENGL_ES_2)
1167  ::glUniform3f(location, x, y, z);
1168 #else
1170  d_ptr->uniform3f(location, x, y, z);
1171 #endif
1172 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z)
Convenience function that calls glUniform3f(location, x, y, z).

◆ glUniform3fv()

void QGLFunctions::glUniform3fv ( GLint  location,
GLsizei  count,
const GLfloat *  v 
)
inline

Convenience function that calls glUniform3fv(location, count, v).

For more information, see the OpenGL/ES 2.0 documentation for glUniform3fv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1174 of file qglfunctions.h.

1175 {
1176 #if defined(QT_OPENGL_ES_2)
1177  ::glUniform3fv(location, count, v);
1178 #else
1180  d_ptr->uniform3fv(location, count, v);
1181 #endif
1182 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glUniform3fv(GLint location, GLsizei count, const GLfloat *v)
Convenience function that calls glUniform3fv(location, count, v).
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glUniform3i()

void QGLFunctions::glUniform3i ( GLint  location,
GLint  x,
GLint  y,
GLint  z 
)
inline

Convenience function that calls glUniform3i(location, x, y, z).

For more information, see the OpenGL/ES 2.0 documentation for glUniform3i().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1184 of file qglfunctions.h.

1185 {
1186 #if defined(QT_OPENGL_ES_2)
1187  ::glUniform3i(location, x, y, z);
1188 #else
1190  d_ptr->uniform3i(location, x, y, z);
1191 #endif
1192 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glUniform3i(GLint location, GLint x, GLint y, GLint z)
Convenience function that calls glUniform3i(location, x, y, z).
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glUniform3iv()

void QGLFunctions::glUniform3iv ( GLint  location,
GLsizei  count,
const GLint v 
)
inline

Convenience function that calls glUniform3iv(location, count, v).

For more information, see the OpenGL/ES 2.0 documentation for glUniform3iv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1194 of file qglfunctions.h.

1195 {
1196 #if defined(QT_OPENGL_ES_2)
1197  ::glUniform3iv(location, count, v);
1198 #else
1200  d_ptr->uniform3iv(location, count, v);
1201 #endif
1202 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glUniform3iv(GLint location, GLsizei count, const GLint *v)
Convenience function that calls glUniform3iv(location, count, v).
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glUniform4f()

void QGLFunctions::glUniform4f ( GLint  location,
GLfloat  x,
GLfloat  y,
GLfloat  z,
GLfloat  w 
)
inline

Convenience function that calls glUniform4f(location, x, y, z, w).

For more information, see the OpenGL/ES 2.0 documentation for glUniform4f().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1204 of file qglfunctions.h.

1205 {
1206 #if defined(QT_OPENGL_ES_2)
1207  ::glUniform4f(location, x, y, z, w);
1208 #else
1210  d_ptr->uniform4f(location, x, y, z, w);
1211 #endif
1212 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
Convenience function that calls glUniform4f(location, x, y, z, w).
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glUniform4fv()

void QGLFunctions::glUniform4fv ( GLint  location,
GLsizei  count,
const GLfloat *  v 
)
inline

Convenience function that calls glUniform4fv(location, count, v).

For more information, see the OpenGL/ES 2.0 documentation for glUniform4fv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1214 of file qglfunctions.h.

1215 {
1216 #if defined(QT_OPENGL_ES_2)
1217  ::glUniform4fv(location, count, v);
1218 #else
1220  d_ptr->uniform4fv(location, count, v);
1221 #endif
1222 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glUniform4fv(GLint location, GLsizei count, const GLfloat *v)
Convenience function that calls glUniform4fv(location, count, v).
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glUniform4i()

void QGLFunctions::glUniform4i ( GLint  location,
GLint  x,
GLint  y,
GLint  z,
GLint  w 
)
inline

Convenience function that calls glUniform4i(location, x, y, z, w).

For more information, see the OpenGL/ES 2.0 documentation for glUniform4i().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1224 of file qglfunctions.h.

1225 {
1226 #if defined(QT_OPENGL_ES_2)
1227  ::glUniform4i(location, x, y, z, w);
1228 #else
1230  d_ptr->uniform4i(location, x, y, z, w);
1231 #endif
1232 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w)
Convenience function that calls glUniform4i(location, x, y, z, w).
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glUniform4iv()

void QGLFunctions::glUniform4iv ( GLint  location,
GLsizei  count,
const GLint v 
)
inline

Convenience function that calls glUniform4iv(location, count, v).

For more information, see the OpenGL/ES 2.0 documentation for glUniform4iv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1234 of file qglfunctions.h.

1235 {
1236 #if defined(QT_OPENGL_ES_2)
1237  ::glUniform4iv(location, count, v);
1238 #else
1240  d_ptr->uniform4iv(location, count, v);
1241 #endif
1242 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glUniform4iv(GLint location, GLsizei count, const GLint *v)
Convenience function that calls glUniform4iv(location, count, v).
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glUniformMatrix2fv()

void QGLFunctions::glUniformMatrix2fv ( GLint  location,
GLsizei  count,
GLboolean  transpose,
const GLfloat *  value 
)
inline

Convenience function that calls glUniformMatrix2fv(location, count, transpose, value).

For more information, see the OpenGL/ES 2.0 documentation for glUniformMatrix2fv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1244 of file qglfunctions.h.

1245 {
1246 #if defined(QT_OPENGL_ES_2)
1247  ::glUniformMatrix2fv(location, count, transpose, value);
1248 #else
1250  d_ptr->uniformMatrix2fv(location, count, transpose, value);
1251 #endif
1252 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
Convenience function that calls glUniformMatrix2fv(location, count, transpose, value).
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glUniformMatrix3fv()

void QGLFunctions::glUniformMatrix3fv ( GLint  location,
GLsizei  count,
GLboolean  transpose,
const GLfloat *  value 
)
inline

Convenience function that calls glUniformMatrix3fv(location, count, transpose, value).

For more information, see the OpenGL/ES 2.0 documentation for glUniformMatrix3fv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1254 of file qglfunctions.h.

1255 {
1256 #if defined(QT_OPENGL_ES_2)
1257  ::glUniformMatrix3fv(location, count, transpose, value);
1258 #else
1260  d_ptr->uniformMatrix3fv(location, count, transpose, value);
1261 #endif
1262 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
Convenience function that calls glUniformMatrix3fv(location, count, transpose, value).

◆ glUniformMatrix4fv()

void QGLFunctions::glUniformMatrix4fv ( GLint  location,
GLsizei  count,
GLboolean  transpose,
const GLfloat *  value 
)
inline

Convenience function that calls glUniformMatrix4fv(location, count, transpose, value).

For more information, see the OpenGL/ES 2.0 documentation for glUniformMatrix4fv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1264 of file qglfunctions.h.

1265 {
1266 #if defined(QT_OPENGL_ES_2)
1267  ::glUniformMatrix4fv(location, count, transpose, value);
1268 #else
1270  d_ptr->uniformMatrix4fv(location, count, transpose, value);
1271 #endif
1272 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
Convenience function that calls glUniformMatrix4fv(location, count, transpose, value).

◆ glUseProgram()

void QGLFunctions::glUseProgram ( GLuint  program)
inline

Convenience function that calls glUseProgram(program).

For more information, see the OpenGL/ES 2.0 documentation for glUseProgram().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1274 of file qglfunctions.h.

1275 {
1276 #if defined(QT_OPENGL_ES_2)
1277  ::glUseProgram(program);
1278 #else
1280  d_ptr->useProgram(program);
1281 #endif
1282 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glUseProgram(GLuint program)
Convenience function that calls glUseProgram(program).

◆ glValidateProgram()

void QGLFunctions::glValidateProgram ( GLuint  program)
inline

Convenience function that calls glValidateProgram(program).

For more information, see the OpenGL/ES 2.0 documentation for glValidateProgram().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1284 of file qglfunctions.h.

1285 {
1286 #if defined(QT_OPENGL_ES_2)
1287  ::glValidateProgram(program);
1288 #else
1290  d_ptr->validateProgram(program);
1291 #endif
1292 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glValidateProgram(GLuint program)
Convenience function that calls glValidateProgram(program).
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glVertexAttrib1f()

void QGLFunctions::glVertexAttrib1f ( GLuint  indx,
GLfloat  x 
)
inline

Convenience function that calls glVertexAttrib1f(indx, x).

For more information, see the OpenGL/ES 2.0 documentation for glVertexAttrib1f().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1294 of file qglfunctions.h.

1295 {
1296 #if defined(QT_OPENGL_ES_2)
1297  ::glVertexAttrib1f(indx, x);
1298 #else
1300  d_ptr->vertexAttrib1f(indx, x);
1301 #endif
1302 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glVertexAttrib1f(GLuint indx, GLfloat x)
Convenience function that calls glVertexAttrib1f(indx, x).
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glVertexAttrib1fv()

void QGLFunctions::glVertexAttrib1fv ( GLuint  indx,
const GLfloat *  values 
)
inline

Convenience function that calls glVertexAttrib1fv(indx, values).

For more information, see the OpenGL/ES 2.0 documentation for glVertexAttrib1fv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1304 of file qglfunctions.h.

1305 {
1306 #if defined(QT_OPENGL_ES_2)
1307  ::glVertexAttrib1fv(indx, values);
1308 #else
1310  d_ptr->vertexAttrib1fv(indx, values);
1311 #endif
1312 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glVertexAttrib1fv(GLuint indx, const GLfloat *values)
Convenience function that calls glVertexAttrib1fv(indx, values).
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
quint16 values[128]
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glVertexAttrib2f()

void QGLFunctions::glVertexAttrib2f ( GLuint  indx,
GLfloat  x,
GLfloat  y 
)
inline

Convenience function that calls glVertexAttrib2f(indx, x, y).

For more information, see the OpenGL/ES 2.0 documentation for glVertexAttrib2f().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1314 of file qglfunctions.h.

1315 {
1316 #if defined(QT_OPENGL_ES_2)
1317  ::glVertexAttrib2f(indx, x, y);
1318 #else
1320  d_ptr->vertexAttrib2f(indx, x, y);
1321 #endif
1322 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y)
Convenience function that calls glVertexAttrib2f(indx, x, y).
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glVertexAttrib2fv()

void QGLFunctions::glVertexAttrib2fv ( GLuint  indx,
const GLfloat *  values 
)
inline

Convenience function that calls glVertexAttrib2fv(indx, values).

For more information, see the OpenGL/ES 2.0 documentation for glVertexAttrib2fv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1324 of file qglfunctions.h.

1325 {
1326 #if defined(QT_OPENGL_ES_2)
1327  ::glVertexAttrib2fv(indx, values);
1328 #else
1330  d_ptr->vertexAttrib2fv(indx, values);
1331 #endif
1332 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
quint16 values[128]
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glVertexAttrib2fv(GLuint indx, const GLfloat *values)
Convenience function that calls glVertexAttrib2fv(indx, values).

◆ glVertexAttrib3f()

void QGLFunctions::glVertexAttrib3f ( GLuint  indx,
GLfloat  x,
GLfloat  y,
GLfloat  z 
)
inline

Convenience function that calls glVertexAttrib3f(indx, x, y, z).

For more information, see the OpenGL/ES 2.0 documentation for glVertexAttrib3f().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1334 of file qglfunctions.h.

1335 {
1336 #if defined(QT_OPENGL_ES_2)
1337  ::glVertexAttrib3f(indx, x, y, z);
1338 #else
1340  d_ptr->vertexAttrib3f(indx, x, y, z);
1341 #endif
1342 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
void glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z)
Convenience function that calls glVertexAttrib3f(indx, x, y, z).
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glVertexAttrib3fv()

void QGLFunctions::glVertexAttrib3fv ( GLuint  indx,
const GLfloat *  values 
)
inline

Convenience function that calls glVertexAttrib3fv(indx, values).

For more information, see the OpenGL/ES 2.0 documentation for glVertexAttrib3fv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1344 of file qglfunctions.h.

1345 {
1346 #if defined(QT_OPENGL_ES_2)
1347  ::glVertexAttrib3fv(indx, values);
1348 #else
1350  d_ptr->vertexAttrib3fv(indx, values);
1351 #endif
1352 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
quint16 values[128]
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glVertexAttrib3fv(GLuint indx, const GLfloat *values)
Convenience function that calls glVertexAttrib3fv(indx, values).

◆ glVertexAttrib4f()

void QGLFunctions::glVertexAttrib4f ( GLuint  indx,
GLfloat  x,
GLfloat  y,
GLfloat  z,
GLfloat  w 
)
inline

Convenience function that calls glVertexAttrib4f(indx, x, y, z, w).

For more information, see the OpenGL/ES 2.0 documentation for glVertexAttrib4f().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1354 of file qglfunctions.h.

1355 {
1356 #if defined(QT_OPENGL_ES_2)
1357  ::glVertexAttrib4f(indx, x, y, z, w);
1358 #else
1360  d_ptr->vertexAttrib4f(indx, x, y, z, w);
1361 #endif
1362 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
Convenience function that calls glVertexAttrib4f(indx, x, y, z, w).
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ glVertexAttrib4fv()

void QGLFunctions::glVertexAttrib4fv ( GLuint  indx,
const GLfloat *  values 
)
inline

Convenience function that calls glVertexAttrib4fv(indx, values).

For more information, see the OpenGL/ES 2.0 documentation for glVertexAttrib4fv().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1364 of file qglfunctions.h.

1365 {
1366 #if defined(QT_OPENGL_ES_2)
1367  ::glVertexAttrib4fv(indx, values);
1368 #else
1370  d_ptr->vertexAttrib4fv(indx, values);
1371 #endif
1372 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
quint16 values[128]
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308
void glVertexAttrib4fv(GLuint indx, const GLfloat *values)
Convenience function that calls glVertexAttrib4fv(indx, values).

◆ glVertexAttribPointer()

void QGLFunctions::glVertexAttribPointer ( GLuint  indx,
GLint  size,
GLenum  type,
GLboolean  normalized,
GLsizei  stride,
const void *  ptr 
)
inline

Convenience function that calls glVertexAttribPointer(indx, size, type, normalized, stride, ptr).

For more information, see the OpenGL/ES 2.0 documentation for glVertexAttribPointer().

This convenience function will do nothing on OpenGL/ES 1.x systems.

Definition at line 1374 of file qglfunctions.h.

1375 {
1376 #if defined(QT_OPENGL_ES_2)
1377  ::glVertexAttribPointer(indx, size, type, normalized, stride, ptr);
1378 #else
1380  d_ptr->vertexAttribPointer(indx, size, type, normalized, stride, ptr);
1381 #endif
1382 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
int type
Definition: qmetatype.cpp:239
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
const T * ptr(const T &t)
void glVertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *ptr)
Convenience function that calls glVertexAttribPointer(indx, size, type, normalized, stride, ptr).
static bool isInitialized(const QGLFunctionsPrivate *d)
Definition: qglfunctions.h:308

◆ hasOpenGLFeature()

bool QGLFunctions::hasOpenGLFeature ( QGLFunctions::OpenGLFeature  feature) const

Returns true if feature is present on this system's OpenGL implementation; false otherwise.

It is assumed that the QGLContext associated with this function resolver is current.

See also
openGLFeatures()

Definition at line 340 of file qglfunctions.cpp.

Referenced by QGL2PaintEngineExPrivate::updateBrushTexture().

341 {
343  if (!d)
344  return false;
345  if (d->m_features == -1)
347  return (d->m_features & int(feature)) != 0;
348 }
double d
Definition: qnumeric_p.h:62
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
static int qt_gl_resolve_features()

◆ initializeGLFunctions()

void QGLFunctions::initializeGLFunctions ( const QGLContext context = 0)

Initializes GL function resolution for context.

If context is null, then the current QGLContext will be used.

After calling this function, the QGLFunctions object can only be used with context and other contexts that share with it. Call initializeGLFunctions() again to change the object's context association.

Definition at line 359 of file qglfunctions.cpp.

360 {
361  d_ptr = qt_gl_functions(context);
362 }
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
static QGLFunctionsPrivateEx * qt_gl_functions(const QGLContext *context=0)

◆ isInitialized()

static bool QGLFunctions::isInitialized ( const QGLFunctionsPrivate d)
inlinestaticprivate

Definition at line 308 of file qglfunctions.h.

Referenced by glActiveTexture(), glAttachShader(), glBindAttribLocation(), glBindBuffer(), glBindFramebuffer(), glBindRenderbuffer(), glBlendColor(), glBlendEquation(), glBlendEquationSeparate(), glBlendFuncSeparate(), glBufferData(), glBufferSubData(), glCheckFramebufferStatus(), glCompileShader(), glCompressedTexImage2D(), glCompressedTexSubImage2D(), glCreateProgram(), glCreateShader(), glDeleteBuffers(), glDeleteFramebuffers(), glDeleteProgram(), glDeleteRenderbuffers(), glDeleteShader(), glDetachShader(), glDisableVertexAttribArray(), glEnableVertexAttribArray(), glFramebufferRenderbuffer(), glFramebufferTexture2D(), glGenBuffers(), glGenerateMipmap(), glGenFramebuffers(), glGenRenderbuffers(), glGetActiveAttrib(), glGetActiveUniform(), glGetAttachedShaders(), glGetAttribLocation(), glGetBufferParameteriv(), glGetFramebufferAttachmentParameteriv(), glGetProgramInfoLog(), glGetProgramiv(), glGetRenderbufferParameteriv(), glGetShaderInfoLog(), glGetShaderiv(), glGetShaderPrecisionFormat(), glGetShaderSource(), glGetUniformfv(), glGetUniformiv(), glGetUniformLocation(), glGetVertexAttribfv(), glGetVertexAttribiv(), glGetVertexAttribPointerv(), glIsBuffer(), glIsFramebuffer(), glIsProgram(), glIsRenderbuffer(), glIsShader(), glLinkProgram(), glReleaseShaderCompiler(), glRenderbufferStorage(), glSampleCoverage(), glShaderBinary(), glShaderSource(), glStencilFuncSeparate(), glStencilMaskSeparate(), glStencilOpSeparate(), glUniform1f(), glUniform1fv(), glUniform1i(), glUniform1iv(), glUniform2f(), glUniform2fv(), glUniform2i(), glUniform2iv(), glUniform3f(), glUniform3fv(), glUniform3i(), glUniform3iv(), glUniform4f(), glUniform4fv(), glUniform4i(), glUniform4iv(), glUniformMatrix2fv(), glUniformMatrix3fv(), glUniformMatrix4fv(), glUseProgram(), glValidateProgram(), glVertexAttrib1f(), glVertexAttrib1fv(), glVertexAttrib2f(), glVertexAttrib2fv(), glVertexAttrib3f(), glVertexAttrib3fv(), glVertexAttrib4f(), glVertexAttrib4fv(), and glVertexAttribPointer().

308 { return d != 0; }

◆ openGLFeatures()

QGLFunctions::OpenGLFeatures QGLFunctions::openGLFeatures ( ) const

Returns the set of features that are present on this system's OpenGL implementation.

It is assumed that the QGLContext associated with this function resolver is current.

See also
hasOpenGLFeature()

Definition at line 321 of file qglfunctions.cpp.

322 {
324  if (!d)
325  return 0;
326  if (d->m_features == -1)
328  return QGLFunctions::OpenGLFeatures(d->m_features);
329 }
double d
Definition: qnumeric_p.h:62
QGLFunctionsPrivate * d_ptr
Definition: qglfunctions.h:307
static int qt_gl_resolve_features()

Properties

◆ d_ptr

QGLFunctionsPrivate* QGLFunctions::d_ptr
private

Definition at line 307 of file qglfunctions.h.

Referenced by hasOpenGLFeature(), initializeGLFunctions(), and openGLFeatures().


The documentation for this class was generated from the following files: