QOpenGLFunctions¶
The
QOpenGLFunctions
class provides cross-platform access to the OpenGL ES 2.0 API. More…
Inherited by: QOpenGLExtraFunctions
New in version 5.0.
Synopsis¶
Functions¶
def
glActiveTexture
(texture)def
glAttachShader
(program, shader)def
glBindAttribLocation
(program, index, name)def
glBindBuffer
(target, buffer)def
glBindFramebuffer
(target, framebuffer)def
glBindRenderbuffer
(target, renderbuffer)def
glBindTexture
(target, texture)def
glBlendColor
(red, green, blue, alpha)def
glBlendEquation
(mode)def
glBlendEquationSeparate
(modeRGB, modeAlpha)def
glBlendFunc
(sfactor, dfactor)def
glBlendFuncSeparate
(srcRGB, dstRGB, srcAlpha, dstAlpha)def
glCheckFramebufferStatus
(target)def
glClear
(mask)def
glClearColor
(red, green, blue, alpha)def
glClearDepthf
(depth)def
glClearStencil
(s)def
glColorMask
(red, green, blue, alpha)def
glCompileShader
(shader)def
glCompressedTexImage2D
(target, level, internalformat, width, height, border, imageSize, data)def
glCompressedTexSubImage2D
(target, level, xoffset, yoffset, width, height, format, imageSize, data)def
glCopyTexImage2D
(target, level, internalformat, x, y, width, height, border)def
glCopyTexSubImage2D
(target, level, xoffset, yoffset, x, y, width, height)def
glCreateProgram
()def
glCreateShader
(type)def
glCullFace
(mode)def
glDeleteBuffers
(n, buffers)def
glDeleteFramebuffers
(n, framebuffers)def
glDeleteProgram
(program)def
glDeleteRenderbuffers
(n, renderbuffers)def
glDeleteShader
(shader)def
glDeleteTextures
(n, textures)def
glDepthFunc
(func)def
glDepthMask
(flag)def
glDepthRangef
(zNear, zFar)def
glDetachShader
(program, shader)def
glDisable
(cap)def
glDisableVertexAttribArray
(index)def
glDrawArrays
(mode, first, count)def
glDrawElements
(mode, count, type, indices)def
glEnable
(cap)def
glEnableVertexAttribArray
(index)def
glFinish
()def
glFlush
()def
glFramebufferRenderbuffer
(target, attachment, renderbuffertarget, renderbuffer)def
glFramebufferTexture2D
(target, attachment, textarget, texture, level)def
glFrontFace
(mode)def
glGenBuffers
(n, buffers)def
glGenFramebuffers
(n, framebuffers)def
glGenRenderbuffers
(n, renderbuffers)def
glGenTextures
(n, textures)def
glGenerateMipmap
(target)def
glGetAttachedShaders
(program, maxcount, count, shaders)def
glGetAttribLocation
(program, name)def
glGetBufferParameteriv
(target, pname, params)def
glGetError
()def
glGetFloatv
(pname, params)def
glGetFramebufferAttachmentParameteriv
(target, attachment, pname, params)def
glGetIntegerv
(pname, params)def
glGetProgramiv
(program, pname, params)def
glGetRenderbufferParameteriv
(target, pname, params)def
glGetShaderPrecisionFormat
(shadertype, precisiontype, range, precision)def
glGetShaderiv
(shader, pname, params)def
glGetString
(name)def
glGetTexParameterfv
(target, pname, params)def
glGetTexParameteriv
(target, pname, params)def
glGetUniformLocation
(program, name)def
glGetUniformfv
(program, location, params)def
glGetUniformiv
(program, location, params)def
glGetVertexAttribfv
(index, pname, params)def
glGetVertexAttribiv
(index, pname, params)def
glHint
(target, mode)def
glIsBuffer
(buffer)def
glIsEnabled
(cap)def
glIsFramebuffer
(framebuffer)def
glIsProgram
(program)def
glIsRenderbuffer
(renderbuffer)def
glIsShader
(shader)def
glIsTexture
(texture)def
glLineWidth
(width)def
glLinkProgram
(program)def
glPixelStorei
(pname, param)def
glPolygonOffset
(factor, units)def
glReadPixels
(x, y, width, height, format, type, pixels)def
glReleaseShaderCompiler
()def
glRenderbufferStorage
(target, internalformat, width, height)def
glSampleCoverage
(value, invert)def
glScissor
(x, y, width, height)def
glShaderBinary
(n, shaders, binaryformat, binary, length)def
glStencilFunc
(func, ref, mask)def
glStencilFuncSeparate
(face, func, ref, mask)def
glStencilMask
(mask)def
glStencilMaskSeparate
(face, mask)def
glStencilOp
(fail, zfail, zpass)def
glStencilOpSeparate
(face, fail, zfail, zpass)def
glTexImage2D
(target, level, internalformat, width, height, border, format, type, pixels)def
glTexParameterf
(target, pname, param)def
glTexParameterfv
(target, pname, params)def
glTexParameteri
(target, pname, param)def
glTexParameteriv
(target, pname, params)def
glTexSubImage2D
(target, level, xoffset, yoffset, width, height, format, type, pixels)def
glUniform1f
(location, x)def
glUniform1fv
(location, count, v)def
glUniform1i
(location, x)def
glUniform1iv
(location, count, v)def
glUniform2f
(location, x, y)def
glUniform2fv
(location, count, v)def
glUniform2i
(location, x, y)def
glUniform2iv
(location, count, v)def
glUniform3f
(location, x, y, z)def
glUniform3fv
(location, count, v)def
glUniform3i
(location, x, y, z)def
glUniform3iv
(location, count, v)def
glUniform4f
(location, x, y, z, w)def
glUniform4fv
(location, count, v)def
glUniform4i
(location, x, y, z, w)def
glUniform4iv
(location, count, v)def
glUniformMatrix2fv
(location, count, transpose, value)def
glUniformMatrix3fv
(location, count, transpose, value)def
glUniformMatrix4fv
(location, count, transpose, value)def
glUseProgram
(program)def
glValidateProgram
(program)def
glVertexAttrib1f
(indx, x)def
glVertexAttrib1fv
(indx, values)def
glVertexAttrib2f
(indx, x, y)def
glVertexAttrib2fv
(indx, values)def
glVertexAttrib3f
(indx, x, y, z)def
glVertexAttrib3fv
(indx, values)def
glVertexAttrib4f
(indx, x, y, z, w)def
glVertexAttrib4fv
(indx, values)def
glVertexAttribPointer
(indx, size, type, normalized, stride, ptr)def
glViewport
(x, y, width, height)def
hasOpenGLFeature
(feature)def
initializeOpenGLFunctions
()def
openGLFeatures
()
Detailed Description¶
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.
QOpenGLFunctions
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 useQOpenGLFunctions
is by direct inheritance:class MyGLWindow : public QWindow, protected QOpenGLFunctions { Q_OBJECT public: MyGLWindow(QScreen *screen = 0); protected: void initializeGL(); void paintGL(); QOpenGLContext *m_context; }; MyGLWindow(QScreen *screen) : QWindow(screen), QOpenGLWidget(parent) { setSurfaceType(OpenGLSurface); create(); // Create an OpenGL context m_context = new QOpenGLContext; m_context->create(); // Setup scene and render it initializeGL(); paintGL(); } void MyGLWindow::initializeGL() { m_context->makeCurrent(this); initializeOpenGLFunctions(); }The
paintGL()
function can then use any of the OpenGL ES 2.0 functions without explicit resolution, such asglActiveTexture()
in the following example:void MyGLWindow::paintGL() { m_context->makeCurrent(this); glActiveTexture(GL_TEXTURE1); glBindTexture(GL_TEXTURE_2D, textureId); ... m_context->swapBuffers(this); m_context->doneCurrent(); }
QOpenGLFunctions
can also be used directly for ad-hoc invocation of OpenGL ES 2.0 functions on all platforms:QOpenGLFunctions glFuncs(QOpenGLContext::currentContext()); glFuncs.glActiveTexture(GL_TEXTURE1);An alternative approach is to query the context’s associated
QOpenGLFunctions
instance. This is somewhat faster than the previous approach due to avoiding the creation of a new instance, but the difference is fairly small since the internal data structures are shared, and function resolving happens only once for a given context, regardless of the number ofQOpenGLFunctions
instances initialized for it.QOpenGLFunctions *glFuncs = QOpenGLContext::currentContext()->functions(); glFuncs->glActiveTexture(GL_TEXTURE1);
QOpenGLFunctions
provides wrappers for all OpenGL ES 2.0 functions, including the common subset of OpenGL 1.x and ES 2.0. While such functions, for exampleglClear()
orglDrawArrays()
, can be called also directly, as long as the application links to the platform-specific OpenGL library, calling them viaQOpenGLFunctions
enables the possibility of dynamically loading the OpenGL implementation.The
hasOpenGLFeature()
andopenGLFeatures()
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:QOpenGLFunctions funcs(QOpenGLContext::currentContext()); bool npot = funcs.hasOpenGLFeature(QOpenGLFunctions::NPOTTextures);See also
-
class
QOpenGLFunctions
¶ QOpenGLFunctions(context)
- param context
Constructs a default function resolver. The resolver cannot be used until
initializeOpenGLFunctions()
is called to specify the context.See also
Constructs a function resolver for
context
. Ifcontext
is null, then the resolver will be created for the currentQOpenGLContext
.The context or another context in the group must be current.
An object constructed in this way can only be used with
context
and other contexts that share with it. UseinitializeOpenGLFunctions()
to change the object’s context association.See also
-
PySide2.QtGui.QOpenGLFunctions.
OpenGLFeature
¶ This enum defines OpenGL and OpenGL ES features whose presence may depend on the implementation.
Constant
Description
QOpenGLFunctions.Multitexture
glActiveTexture()
function is available.QOpenGLFunctions.Shaders
Shader functions are available.
QOpenGLFunctions.Buffers
Vertex and index buffer functions are available.
QOpenGLFunctions.Framebuffers
Framebuffer object functions are available.
QOpenGLFunctions.BlendColor
glBlendColor()
is available.QOpenGLFunctions.BlendEquation
glBlendEquation()
is available.QOpenGLFunctions.BlendEquationSeparate
glBlendEquationSeparate()
is available.QOpenGLFunctions.BlendEquationAdvanced
Advanced blend equations are available.
QOpenGLFunctions.BlendFuncSeparate
glBlendFuncSeparate()
is available.QOpenGLFunctions.BlendSubtract
Blend subtract mode is available.
QOpenGLFunctions.CompressedTextures
Compressed texture functions are available.
QOpenGLFunctions.Multisample
glSampleCoverage()
function is available.QOpenGLFunctions.StencilSeparate
Separate stencil functions are available.
QOpenGLFunctions.NPOTTextures
Non power of two textures are available.
QOpenGLFunctions.NPOTTextureRepeat
Non power of two textures can use GL_REPEAT as wrap parameter.
QOpenGLFunctions.FixedFunctionPipeline
The fixed function pipeline is available.
QOpenGLFunctions.TextureRGFormats
The GL_RED and GL_RG texture formats are available.
QOpenGLFunctions.MultipleRenderTargets
Multiple color attachments to framebuffer objects are available.
-
PySide2.QtGui.QOpenGLFunctions.
glActiveTexture
(texture)¶ - Parameters
texture –
GLenum
Convenience function that calls (
texture
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glAttachShader
(program, shader)¶ - Parameters
program –
GLuint
shader –
GLuint
Convenience function that calls (
program
,shader
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glBindAttribLocation
(program, index, name)¶ - Parameters
program –
GLuint
index –
GLuint
name – str
Convenience function that calls (
program
,index
,name
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glBindBuffer
(target, buffer)¶ - Parameters
target –
GLenum
buffer –
GLuint
Convenience function that calls (
target
,buffer
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glBindFramebuffer
(target, framebuffer)¶ - Parameters
target –
GLenum
framebuffer –
GLuint
Convenience function that calls (
target
,framebuffer
).Note that Qt will translate a
framebuffer
argument of 0 to the currently boundQOpenGLContext
‘s defaultFramebufferObject().For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glBindRenderbuffer
(target, renderbuffer)¶ - Parameters
target –
GLenum
renderbuffer –
GLuint
Convenience function that calls (
target
,renderbuffer
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glBindTexture
(target, texture)¶ - Parameters
target –
GLenum
texture –
GLuint
Convenience function that calls (
target
,texture
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glBlendColor
(red, green, blue, alpha)¶ - Parameters
red –
GLclampf
green –
GLclampf
blue –
GLclampf
alpha –
GLclampf
Convenience function that calls (
red
,green
,blue
,alpha
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glBlendEquation
(mode)¶ - Parameters
mode –
GLenum
Convenience function that calls (
mode
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glBlendEquationSeparate
(modeRGB, modeAlpha)¶ - Parameters
modeRGB –
GLenum
modeAlpha –
GLenum
Convenience function that calls (
modeRGB
,modeAlpha
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glBlendFunc
(sfactor, dfactor)¶ - Parameters
sfactor –
GLenum
dfactor –
GLenum
Convenience function that calls (
sfactor
,dfactor
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glBlendFuncSeparate
(srcRGB, dstRGB, srcAlpha, dstAlpha)¶ - Parameters
srcRGB –
GLenum
dstRGB –
GLenum
srcAlpha –
GLenum
dstAlpha –
GLenum
Convenience function that calls (
srcRGB
,dstRGB
,srcAlpha
,dstAlpha
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glCheckFramebufferStatus
(target)¶ - Parameters
target –
GLenum
- Return type
GLenum
Convenience function that calls (
target
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glClear
(mask)¶ - Parameters
mask –
GLbitfield
Convenience function that calls (
mask
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glClearColor
(red, green, blue, alpha)¶ - Parameters
red –
GLclampf
green –
GLclampf
blue –
GLclampf
alpha –
GLclampf
Convenience function that calls (
red
,green
,blue
,alpha
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glClearDepthf
(depth)¶ - Parameters
depth –
GLclampf
Convenience function that calls glClearDepth(
depth
) on desktop OpenGL systems and (depth
) on embedded OpenGL ES systems.For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glClearStencil
(s)¶ - Parameters
s –
GLint
Convenience function that calls (
s
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glColorMask
(red, green, blue, alpha)¶ - Parameters
red –
GLboolean
green –
GLboolean
blue –
GLboolean
alpha –
GLboolean
Convenience function that calls (
red
,green
,blue
,alpha
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glCompileShader
(shader)¶ - Parameters
shader –
GLuint
Convenience function that calls (
shader
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glCompressedTexImage2D
(target, level, internalformat, width, height, border, imageSize, data)¶ - Parameters
target –
GLenum
level –
GLint
internalformat –
GLenum
width –
GLsizei
height –
GLsizei
border –
GLint
imageSize –
GLsizei
data –
void
Convenience function that calls (
target
,level
,internalformat
,width
,height
,border
,imageSize
,data
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glCompressedTexSubImage2D
(target, level, xoffset, yoffset, width, height, format, imageSize, data)¶ - Parameters
target –
GLenum
level –
GLint
xoffset –
GLint
yoffset –
GLint
width –
GLsizei
height –
GLsizei
format –
GLenum
imageSize –
GLsizei
data –
void
Convenience function that calls (
target
,level
,xoffset
,yoffset
,width
,height
,format
,imageSize
,data
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glCopyTexImage2D
(target, level, internalformat, x, y, width, height, border)¶ - Parameters
target –
GLenum
level –
GLint
internalformat –
GLenum
x –
GLint
y –
GLint
width –
GLsizei
height –
GLsizei
border –
GLint
Convenience function that calls (
target
,level
,internalformat
,x
,y
,width
,height
,border
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glCopyTexSubImage2D
(target, level, xoffset, yoffset, x, y, width, height)¶ - Parameters
target –
GLenum
level –
GLint
xoffset –
GLint
yoffset –
GLint
x –
GLint
y –
GLint
width –
GLsizei
height –
GLsizei
Convenience function that calls (
target
,level
,xoffset
,yoffset
,x
,y
,width
,height
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glCreateProgram
()¶ - Return type
GLuint
Convenience function that calls .
For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glCreateShader
(type)¶ - Parameters
type –
GLenum
- Return type
GLuint
Convenience function that calls (
type
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glCullFace
(mode)¶ - Parameters
mode –
GLenum
Convenience function that calls (
mode
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glDeleteBuffers
(n, buffers)¶ - Parameters
n –
GLsizei
buffers –
GLuint
Convenience function that calls (
n
,buffers
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glDeleteFramebuffers
(n, framebuffers)¶ - Parameters
n –
GLsizei
framebuffers –
GLuint
Convenience function that calls (
n
,framebuffers
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glDeleteProgram
(program)¶ - Parameters
program –
GLuint
Convenience function that calls (
program
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glDeleteRenderbuffers
(n, renderbuffers)¶ - Parameters
n –
GLsizei
renderbuffers –
GLuint
Convenience function that calls (
n
,renderbuffers
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glDeleteShader
(shader)¶ - Parameters
shader –
GLuint
Convenience function that calls (
shader
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glDeleteTextures
(n, textures)¶ - Parameters
n –
GLsizei
textures –
GLuint
Convenience function that calls (
n
,textures
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glDepthFunc
(func)¶ - Parameters
func –
GLenum
Convenience function that calls (
func
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glDepthMask
(flag)¶ - Parameters
flag –
GLboolean
Convenience function that calls (
flag
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glDepthRangef
(zNear, zFar)¶ - Parameters
zNear –
GLclampf
zFar –
GLclampf
Convenience function that calls glDepthRange(
zNear
,zFar
) on desktop OpenGL systems and (zNear
,zFar
) on embedded OpenGL ES systems.For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glDetachShader
(program, shader)¶ - Parameters
program –
GLuint
shader –
GLuint
Convenience function that calls (
program
,shader
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glDisable
(cap)¶ - Parameters
cap –
GLenum
Convenience function that calls (
cap
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glDisableVertexAttribArray
(index)¶ - Parameters
index –
GLuint
Convenience function that calls (
index
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glDrawArrays
(mode, first, count)¶ - Parameters
mode –
GLenum
first –
GLint
count –
GLsizei
Convenience function that calls (
mode
,first
,count
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glDrawElements
(mode, count, type, indices)¶ - Parameters
mode –
GLenum
count –
GLsizei
type –
GLenum
indices –
void
Convenience function that calls (
mode
,count
,type
,indices
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glEnable
(cap)¶ - Parameters
cap –
GLenum
Convenience function that calls (
cap
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glEnableVertexAttribArray
(index)¶ - Parameters
index –
GLuint
Convenience function that calls (
index
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glFinish
()¶ Convenience function that calls .
For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glFlush
()¶ Convenience function that calls .
For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glFramebufferRenderbuffer
(target, attachment, renderbuffertarget, renderbuffer)¶ - Parameters
target –
GLenum
attachment –
GLenum
renderbuffertarget –
GLenum
renderbuffer –
GLuint
Convenience function that calls (
target
,attachment
,renderbuffertarget
,renderbuffer
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glFramebufferTexture2D
(target, attachment, textarget, texture, level)¶ - Parameters
target –
GLenum
attachment –
GLenum
textarget –
GLenum
texture –
GLuint
level –
GLint
Convenience function that calls (
target
,attachment
,textarget
,texture
,level
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glFrontFace
(mode)¶ - Parameters
mode –
GLenum
Convenience function that calls (
mode
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glGenBuffers
(n, buffers)¶ - Parameters
n –
GLsizei
buffers –
GLuint
Convenience function that calls (
n
,buffers
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glGenFramebuffers
(n, framebuffers)¶ - Parameters
n –
GLsizei
framebuffers –
GLuint
Convenience function that calls (
n
,framebuffers
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glGenRenderbuffers
(n, renderbuffers)¶ - Parameters
n –
GLsizei
renderbuffers –
GLuint
Convenience function that calls (
n
,renderbuffers
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glGenTextures
(n, textures)¶ - Parameters
n –
GLsizei
textures –
GLuint
Convenience function that calls (
n
,textures
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glGenerateMipmap
(target)¶ - Parameters
target –
GLenum
Convenience function that calls (
target
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glGetAttachedShaders
(program, maxcount, count, shaders)¶ - Parameters
program –
GLuint
maxcount –
GLsizei
count –
GLsizei
shaders –
GLuint
Convenience function that calls (
program
,maxcount
,count
,shaders
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glGetAttribLocation
(program, name)¶ - Parameters
program –
GLuint
name – str
- Return type
GLint
Convenience function that calls (
program
,name
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glGetBufferParameteriv
(target, pname, params)¶ - Parameters
target –
GLenum
pname –
GLenum
params –
GLint
Convenience function that calls (
target
,pname
,params
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glGetError
()¶ - Return type
GLenum
Convenience function that calls .
For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glGetFloatv
(pname, params)¶ - Parameters
pname –
GLenum
params –
GLfloat
Convenience function that calls (
pname
,params
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glGetFramebufferAttachmentParameteriv
(target, attachment, pname, params)¶ - Parameters
target –
GLenum
attachment –
GLenum
pname –
GLenum
params –
GLint
Convenience function that calls (
target
,attachment
,pname
,params
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glGetIntegerv
(pname, params)¶ - Parameters
pname –
GLenum
params –
GLint
Convenience function that calls (
pname
,params
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glGetProgramiv
(program, pname, params)¶ - Parameters
program –
GLuint
pname –
GLenum
params –
GLint
Convenience function that calls (
program
,pname
,params
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glGetRenderbufferParameteriv
(target, pname, params)¶ - Parameters
target –
GLenum
pname –
GLenum
params –
GLint
Convenience function that calls (
target
,pname
,params
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glGetShaderPrecisionFormat
(shadertype, precisiontype, range, precision)¶ - Parameters
shadertype –
GLenum
precisiontype –
GLenum
range –
GLint
precision –
GLint
Convenience function that calls (
shadertype
,precisiontype
,range
,precision
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glGetShaderiv
(shader, pname, params)¶ - Parameters
shader –
GLuint
pname –
GLenum
params –
GLint
Convenience function that calls (
shader
,pname
,params
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glGetString
(name)¶ - Parameters
name –
GLenum
- Return type
GLubyte
Convenience function that calls (
name
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glGetTexParameterfv
(target, pname, params)¶ - Parameters
target –
GLenum
pname –
GLenum
params –
GLfloat
Convenience function that calls (
target
,pname
,params
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glGetTexParameteriv
(target, pname, params)¶ - Parameters
target –
GLenum
pname –
GLenum
params –
GLint
Convenience function that calls (
target
,pname
,params
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glGetUniformLocation
(program, name)¶ - Parameters
program –
GLuint
name – str
- Return type
GLint
Convenience function that calls (
program
,name
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glGetUniformfv
(program, location, params)¶ - Parameters
program –
GLuint
location –
GLint
params –
GLfloat
Convenience function that calls (
program
,location
,params
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glGetUniformiv
(program, location, params)¶ - Parameters
program –
GLuint
location –
GLint
params –
GLint
Convenience function that calls (
program
,location
,params
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glGetVertexAttribfv
(index, pname, params)¶ - Parameters
index –
GLuint
pname –
GLenum
params –
GLfloat
Convenience function that calls (
index
,pname
,params
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glGetVertexAttribiv
(index, pname, params)¶ - Parameters
index –
GLuint
pname –
GLenum
params –
GLint
Convenience function that calls (
index
,pname
,params
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glHint
(target, mode)¶ - Parameters
target –
GLenum
mode –
GLenum
Convenience function that calls (
target
,mode
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glIsBuffer
(buffer)¶ - Parameters
buffer –
GLuint
- Return type
GLboolean
Convenience function that calls (
buffer
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glIsEnabled
(cap)¶ - Parameters
cap –
GLenum
- Return type
GLboolean
Convenience function that calls (
cap
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glIsFramebuffer
(framebuffer)¶ - Parameters
framebuffer –
GLuint
- Return type
GLboolean
Convenience function that calls (
framebuffer
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glIsProgram
(program)¶ - Parameters
program –
GLuint
- Return type
GLboolean
Convenience function that calls (
program
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glIsRenderbuffer
(renderbuffer)¶ - Parameters
renderbuffer –
GLuint
- Return type
GLboolean
Convenience function that calls (
renderbuffer
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glIsShader
(shader)¶ - Parameters
shader –
GLuint
- Return type
GLboolean
Convenience function that calls (
shader
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glIsTexture
(texture)¶ - Parameters
texture –
GLuint
- Return type
GLboolean
Convenience function that calls (
texture
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glLineWidth
(width)¶ - Parameters
width –
GLfloat
Convenience function that calls (
width
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glLinkProgram
(program)¶ - Parameters
program –
GLuint
Convenience function that calls (
program
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glPixelStorei
(pname, param)¶ - Parameters
pname –
GLenum
param –
GLint
Convenience function that calls (
pname
,param
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glPolygonOffset
(factor, units)¶ - Parameters
factor –
GLfloat
units –
GLfloat
Convenience function that calls (
factor
,units
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glReadPixels
(x, y, width, height, format, type, pixels)¶ - Parameters
x –
GLint
y –
GLint
width –
GLsizei
height –
GLsizei
format –
GLenum
type –
GLenum
pixels –
void
Convenience function that calls (
x
,y
,width
,height
,format
,type
,pixels
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glReleaseShaderCompiler
()¶ Convenience function that calls .
For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glRenderbufferStorage
(target, internalformat, width, height)¶ - Parameters
target –
GLenum
internalformat –
GLenum
width –
GLsizei
height –
GLsizei
Convenience function that calls (
target
,internalformat
,width
,height
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glSampleCoverage
(value, invert)¶ - Parameters
value –
GLclampf
invert –
GLboolean
Convenience function that calls (
value
,invert
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glScissor
(x, y, width, height)¶ - Parameters
x –
GLint
y –
GLint
width –
GLsizei
height –
GLsizei
Convenience function that calls (
x
,y
,width
,height
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glShaderBinary
(n, shaders, binaryformat, binary, length)¶ - Parameters
n –
GLint
shaders –
GLuint
binaryformat –
GLenum
binary –
void
length –
GLint
Convenience function that calls (
n
,shaders
,binaryformat
,binary
,length
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glStencilFunc
(func, ref, mask)¶ - Parameters
func –
GLenum
ref –
GLint
mask –
GLuint
Convenience function that calls (
func
,ref
,mask
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glStencilFuncSeparate
(face, func, ref, mask)¶ - Parameters
face –
GLenum
func –
GLenum
ref –
GLint
mask –
GLuint
Convenience function that calls (
face
,func
,ref
,mask
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glStencilMask
(mask)¶ - Parameters
mask –
GLuint
Convenience function that calls (
mask
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glStencilMaskSeparate
(face, mask)¶ - Parameters
face –
GLenum
mask –
GLuint
Convenience function that calls (
face
,mask
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glStencilOp
(fail, zfail, zpass)¶ - Parameters
fail –
GLenum
zfail –
GLenum
zpass –
GLenum
Convenience function that calls (
fail
,zfail
,zpass
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glStencilOpSeparate
(face, fail, zfail, zpass)¶ - Parameters
face –
GLenum
fail –
GLenum
zfail –
GLenum
zpass –
GLenum
Convenience function that calls (
face
,fail
,zfail
,zpass
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glTexImage2D
(target, level, internalformat, width, height, border, format, type, pixels)¶ - Parameters
target –
GLenum
level –
GLint
internalformat –
GLint
width –
GLsizei
height –
GLsizei
border –
GLint
format –
GLenum
type –
GLenum
pixels –
void
Convenience function that calls (
target
,level
,internalformat
,width
,height
,border
,format
,type
,pixels
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glTexParameterf
(target, pname, param)¶ - Parameters
target –
GLenum
pname –
GLenum
param –
GLfloat
Convenience function that calls (
target
,pname
,param
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glTexParameterfv
(target, pname, params)¶ - Parameters
target –
GLenum
pname –
GLenum
params –
GLfloat
Convenience function that calls (
target
,pname
,params
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glTexParameteri
(target, pname, param)¶ - Parameters
target –
GLenum
pname –
GLenum
param –
GLint
Convenience function that calls (
target
,pname
,param
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glTexParameteriv
(target, pname, params)¶ - Parameters
target –
GLenum
pname –
GLenum
params –
GLint
Convenience function that calls (
target
,pname
,params
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glTexSubImage2D
(target, level, xoffset, yoffset, width, height, format, type, pixels)¶ - Parameters
target –
GLenum
level –
GLint
xoffset –
GLint
yoffset –
GLint
width –
GLsizei
height –
GLsizei
format –
GLenum
type –
GLenum
pixels –
void
Convenience function that calls (
target
,level
,xoffset
,yoffset
,width
,height
,format
,type
,pixels
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
glUniform1f
(location, x)¶ - Parameters
location –
GLint
x –
GLfloat
Convenience function that calls (
location
,x
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glUniform1fv
(location, count, v)¶ - Parameters
location –
GLint
count –
GLsizei
v –
GLfloat
Convenience function that calls (
location
,count
,v
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glUniform1i
(location, x)¶ - Parameters
location –
GLint
x –
GLint
Convenience function that calls (
location
,x
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glUniform1iv
(location, count, v)¶ - Parameters
location –
GLint
count –
GLsizei
v –
GLint
Convenience function that calls (
location
,count
,v
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glUniform2f
(location, x, y)¶ - Parameters
location –
GLint
x –
GLfloat
y –
GLfloat
Convenience function that calls (
location
,x
,y
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glUniform2fv
(location, count, v)¶ - Parameters
location –
GLint
count –
GLsizei
v –
GLfloat
Convenience function that calls (
location
,count
,v
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glUniform2i
(location, x, y)¶ - Parameters
location –
GLint
x –
GLint
y –
GLint
Convenience function that calls (
location
,x
,y
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glUniform2iv
(location, count, v)¶ - Parameters
location –
GLint
count –
GLsizei
v –
GLint
Convenience function that calls (
location
,count
,v
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glUniform3f
(location, x, y, z)¶ - Parameters
location –
GLint
x –
GLfloat
y –
GLfloat
z –
GLfloat
Convenience function that calls (
location
,x
,y
,z
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glUniform3fv
(location, count, v)¶ - Parameters
location –
GLint
count –
GLsizei
v –
GLfloat
Convenience function that calls (
location
,count
,v
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glUniform3i
(location, x, y, z)¶ - Parameters
location –
GLint
x –
GLint
y –
GLint
z –
GLint
Convenience function that calls (
location
,x
,y
,z
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glUniform3iv
(location, count, v)¶ - Parameters
location –
GLint
count –
GLsizei
v –
GLint
Convenience function that calls (
location
,count
,v
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glUniform4f
(location, x, y, z, w)¶ - Parameters
location –
GLint
x –
GLfloat
y –
GLfloat
z –
GLfloat
w –
GLfloat
Convenience function that calls (
location
,x
,y
,z
,w
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glUniform4fv
(location, count, v)¶ - Parameters
location –
GLint
count –
GLsizei
v –
GLfloat
Convenience function that calls (
location
,count
,v
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glUniform4i
(location, x, y, z, w)¶ - Parameters
location –
GLint
x –
GLint
y –
GLint
z –
GLint
w –
GLint
Convenience function that calls (
location
,x
,y
,z
,w
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glUniform4iv
(location, count, v)¶ - Parameters
location –
GLint
count –
GLsizei
v –
GLint
Convenience function that calls (
location
,count
,v
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glUniformMatrix2fv
(location, count, transpose, value)¶ - Parameters
location –
GLint
count –
GLsizei
transpose –
GLboolean
value –
GLfloat
Convenience function that calls (
location
,count
,transpose
,value
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glUniformMatrix3fv
(location, count, transpose, value)¶ - Parameters
location –
GLint
count –
GLsizei
transpose –
GLboolean
value –
GLfloat
Convenience function that calls (
location
,count
,transpose
,value
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glUniformMatrix4fv
(location, count, transpose, value)¶ - Parameters
location –
GLint
count –
GLsizei
transpose –
GLboolean
value –
GLfloat
Convenience function that calls (
location
,count
,transpose
,value
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glUseProgram
(program)¶ - Parameters
program –
GLuint
Convenience function that calls (
program
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glValidateProgram
(program)¶ - Parameters
program –
GLuint
Convenience function that calls (
program
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glVertexAttrib1f
(indx, x)¶ - Parameters
indx –
GLuint
x –
GLfloat
Convenience function that calls (
indx
,x
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glVertexAttrib1fv
(indx, values)¶ - Parameters
indx –
GLuint
values –
GLfloat
Convenience function that calls (
indx
,values
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glVertexAttrib2f
(indx, x, y)¶ - Parameters
indx –
GLuint
x –
GLfloat
y –
GLfloat
Convenience function that calls (
indx
,x
,y
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glVertexAttrib2fv
(indx, values)¶ - Parameters
indx –
GLuint
values –
GLfloat
Convenience function that calls (
indx
,values
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glVertexAttrib3f
(indx, x, y, z)¶ - Parameters
indx –
GLuint
x –
GLfloat
y –
GLfloat
z –
GLfloat
Convenience function that calls (
indx
,x
,y
,z
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glVertexAttrib3fv
(indx, values)¶ - Parameters
indx –
GLuint
values –
GLfloat
Convenience function that calls (
indx
,values
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glVertexAttrib4f
(indx, x, y, z, w)¶ - Parameters
indx –
GLuint
x –
GLfloat
y –
GLfloat
z –
GLfloat
w –
GLfloat
Convenience function that calls (
indx
,x
,y
,z
,w
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glVertexAttrib4fv
(indx, values)¶ - Parameters
indx –
GLuint
values –
GLfloat
Convenience function that calls (
indx
,values
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glVertexAttribPointer
(indx, size, type, normalized, stride, ptr)¶ - Parameters
indx –
GLuint
size –
GLint
type –
GLenum
normalized –
GLboolean
stride –
GLsizei
ptr –
void
Convenience function that calls (
indx
,size
,type
,normalized
,stride
,ptr
).For more information, see the OpenGL ES 2.0 documentation for .
This convenience function will do nothing on OpenGL ES 1.x systems.
-
PySide2.QtGui.QOpenGLFunctions.
glViewport
(x, y, width, height)¶ - Parameters
x –
GLint
y –
GLint
width –
GLsizei
height –
GLsizei
Convenience function that calls (
x
,y
,width
,height
).For more information, see the OpenGL ES 2.0 documentation for .
-
PySide2.QtGui.QOpenGLFunctions.
hasOpenGLFeature
(feature)¶ - Parameters
feature –
OpenGLFeature
- Return type
bool
Returns
true
iffeature
is present on this system’s OpenGL implementation; false otherwise.It is assumed that the
QOpenGLContext
associated with this function resolver is current.See also
-
PySide2.QtGui.QOpenGLFunctions.
initializeOpenGLFunctions
()¶ Initializes OpenGL function resolution for the current context.
After calling this function, the
QOpenGLFunctions
object can only be used with the current context and other contexts that share with it. Call again to change the object’s context association.
-
PySide2.QtGui.QOpenGLFunctions.
openGLFeatures
()¶ - Return type
OpenGLFeatures
Returns the set of features that are present on this system’s OpenGL implementation.
It is assumed that the
QOpenGLContext
associated with this function resolver is current.See also
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.