PythonQt.QtOpenGL.QGLShaderProgram · declarations 001
Back to PythonQt.QtOpenGL.QGLShaderProgram
addShader
addShader(shader: Any) -> bool
X.addShader(shader) -> bool
Supplemental documentation: Qt 5 reference:
bool QGLShaderProgram::addShader(QGLShader *shader)
Adds a compiled shader to this shader program. Returns true if the shader could be
added, or false otherwise.
Ownership of the shader object remains with the caller. It will not be deleted when this QGLShaderProgram instance is deleted. This allows the caller to add the same shader to multiple shader programs.
See also addShaderFromSourceCode(), addShaderFromSourceFile(), removeShader(), link(), and removeAllShaders().
Upstream PySide2 reference signatures (binding differences may apply):
addShader(self, shader: PySide2.QtOpenGL.QGLShader) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#addShader
addShaderFromSourceCode
addShaderFromSourceCode(type: Any, source: Any) -> bool
X.addShaderFromSourceCode(type, source) -> bool
Supplemental documentation: Qt 5 reference:
bool QGLShaderProgram::addShaderFromSourceCode(QGLShader::ShaderType type, const char *source)
Compiles source as a shader of the specified type and adds it to this shader
program. Returns true if compilation was successful, false otherwise. The compilation
errors and warnings will be made available via
log().
This function is intended to be a short-cut for quickly adding vertex and fragment shaders to a shader program without creating an instance of QGLShader first.
See also addShader(), addShaderFromSourceFile(), removeShader(), link(), log(), and removeAllShaders().
bool QGLShaderProgram::addShaderFromSourceCode(QGLShader::ShaderType type, const QByteArray \&source)
This is an overloaded function.
Compiles source as a shader of the specified type and adds it to this shader
program. Returns true if compilation was successful, false otherwise. The compilation
errors and warnings will be made available via
log().
This function is intended to be a short-cut for quickly adding vertex and fragment shaders to a shader program without creating an instance of QGLShader first.
See also addShader(), addShaderFromSourceFile(), removeShader(), link(), log(), and removeAllShaders().
bool QGLShaderProgram::addShaderFromSourceCode(QGLShader::ShaderType type, const QString \&source)
This is an overloaded function.
Compiles source as a shader of the specified type and adds it to this shader
program. Returns true if compilation was successful, false otherwise. The compilation
errors and warnings will be made available via
log().
This function is intended to be a short-cut for quickly adding vertex and fragment shaders to a shader program without creating an instance of QGLShader first.
See also addShader(), addShaderFromSourceFile(), removeShader(), link(), log(), and removeAllShaders().
Upstream PySide2 reference signatures (binding differences may apply):
addShaderFromSourceCode(self, type: PySide2.QtOpenGL.QGLShader.ShaderType, source: PySide2.QtCore.QByteArray) -> bool
addShaderFromSourceCode(self, type: PySide2.QtOpenGL.QGLShader.ShaderType, source: str) -> bool
addShaderFromSourceCode(self, type: PySide2.QtOpenGL.QGLShader.ShaderType, source: str) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#addShaderFromSourceCode
addShaderFromSourceFile
addShaderFromSourceFile(type: Any, fileName: str) -> bool
X.addShaderFromSourceFile(type, fileName) -> bool
Supplemental documentation: Qt 5 reference:
bool QGLShaderProgram::addShaderFromSourceFile(QGLShader::ShaderType type, const QString \&fileName)
Compiles the contents of fileName as a shader of the specified type and adds it to
this shader program. Returns true if compilation was successful, false otherwise. The
compilation errors and warnings will be made available via
log().
This function is intended to be a short-cut for quickly adding vertex and fragment shaders to a shader program without creating an instance of QGLShader first.
See also addShader() and addShaderFromSourceCode().
Upstream PySide2 reference signatures (binding differences may apply):
addShaderFromSourceFile(self, type: PySide2.QtOpenGL.QGLShader.ShaderType, fileName: str) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#addShaderFromSourceFile
attributeLocation
attributeLocation(name: Any) -> int
X.attributeLocation(name) -> int
Supplemental documentation: Qt 5 reference:
int QGLShaderProgram::attributeLocation(const char *name) const
Returns the location of the attribute name within this shader program's parameter list. Returns -1 if name is not a valid attribute for this shader program.
See also uniformLocation() and bindAttributeLocation().
int QGLShaderProgram::attributeLocation(const QByteArray \&name) const
This is an overloaded function.
Returns the location of the attribute name within this shader program's parameter list. Returns -1 if name is not a valid attribute for this shader program.
See also uniformLocation() and bindAttributeLocation().
int QGLShaderProgram::attributeLocation(const QString \&name) const
This is an overloaded function.
Returns the location of the attribute name within this shader program's parameter list. Returns -1 if name is not a valid attribute for this shader program.
See also uniformLocation() and bindAttributeLocation().
Upstream PySide2 reference signatures (binding differences may apply):
attributeLocation(self, name: PySide2.QtCore.QByteArray) -> int
attributeLocation(self, name: str) -> int
attributeLocation(self, name: str) -> int
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#attributeLocation
bind
bind() -> bool
X.bind() -> bool
Supplemental documentation: Qt 5 reference:
bool QGLShaderProgram::bind()
Binds this shader program to the active QGLContext and makes it the current shader
program. Any previously bound shader program is released. This is equivalent to calling
glUseProgram() on
programId().
Returns true if the program was successfully bound; false otherwise. If the shader
program has not yet been linked, or it needs to be re-linked, this function will call
link().
See also link() and release().
Upstream PySide2 reference signatures (binding differences may apply):
bind(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#bind
bindAttributeLocation
bindAttributeLocation(name: Any, location: int) -> None
X.bindAttributeLocation(name, location)
Supplemental documentation: Qt 5 reference:
void QGLShaderProgram::bindAttributeLocation(const char *name, int location)
Binds the attribute name to the specified location. This function can be called before or after the program has been linked. Any attributes that have not been explicitly bound when the program is linked will be assigned locations automatically.
When this function is called after the program has been linked, the program will need to be relinked for the change to take effect.
See also attributeLocation().
void QGLShaderProgram::bindAttributeLocation(const QByteArray \&name, int location)
This is an overloaded function.
Binds the attribute name to the specified location. This function can be called before or after the program has been linked. Any attributes that have not been explicitly bound when the program is linked will be assigned locations automatically.
When this function is called after the program has been linked, the program will need to be relinked for the change to take effect.
See also attributeLocation().
void QGLShaderProgram::bindAttributeLocation(const QString \&name, int location)
This is an overloaded function.
Binds the attribute name to the specified location. This function can be called before or after the program has been linked. Any attributes that have not been explicitly bound when the program is linked will be assigned locations automatically.
When this function is called after the program has been linked, the program will need to be relinked for the change to take effect.
See also attributeLocation().
Upstream PySide2 reference signatures (binding differences may apply):
bindAttributeLocation(self, name: PySide2.QtCore.QByteArray, location: int) -> None
bindAttributeLocation(self, name: str, location: int) -> None
bindAttributeLocation(self, name: str, location: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#bindAttributeLocation
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtOpenGL.QGLShaderProgram.destroyed; argument details are not documented.
disableAttributeArray
disableAttributeArray(name: Any) -> None
X.disableAttributeArray(name)
Supplemental documentation: Qt 5 reference:
void QGLShaderProgram::disableAttributeArray(int location)
Disables the vertex array at location in this shader program that was enabled by a previous call to enableAttributeArray().
See also enableAttributeArray(), setAttributeArray(), setAttributeValue(), and setUniformValue().
void QGLShaderProgram::disableAttributeArray(const char *name)
This is an overloaded function.
Disables the vertex array called name in this shader program that was enabled by a previous call to enableAttributeArray().
See also enableAttributeArray(), setAttributeArray(), setAttributeValue(), and setUniformValue().
Upstream PySide2 reference signatures (binding differences may apply):
disableAttributeArray(self, location: int) -> None
disableAttributeArray(self, name: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#disableAttributeArray
enableAttributeArray
enableAttributeArray(name: Any) -> None
X.enableAttributeArray(name)
Supplemental documentation: Qt 5 reference:
void QGLShaderProgram::enableAttributeArray(int location)
Enables the vertex array at location in this shader program so that the value set by setAttributeArray() on location will be used by the shader program.
See also disableAttributeArray(), setAttributeArray(), setAttributeValue(), and setUniformValue().
void QGLShaderProgram::enableAttributeArray(const char *name)
This is an overloaded function.
Enables the vertex array called name in this shader program so that the value set by setAttributeArray() on name will be used by the shader program.
See also disableAttributeArray(), setAttributeArray(), setAttributeValue(), and setUniformValue().
Upstream PySide2 reference signatures (binding differences may apply):
enableAttributeArray(self, location: int) -> None
enableAttributeArray(self, name: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#enableAttributeArray
geometryInputType
geometryInputType() -> int
X.geometryInputType() -> int
Supplemental documentation: Qt 5 reference:
GLenum QGLShaderProgram::geometryInputType() const
Returns the geometry shader input type, if active.
This parameter takes effect the next time the program is linked.
This function was introduced in Qt 4.7.
See also setGeometryInputType().
Upstream PySide2 reference signatures (binding differences may apply):
geometryInputType(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#geometryInputType
geometryOutputType
geometryOutputType() -> int
X.geometryOutputType() -> int
Supplemental documentation: Qt 5 reference:
GLenum QGLShaderProgram::geometryOutputType() const
Returns the geometry shader output type, if active.
This parameter takes effect the next time the program is linked.
This function was introduced in Qt 4.7.
See also setGeometryOutputType().
Upstream PySide2 reference signatures (binding differences may apply):
geometryOutputType(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#geometryOutputType
geometryOutputVertexCount
geometryOutputVertexCount() -> int
X.geometryOutputVertexCount() -> int
Supplemental documentation: Qt 5 reference:
int QGLShaderProgram::geometryOutputVertexCount() const
Returns the maximum number of vertices the current geometry shader program will produce, if active.
This parameter takes effect the ntext time the program is linked.
This function was introduced in Qt 4.7.
See also setGeometryOutputVertexCount().
Upstream PySide2 reference signatures (binding differences may apply):
geometryOutputVertexCount(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#geometryOutputVertexCount
hasOpenGLShaderPrograms
hasOpenGLShaderPrograms(context: Any) -> bool
X.hasOpenGLShaderPrograms(context) -> bool
Supplemental documentation: Qt 5 reference:
[static] bool QGLShaderProgram::hasOpenGLShaderPrograms(const QGLContext *context \= nullptr)
Returns true if shader programs written in the OpenGL Shading Language (GLSL) are
supported on this system; false otherwise.
The context is used to resolve the GLSL extensions. If context is nullptr, then
QGLContext::currentContext()
is used.
Upstream PySide2 reference signatures (binding differences may apply):
hasOpenGLShaderPrograms(context: typing.Optional[PySide2.QtOpenGL.QGLContext]=...) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#hasOpenGLShaderPrograms
isLinked
isLinked() -> bool
X.isLinked() -> bool
Supplemental documentation: Qt 5 reference:
bool QGLShaderProgram::isLinked() const
Returns true if this shader program has been linked; false otherwise.
See also link().
Upstream PySide2 reference signatures (binding differences may apply):
isLinked(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#isLinked
link
link() -> bool
X.link() -> bool
Supplemental documentation: Qt 5 reference:
[virtual] bool QGLShaderProgram::link()
Links together the shaders that were added to this program with
addShader().
Returns true if the link was successful or false otherwise. If the link failed, the
error messages can be retrieved with
log().
Subclasses can override this function to initialize attributes and uniform variables for use in specific shader programs.
If the shader program was already linked, calling this function again will force it to be re-linked.
See also addShader() and log().
Upstream PySide2 reference signatures (binding differences may apply):
link(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#link
log
log() -> str
X.log() -> str
Supplemental documentation: Qt 5 reference:
QString QGLShaderProgram::log() const
Returns the errors and warnings that occurred during the last link() or addShader() with explicitly specified source code.
See also link().
Upstream PySide2 reference signatures (binding differences may apply):
log(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#log
maxGeometryOutputVertices
maxGeometryOutputVertices() -> int
X.maxGeometryOutputVertices() -> int
Supplemental documentation: Qt 5 reference:
int QGLShaderProgram::maxGeometryOutputVertices() const
Returns the hardware limit for how many vertices a geometry shader can output.
This function was introduced in Qt 4.7.
See also setGeometryOutputVertexCount().
Upstream PySide2 reference signatures (binding differences may apply):
maxGeometryOutputVertices(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#maxGeometryOutputVertices
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtOpenGL.QGLShaderProgram.objectNameChanged; argument details are not documented.
programId
programId() -> int
X.programId() -> int
Supplemental documentation: Qt 5 reference:
GLuint QGLShaderProgram::programId() const
Returns the OpenGL identifier associated with this shader program.
See also QGLShader::shaderId().
Upstream PySide2 reference signatures (binding differences may apply):
programId(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#programId
release
release() -> None
X.release()
Supplemental documentation: Qt 5 reference:
void QGLShaderProgram::release()
Releases the active shader program from the current QGLContext. This is equivalent to
calling glUseProgram(0).
See also bind().
Upstream PySide2 reference signatures (binding differences may apply):
release(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#release
removeAllShaders
removeAllShaders() -> None
X.removeAllShaders()
Supplemental documentation: Qt 5 reference:
void QGLShaderProgram::removeAllShaders()
Removes all of the shaders that were added to this program previously. The QGLShader objects for the shaders will not be deleted if they were constructed externally. QGLShader objects that are constructed internally by QGLShaderProgram will be deleted.
See also addShader() and removeShader().
Upstream PySide2 reference signatures (binding differences may apply):
removeAllShaders(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#removeAllShaders
removeShader
removeShader(shader: Any) -> None
X.removeShader(shader)
Supplemental documentation: Qt 5 reference:
void QGLShaderProgram::removeShader(QGLShader *shader)
Removes shader from this shader program. The object is not deleted.
The shader program must be valid in the current QGLContext.
See also addShader(), link(), and removeAllShaders().
Upstream PySide2 reference signatures (binding differences may apply):
removeShader(self, shader: PySide2.QtOpenGL.QGLShader) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#removeShader
setAttributeArray
setAttributeArray(name: Any, type: Any, values: Any, tupleSize: Any, stride: Any) -> Any
X.setAttributeArray(name, type, values, tupleSize, stride)
Supplemental documentation: Qt 5 reference:
void QGLShaderProgram::setAttributeArray(int location, const GLfloat *values, int tupleSize, int stride \= 0)
Sets an array of vertex values on the attribute at location in this shader program. The tupleSize indicates the number of components per vertex (1, 2, 3, or 4), and the stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.
The array will become active when enableAttributeArray() is called on the location. Otherwise the value specified with setAttributeValue() for location will be used.
See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().
void QGLShaderProgram::setAttributeArray(int location, const QVector2D *values, int stride \= 0)
Sets an array of 2D vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.
The array will become active when enableAttributeArray() is called on the location. Otherwise the value specified with setAttributeValue() for location will be used.
See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().
void QGLShaderProgram::setAttributeArray(int location, const QVector3D *values, int stride \= 0)
Sets an array of 3D vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.
The array will become active when enableAttributeArray() is called on the location. Otherwise the value specified with setAttributeValue() for location will be used.
See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().
void QGLShaderProgram::setAttributeArray(int location, const QVector4D *values, int stride \= 0)
Sets an array of 4D vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.
The array will become active when enableAttributeArray() is called on the location. Otherwise the value specified with setAttributeValue() for location will be used.
See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().
void QGLShaderProgram::setAttributeArray(int location, GLenum type, const void *values, int tupleSize, int stride \= 0)
Sets an array of vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.
The type indicates the type of elements in the values array, usually GL_FLOAT,
GL_UNSIGNED_BYTE, etc. The tupleSize indicates the number of components per vertex:
1, 2, 3, or 4.
The array will become active when enableAttributeArray() is called on the location. Otherwise the value specified with setAttributeValue() for location will be used.
The setAttributeBuffer() function can be used to set the attribute array to an offset within a vertex buffer.
Note: Normalization will be enabled. If this is not desired, call glVertexAttribPointer directly through QGLFunctions.
This function was introduced in Qt 4.7.
See also setAttributeValue(), setUniformValue(), enableAttributeArray(), disableAttributeArray(), and setAttributeBuffer().
void QGLShaderProgram::setAttributeArray(const char *name, const GLfloat *values, int tupleSize, int stride \= 0)
This is an overloaded function.
Sets an array of vertex values on the attribute called name in this shader program. The tupleSize indicates the number of components per vertex (1, 2, 3, or 4), and the stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.
The array will become active when enableAttributeArray() is called on name. Otherwise the value specified with setAttributeValue() for name will be used.
See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().
void QGLShaderProgram::setAttributeArray(const char *name, const QVector2D *values, int stride \= 0)
This is an overloaded function.
Sets an array of 2D vertex values on the attribute called name in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.
The array will become active when enableAttributeArray() is called on name. Otherwise the value specified with setAttributeValue() for name will be used.
See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().
void QGLShaderProgram::setAttributeArray(const char *name, const QVector3D *values, int stride \= 0)
This is an overloaded function.
Sets an array of 3D vertex values on the attribute called name in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.
The array will become active when enableAttributeArray() is called on name. Otherwise the value specified with setAttributeValue() for name will be used.
See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().
void QGLShaderProgram::setAttributeArray(const char *name, const QVector4D *values, int stride \= 0)
This is an overloaded function.
Sets an array of 4D vertex values on the attribute called name in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.
The array will become active when enableAttributeArray() is called on name. Otherwise the value specified with setAttributeValue() for name will be used.
See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().
void QGLShaderProgram::setAttributeArray(const char *name, GLenum type, const void *values, int tupleSize, int stride \= 0)
This is an overloaded function.
Sets an array of vertex values on the attribute called name in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.
The type indicates the type of elements in the values array, usually GL_FLOAT,
GL_UNSIGNED_BYTE, etc. The tupleSize indicates the number of components per vertex:
1, 2, 3, or 4.
The array will become active when enableAttributeArray() is called on the name. Otherwise the value specified with setAttributeValue() for name will be used.
The setAttributeBuffer() function can be used to set the attribute array to an offset within a vertex buffer.
This function was introduced in Qt 4.7.
See also setAttributeValue(), setUniformValue(), enableAttributeArray(), disableAttributeArray(), and setAttributeBuffer().
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#setAttributeArray
setAttributeBuffer
setAttributeBuffer(name: Any, type: int, offset: int, tupleSize: int, stride: int) -> None
X.setAttributeBuffer(name, type, offset, tupleSize, stride)
Supplemental documentation: Qt 5 reference:
void QGLShaderProgram::setAttributeBuffer(int location, GLenum type, int offset, int tupleSize, int stride \= 0)
Sets an array of vertex values on the attribute at location in this shader program, starting at a specific offset in the currently bound vertex buffer. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in the value array.
The type indicates the type of elements in the vertex value array, usually GL_FLOAT,
GL_UNSIGNED_BYTE, etc. The tupleSize indicates the number of components per vertex:
1, 2, 3, or 4.
The array will become active when enableAttributeArray() is called on the location. Otherwise the value specified with setAttributeValue() for location will be used.
Note: Normalization will be enabled. If this is not desired, call glVertexAttribPointer directly though QGLFunctions.
This function was introduced in Qt 4.7.
See also setAttributeArray().
void QGLShaderProgram::setAttributeBuffer(const char *name, GLenum type, int offset, int tupleSize, int stride \= 0)
This is an overloaded function.
Sets an array of vertex values on the attribute called name in this shader program, starting at a specific offset in the currently bound vertex buffer. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in the value array.
The type indicates the type of elements in the vertex value array, usually GL_FLOAT,
GL_UNSIGNED_BYTE, etc. The tupleSize indicates the number of components per vertex:
1, 2, 3, or 4.
The array will become active when enableAttributeArray() is called on the name. Otherwise the value specified with setAttributeValue() for name will be used.
This function was introduced in Qt 4.7.
See also setAttributeArray().
Upstream PySide2 reference signatures (binding differences may apply):
setAttributeBuffer(self, location: int, type: int, offset: int, tupleSize: int, stride: int=...) -> None
setAttributeBuffer(self, name: str, type: int, offset: int, tupleSize: int, stride: int=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#setAttributeBuffer
setAttributeValue
setAttributeValue(name: Any, x: Any, y: Any, z: Any, w: Any) -> None
X.setAttributeValue(name, x, y, z, w)
Supplemental documentation: Qt 5 reference:
void QGLShaderProgram::setAttributeValue(int location, GLfloat value)
Sets the attribute at location in the current context to value.
See also setUniformValue().
void QGLShaderProgram::setAttributeValue(int location, GLfloat x, GLfloat y)
Sets the attribute at location in the current context to the 2D vector (x, y).
See also setUniformValue().
void QGLShaderProgram::setAttributeValue(int location, GLfloat x, GLfloat y, GLfloat z)
Sets the attribute at location in the current context to the 3D vector (x, y, z).
See also setUniformValue().
void QGLShaderProgram::setAttributeValue(int location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
Sets the attribute at location in the current context to the 4D vector (x, y, z, w).
See also setUniformValue().
void QGLShaderProgram::setAttributeValue(int location, const QVector2D \&value)
Sets the attribute at location in the current context to value.
See also setUniformValue().
void QGLShaderProgram::setAttributeValue(int location, const QVector3D \&value)
Sets the attribute at location in the current context to value.
See also setUniformValue().
void QGLShaderProgram::setAttributeValue(int location, const QVector4D \&value)
Sets the attribute at location in the current context to value.
See also setUniformValue().
void QGLShaderProgram::setAttributeValue(int location, const QColor \&value)
Sets the attribute at location in the current context to value.
See also setUniformValue().
void QGLShaderProgram::setAttributeValue(int location, const GLfloat *values, int columns, int rows)
Sets the attribute at location in the current context to the contents of values, which contains columns elements, each consisting of rows elements. The rows value should be 1, 2, 3, or 4. This function is typically used to set matrix values and column vectors.
See also setUniformValue().
void QGLShaderProgram::setAttributeValue(const char *name, GLfloat value)
This is an overloaded function.
Sets the attribute called name in the current context to value.
See also setUniformValue().
void QGLShaderProgram::setAttributeValue(const char *name, GLfloat x, GLfloat y)
This is an overloaded function.
Sets the attribute called name in the current context to the 2D vector (x, y).
See also setUniformValue().
void QGLShaderProgram::setAttributeValue(const char *name, GLfloat x, GLfloat y, GLfloat z)
This is an overloaded function.
Sets the attribute called name in the current context to the 3D vector (x, y, z).
See also setUniformValue().
void QGLShaderProgram::setAttributeValue(const char *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
This is an overloaded function.
Sets the attribute called name in the current context to the 4D vector (x, y, z, w).
See also setUniformValue().
void QGLShaderProgram::setAttributeValue(const char *name, const QVector2D \&value)
This is an overloaded function.
Sets the attribute called name in the current context to value.
See also setUniformValue().
void QGLShaderProgram::setAttributeValue(const char *name, const QVector3D \&value)
This is an overloaded function.
Sets the attribute called name in the current context to value.
See also setUniformValue().
void QGLShaderProgram::setAttributeValue(const char *name, const QVector4D \&value)
This is an overloaded function.
Sets the attribute called name in the current context to value.
See also setUniformValue().
void QGLShaderProgram::setAttributeValue(const char *name, const QColor \&value)
This is an overloaded function.
Sets the attribute called name in the current context to value.
See also setUniformValue().
void QGLShaderProgram::setAttributeValue(const char *name, const GLfloat *values, int columns, int rows)
This is an overloaded function.
Sets the attribute called name in the current context to the contents of values, which contains columns elements, each consisting of rows elements. The rows value should be 1, 2, 3, or 4. This function is typically used to set matrix values and column vectors.
See also setUniformValue().
Upstream PySide2 reference signatures (binding differences may apply):
setAttributeValue(self, location: int, value: float) -> None
setAttributeValue(self, location: int, value: PySide2.QtGui.QColor) -> None
setAttributeValue(self, location: int, value: PySide2.QtGui.QVector2D) -> None
setAttributeValue(self, location: int, value: PySide2.QtGui.QVector3D) -> None
setAttributeValue(self, location: int, value: PySide2.QtGui.QVector4D) -> None
setAttributeValue(self, location: int, x: float, y: float) -> None
setAttributeValue(self, location: int, x: float, y: float, z: float) -> None
setAttributeValue(self, location: int, x: float, y: float, z: float, w: float) -> None
setAttributeValue(self, name: str, value: float) -> None
setAttributeValue(self, name: str, value: PySide2.QtGui.QColor) -> None
setAttributeValue(self, name: str, value: PySide2.QtGui.QVector2D) -> None
setAttributeValue(self, name: str, value: PySide2.QtGui.QVector3D) -> None
setAttributeValue(self, name: str, value: PySide2.QtGui.QVector4D) -> None
setAttributeValue(self, name: str, x: float, y: float) -> None
setAttributeValue(self, name: str, x: float, y: float, z: float) -> None
setAttributeValue(self, name: str, x: float, y: float, z: float, w: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#setAttributeValue
setGeometryInputType
setGeometryInputType(inputType: int) -> None
X.setGeometryInputType(inputType)
Supplemental documentation: Qt 5 reference:
void QGLShaderProgram::setGeometryInputType(GLenum inputType)
Sets the input type from inputType.
This parameter takes effect the next time the program is linked.
See also geometryInputType().
Upstream PySide2 reference signatures (binding differences may apply):
setGeometryInputType(self, inputType: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#setGeometryInputType
setGeometryOutputType
setGeometryOutputType(outputType: int) -> None
X.setGeometryOutputType(outputType)
Supplemental documentation: Qt 5 reference:
void QGLShaderProgram::setGeometryOutputType(GLenum outputType)
Sets the output type from the geometry shader, if active, to outputType.
This parameter takes effect the next time the program is linked.
This function was introduced in Qt 4.7.
See also geometryOutputType().
Upstream PySide2 reference signatures (binding differences may apply):
setGeometryOutputType(self, outputType: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#setGeometryOutputType
setGeometryOutputVertexCount
setGeometryOutputVertexCount(count: int) -> None
X.setGeometryOutputVertexCount(count)
Supplemental documentation: Qt 5 reference:
void QGLShaderProgram::setGeometryOutputVertexCount(int count)
Sets the maximum number of vertices the current geometry shader program will produce, if active, to count.
This parameter takes effect the next time the program is linked.
This function was introduced in Qt 4.7.
See also geometryOutputVertexCount().
Upstream PySide2 reference signatures (binding differences may apply):
setGeometryOutputVertexCount(self, count: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#setGeometryOutputVertexCount
setUniformValue
setUniformValue(name: Any, x: Any, y: Any, z: Any, w: Any) -> None
X.setUniformValue(name, x, y, z, w)
Supplemental documentation: Qt 5 reference:
void QGLShaderProgram::setUniformValue(int location, GLfloat value)
Sets the uniform variable at location in the current context to value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, GLint value)
Sets the uniform variable at location in the current context to value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const QColor \&color)
This is an overloaded function.
Sets the uniform variable called name in the current context to the red, green, blue, and alpha components of color.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const QPoint \&point)
This is an overloaded function.
Sets the uniform variable associated with name in the current context to the x and y coordinates of point.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const QPointF \&point)
This is an overloaded function.
Sets the uniform variable associated with name in the current context to the x and y coordinates of point.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const QSize \&size)
This is an overloaded function.
Sets the uniform variable associated with name in the current context to the width and height of the given size.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const QSizeF \&size)
This is an overloaded function.
Sets the uniform variable associated with name in the current context to the width and height of the given size.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const QMatrix2x2 \&value)
This is an overloaded function.
Sets the uniform variable called name in the current context to a 2x2 matrix value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const QMatrix2x3 \&value)
This is an overloaded function.
Sets the uniform variable called name in the current context to a 2x3 matrix value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const QMatrix2x4 \&value)
This is an overloaded function.
Sets the uniform variable called name in the current context to a 2x4 matrix value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const QMatrix3x2 \&value)
This is an overloaded function.
Sets the uniform variable called name in the current context to a 3x2 matrix value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const QMatrix3x3 \&value)
This is an overloaded function.
Sets the uniform variable called name in the current context to a 3x3 matrix value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const QMatrix3x4 \&value)
This is an overloaded function.
Sets the uniform variable called name in the current context to a 3x4 matrix value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const QMatrix4x2 \&value)
This is an overloaded function.
Sets the uniform variable called name in the current context to a 4x2 matrix value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const QMatrix4x3 \&value)
This is an overloaded function.
Sets the uniform variable called name in the current context to a 4x3 matrix value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const QMatrix4x4 \&value)
This is an overloaded function.
Sets the uniform variable called name in the current context to a 4x4 matrix value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const GLfloat [2][2] value \= 2)
This is an overloaded function.
Sets the uniform variable called name in the current context to a 2x2 matrix value. The matrix elements must be specified in column-major order.
This function was introduced in Qt 4.7.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const GLfloat [3][3] value \= 3)
This is an overloaded function.
Sets the uniform variable called name in the current context to a 3x3 matrix value. The matrix elements must be specified in column-major order.
This function was introduced in Qt 4.7.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const GLfloat [4][4] value \= 4)
This is an overloaded function.
Sets the uniform variable called name in the current context to a 4x4 matrix value. The matrix elements must be specified in column-major order.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const QTransform \&value)
This is an overloaded function.
Sets the uniform variable called name in the current context to a 3x3 transformation matrix value that is specified as a QTransform value.
To set a QTransform value as a 4x4
matrix in a shader, use setUniformValue(name, QMatrix4x4(value)).
void QGLShaderProgram::setUniformValue(int location, GLuint value)
Sets the uniform variable at location in the current context to value. This function should be used when setting sampler values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, GLfloat x, GLfloat y)
Sets the uniform variable at location in the current context to the 2D vector (x, y).
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, GLfloat x, GLfloat y, GLfloat z)
Sets the uniform variable at location in the current context to the 3D vector (x, y, z).
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
Sets the uniform variable at location in the current context to the 4D vector (x, y, z, w).
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const QVector2D \&value)
Sets the uniform variable at location in the current context to value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const QVector3D \&value)
Sets the uniform variable at location in the current context to value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const QVector4D \&value)
Sets the uniform variable at location in the current context to value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const QColor \&color)
Sets the uniform variable at location in the current context to the red, green, blue, and alpha components of color.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const QPoint \&point)
Sets the uniform variable at location in the current context to the x and y coordinates of point.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const QPointF \&point)
Sets the uniform variable at location in the current context to the x and y coordinates of point.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const QSize \&size)
Sets the uniform variable at location in the current context to the width and height of the given size.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const QSizeF \&size)
Sets the uniform variable at location in the current context to the width and height of the given size.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const QMatrix2x2 \&value)
Sets the uniform variable at location in the current context to a 2x2 matrix value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const QMatrix2x3 \&value)
Sets the uniform variable at location in the current context to a 2x3 matrix value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const QMatrix2x4 \&value)
Sets the uniform variable at location in the current context to a 2x4 matrix value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const QMatrix3x2 \&value)
Sets the uniform variable at location in the current context to a 3x2 matrix value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const QMatrix3x3 \&value)
Sets the uniform variable at location in the current context to a 3x3 matrix value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const QMatrix3x4 \&value)
Sets the uniform variable at location in the current context to a 3x4 matrix value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const QMatrix4x2 \&value)
Sets the uniform variable at location in the current context to a 4x2 matrix value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const QMatrix4x3 \&value)
Sets the uniform variable at location in the current context to a 4x3 matrix value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const QMatrix4x4 \&value)
Sets the uniform variable at location in the current context to a 4x4 matrix value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const GLfloat [2][2] value \= 2)
This is an overloaded function.
Sets the uniform variable at location in the current context to a 2x2 matrix value. The matrix elements must be specified in column-major order.
This function was introduced in Qt 4.7.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const GLfloat [3][3] value \= 3)
This is an overloaded function.
Sets the uniform variable at location in the current context to a 3x3 matrix value. The matrix elements must be specified in column-major order.
This function was introduced in Qt 4.7.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const GLfloat [4][4] value \= 4)
This is an overloaded function.
Sets the uniform variable at location in the current context to a 4x4 matrix value. The matrix elements must be specified in column-major order.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(int location, const QTransform \&value)
Sets the uniform variable at location in the current context to a 3x3 transformation matrix value that is specified as a QTransform value.
To set a QTransform value as a 4x4
matrix in a shader, use setUniformValue(location, QMatrix4x4(value)).
void QGLShaderProgram::setUniformValue(const char *name, GLfloat value)
This is an overloaded function.
Sets the uniform variable called name in the current context to value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, GLint value)
This is an overloaded function.
Sets the uniform variable called name in the current context to value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, GLuint value)
This is an overloaded function.
Sets the uniform variable called name in the current context to value. This function should be used when setting sampler values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, GLfloat x, GLfloat y)
This is an overloaded function.
Sets the uniform variable called name in the current context to the 2D vector (x, y).
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, GLfloat x, GLfloat y, GLfloat z)
This is an overloaded function.
Sets the uniform variable called name in the current context to the 3D vector (x, y, z).
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
This is an overloaded function.
Sets the uniform variable called name in the current context to the 4D vector (x, y, z, w).
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const QVector2D \&value)
This is an overloaded function.
Sets the uniform variable called name in the current context to value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const QVector3D \&value)
This is an overloaded function.
Sets the uniform variable called name in the current context to value.
See also setAttributeValue().
void QGLShaderProgram::setUniformValue(const char *name, const QVector4D \&value)
This is an overloaded function.
Sets the uniform variable called name in the current context to value.
See also setAttributeValue().
Upstream PySide2 reference signatures (binding differences may apply):
setUniformValue(self, location: int, color: PySide2.QtGui.QColor) -> None
setUniformValue(self, location: int, point: PySide2.QtCore.QPoint) -> None
setUniformValue(self, location: int, point: PySide2.QtCore.QPointF) -> None
setUniformValue(self, location: int, size: PySide2.QtCore.QSize) -> None
setUniformValue(self, location: int, size: PySide2.QtCore.QSizeF) -> None
setUniformValue(self, location: int, value: float) -> None
setUniformValue(self, location: int, value: int) -> None
setUniformValue(self, location: int, value: int) -> None
setUniformValue(self, location: int, value: PySide2.QtGui.QMatrix2x2) -> None
setUniformValue(self, location: int, value: PySide2.QtGui.QMatrix2x3) -> None
setUniformValue(self, location: int, value: PySide2.QtGui.QMatrix2x4) -> None
setUniformValue(self, location: int, value: PySide2.QtGui.QMatrix3x2) -> None
setUniformValue(self, location: int, value: PySide2.QtGui.QMatrix3x3) -> None
setUniformValue(self, location: int, value: PySide2.QtGui.QMatrix3x4) -> None
setUniformValue(self, location: int, value: PySide2.QtGui.QMatrix4x2) -> None
setUniformValue(self, location: int, value: PySide2.QtGui.QMatrix4x3) -> None
setUniformValue(self, location: int, value: PySide2.QtGui.QMatrix4x4) -> None
setUniformValue(self, location: int, value: PySide2.QtGui.QTransform) -> None
setUniformValue(self, location: int, value: PySide2.QtGui.QVector2D) -> None
setUniformValue(self, location: int, value: PySide2.QtGui.QVector3D) -> None
setUniformValue(self, location: int, value: PySide2.QtGui.QVector4D) -> None
setUniformValue(self, location: int, x: float, y: float) -> None
setUniformValue(self, location: int, x: float, y: float, z: float) -> None
setUniformValue(self, location: int, x: float, y: float, z: float, w: float) -> None
setUniformValue(self, name: str, color: PySide2.QtGui.QColor) -> None
setUniformValue(self, name: str, point: PySide2.QtCore.QPoint) -> None
setUniformValue(self, name: str, point: PySide2.QtCore.QPointF) -> None
setUniformValue(self, name: str, size: PySide2.QtCore.QSize) -> None
setUniformValue(self, name: str, size: PySide2.QtCore.QSizeF) -> None
setUniformValue(self, name: str, value: float) -> None
setUniformValue(self, name: str, value: int) -> None
setUniformValue(self, name: str, value: int) -> None
setUniformValue(self, name: str, value: PySide2.QtGui.QMatrix2x2) -> None
setUniformValue(self, name: str, value: PySide2.QtGui.QMatrix2x3) -> None
setUniformValue(self, name: str, value: PySide2.QtGui.QMatrix2x4) -> None
setUniformValue(self, name: str, value: PySide2.QtGui.QMatrix3x2) -> None
setUniformValue(self, name: str, value: PySide2.QtGui.QMatrix3x3) -> None
setUniformValue(self, name: str, value: PySide2.QtGui.QMatrix3x4) -> None
setUniformValue(self, name: str, value: PySide2.QtGui.QMatrix4x2) -> None
setUniformValue(self, name: str, value: PySide2.QtGui.QMatrix4x3) -> None
setUniformValue(self, name: str, value: PySide2.QtGui.QMatrix4x4) -> None
setUniformValue(self, name: str, value: PySide2.QtGui.QTransform) -> None
setUniformValue(self, name: str, value: PySide2.QtGui.QVector2D) -> None
setUniformValue(self, name: str, value: PySide2.QtGui.QVector3D) -> None
setUniformValue(self, name: str, value: PySide2.QtGui.QVector4D) -> None
setUniformValue(self, name: str, x: float, y: float) -> None
setUniformValue(self, name: str, x: float, y: float, z: float) -> None
setUniformValue(self, name: str, x: float, y: float, z: float, w: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#setUniformValue
setUniformValueArray
setUniformValueArray(name: Any, values: Any, count: Any, tupleSize: Any) -> Any
X.setUniformValueArray(name, values, count, tupleSize)
Supplemental documentation: Qt 5 reference:
void QGLShaderProgram::setUniformValueArray(int location, const GLfloat *values, int count, int tupleSize)
Sets the uniform variable array at location in the current context to the count elements of values. Each element has tupleSize components. The tupleSize must be 1, 2, 3, or 4.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(int location, const GLint *values, int count)
Sets the uniform variable array at location in the current context to the count elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(int location, const GLuint *values, int count)
Sets the uniform variable array at location in the current context to the count elements of values. This overload should be used when setting an array of sampler values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(int location, const QVector2D *values, int count)
Sets the uniform variable array at location in the current context to the count 2D vector elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(int location, const QVector3D *values, int count)
Sets the uniform variable array at location in the current context to the count 3D vector elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(int location, const QVector4D *values, int count)
Sets the uniform variable array at location in the current context to the count 4D vector elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(int location, const QMatrix2x2 *values, int count)
Sets the uniform variable array at location in the current context to the count 2x2 matrix elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(int location, const QMatrix2x3 *values, int count)
Sets the uniform variable array at location in the current context to the count 2x3 matrix elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(int location, const QMatrix2x4 *values, int count)
Sets the uniform variable array at location in the current context to the count 2x4 matrix elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(int location, const QMatrix3x2 *values, int count)
Sets the uniform variable array at location in the current context to the count 3x2 matrix elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(int location, const QMatrix3x3 *values, int count)
Sets the uniform variable array at location in the current context to the count 3x3 matrix elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(int location, const QMatrix3x4 *values, int count)
Sets the uniform variable array at location in the current context to the count 3x4 matrix elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(int location, const QMatrix4x2 *values, int count)
Sets the uniform variable array at location in the current context to the count 4x2 matrix elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(int location, const QMatrix4x3 *values, int count)
Sets the uniform variable array at location in the current context to the count 4x3 matrix elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(int location, const QMatrix4x4 *values, int count)
Sets the uniform variable array at location in the current context to the count 4x4 matrix elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(const char *name, const GLfloat *values, int count, int tupleSize)
This is an overloaded function.
Sets the uniform variable array called name in the current context to the count elements of values. Each element has tupleSize components. The tupleSize must be 1, 2, 3, or 4.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(const char *name, const GLint *values, int count)
This is an overloaded function.
Sets the uniform variable array called name in the current context to the count elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(const char *name, const GLuint *values, int count)
This is an overloaded function.
Sets the uniform variable array called name in the current context to the count elements of values. This overload should be used when setting an array of sampler values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(const char *name, const QVector2D *values, int count)
This is an overloaded function.
Sets the uniform variable array called name in the current context to the count 2D vector elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(const char *name, const QVector3D *values, int count)
This is an overloaded function.
Sets the uniform variable array called name in the current context to the count 3D vector elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(const char *name, const QVector4D *values, int count)
This is an overloaded function.
Sets the uniform variable array called name in the current context to the count 4D vector elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(const char *name, const QMatrix2x2 *values, int count)
This is an overloaded function.
Sets the uniform variable array called name in the current context to the count 2x2 matrix elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(const char *name, const QMatrix2x3 *values, int count)
This is an overloaded function.
Sets the uniform variable array called name in the current context to the count 2x3 matrix elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(const char *name, const QMatrix2x4 *values, int count)
This is an overloaded function.
Sets the uniform variable array called name in the current context to the count 2x4 matrix elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(const char *name, const QMatrix3x2 *values, int count)
This is an overloaded function.
Sets the uniform variable array called name in the current context to the count 3x2 matrix elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(const char *name, const QMatrix3x3 *values, int count)
This is an overloaded function.
Sets the uniform variable array called name in the current context to the count 3x3 matrix elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(const char *name, const QMatrix3x4 *values, int count)
This is an overloaded function.
Sets the uniform variable array called name in the current context to the count 3x4 matrix elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(const char *name, const QMatrix4x2 *values, int count)
This is an overloaded function.
Sets the uniform variable array called name in the current context to the count 4x2 matrix elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(const char *name, const QMatrix4x3 *values, int count)
This is an overloaded function.
Sets the uniform variable array called name in the current context to the count 4x3 matrix elements of values.
See also setAttributeValue().
void QGLShaderProgram::setUniformValueArray(const char *name, const QMatrix4x4 *values, int count)
This is an overloaded function.
Sets the uniform variable array called name in the current context to the count 4x4 matrix elements of values.
See also setAttributeValue().
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#setUniformValueArray
shaders
shaders() -> tuple
X.shaders() -> tuple
Supplemental documentation: Qt 5 reference:
QList\<QGLShader *> QGLShaderProgram::shaders() const
Returns a list of all shaders that have been added to this shader program using addShader().
See also addShader() and removeShader().
Upstream PySide2 reference signatures (binding differences may apply):
shaders(self) -> typing.List[PySide2.QtOpenGL.QGLShader]
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#shaders
uniformLocation
uniformLocation(name: Any) -> int
X.uniformLocation(name) -> int
Supplemental documentation: Qt 5 reference:
int QGLShaderProgram::uniformLocation(const char *name) const
Returns the location of the uniform variable name within this shader program's parameter list. Returns -1 if name is not a valid uniform variable for this shader program.
See also attributeLocation().
int QGLShaderProgram::uniformLocation(const QByteArray \&name) const
This is an overloaded function.
Returns the location of the uniform variable name within this shader program's parameter list. Returns -1 if name is not a valid uniform variable for this shader program.
See also attributeLocation().
int QGLShaderProgram::uniformLocation(const QString \&name) const
This is an overloaded function.
Returns the location of the uniform variable name within this shader program's parameter list. Returns -1 if name is not a valid uniform variable for this shader program.
See also attributeLocation().
Upstream PySide2 reference signatures (binding differences may apply):
uniformLocation(self, name: PySide2.QtCore.QByteArray) -> int
uniformLocation(self, name: str) -> int
uniformLocation(self, name: str) -> int
Source: https://doc.qt.io/archives/qt-5.15/qglshaderprogram.html#uniformLocation