QGLShaderProgram Class Reference
[QtOpenGL module]
Inherits QObject.
Methods
- __init__ (self, QObject parent = None)
- __init__ (self, QGLContext, QObject parent = None)
- bool addShader (self, QGLShader)
- bool addShaderFromSourceCode (self, QGLShader.ShaderType, QByteArray)
- bool addShaderFromSourceCode (self, QGLShader.ShaderType, QString)
- bool addShaderFromSourceFile (self, QGLShader.ShaderType, QString)
- int attributeLocation (self, QByteArray)
- int attributeLocation (self, QString)
- bool bind (self)
- bindAttributeLocation (self, QByteArray, int)
- bindAttributeLocation (self, QString, int)
- disableAttributeArray (self, int)
- disableAttributeArray (self, str)
- enableAttributeArray (self, int)
- enableAttributeArray (self, str)
- int geometryInputType (self)
- int geometryOutputType (self)
- int geometryOutputVertexCount (self)
- bool isLinked (self)
- bool link (self)
- QString log (self)
- int programId (self)
- release (self)
- removeAllShaders (self)
- removeShader (self, QGLShader)
- setAttributeBuffer (self, int location, int type, int offset, int tupleSize, int stride = 0)
- setAttributeBuffer (self, str name, int type, int offset, int tupleSize, int stride = 0)
- setAttributeValue (self, int, float)
- setAttributeValue (self, int, float, float)
- setAttributeValue (self, int, float, float, float)
- setAttributeValue (self, int, float, float, float, float)
- setAttributeValue (self, int, QVector2D)
- setAttributeValue (self, int, QVector3D)
- setAttributeValue (self, int, QVector4D)
- setAttributeValue (self, int, QColor)
- setAttributeValue (self, str, float)
- setAttributeValue (self, str, float, float)
- setAttributeValue (self, str, float, float, float)
- setAttributeValue (self, str, float, float, float, float)
- setAttributeValue (self, str, QVector2D)
- setAttributeValue (self, str, QVector3D)
- setAttributeValue (self, str, QVector4D)
- setAttributeValue (self, str, QColor)
- setGeometryInputType (self, int inputType)
- setGeometryOutputType (self, int outputType)
- setGeometryOutputVertexCount (self, int count)
- setUniformValue (self, int, int)
- setUniformValue (self, int, float)
- setUniformValue (self, int, float, float)
- setUniformValue (self, int, float, float, float)
- setUniformValue (self, int, float, float, float, float)
- setUniformValue (self, int, QVector2D)
- setUniformValue (self, int, QVector3D)
- setUniformValue (self, int, QVector4D)
- setUniformValue (self, int, QColor)
- setUniformValue (self, int, QPoint)
- setUniformValue (self, int, QPointF)
- setUniformValue (self, int, QSize)
- setUniformValue (self, int, QSizeF)
- setUniformValue (self, int, QMatrix2x2)
- setUniformValue (self, int, QMatrix2x3)
- setUniformValue (self, int, QMatrix2x4)
- setUniformValue (self, int, QMatrix3x2)
- setUniformValue (self, int, QMatrix3x3)
- setUniformValue (self, int, QMatrix3x4)
- setUniformValue (self, int, QMatrix4x2)
- setUniformValue (self, int, QMatrix4x3)
- setUniformValue (self, int, QMatrix4x4)
- setUniformValue (self, int, QTransform)
- setUniformValue (self, str, int)
- setUniformValue (self, str, float)
- setUniformValue (self, str, float, float)
- setUniformValue (self, str, float, float, float)
- setUniformValue (self, str, float, float, float, float)
- setUniformValue (self, str, QVector2D)
- setUniformValue (self, str, QVector3D)
- setUniformValue (self, str, QVector4D)
- setUniformValue (self, str, QColor)
- setUniformValue (self, str, QPoint)
- setUniformValue (self, str, QPointF)
- setUniformValue (self, str, QSize)
- setUniformValue (self, str, QSizeF)
- setUniformValue (self, str, QMatrix2x2)
- setUniformValue (self, str, QMatrix2x3)
- setUniformValue (self, str, QMatrix2x4)
- setUniformValue (self, str, QMatrix3x2)
- setUniformValue (self, str, QMatrix3x3)
- setUniformValue (self, str, QMatrix3x4)
- setUniformValue (self, str, QMatrix4x2)
- setUniformValue (self, str, QMatrix4x3)
- setUniformValue (self, str, QMatrix4x4)
- setUniformValue (self, str, QTransform)
- list-of-QGLShader shaders (self)
- int uniformLocation (self, QByteArray)
- int uniformLocation (self, QString)
Static Methods
Detailed Description
Method Documentation
QGLShaderProgram.__init__ (self, QObject parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QGLShaderProgram.__init__ (self, QGLContext, QObject parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
bool QGLShaderProgram.addShader (self, QGLShader)
bool QGLShaderProgram.addShaderFromSourceCode (self, QGLShader.ShaderType, QString)
bool QGLShaderProgram.addShaderFromSourceFile (self, QGLShader.ShaderType, QString)
int QGLShaderProgram.attributeLocation (self, QByteArray)
int QGLShaderProgram.attributeLocation (self, QString)
bool QGLShaderProgram.bind (self)
QGLShaderProgram.bindAttributeLocation (self, QByteArray, int)
QGLShaderProgram.bindAttributeLocation (self, QString, int)
QGLShaderProgram.disableAttributeArray (self, int)
QGLShaderProgram.disableAttributeArray (self, str)
QGLShaderProgram.enableAttributeArray (self, int)
QGLShaderProgram.enableAttributeArray (self, str)
int QGLShaderProgram.geometryInputType (self)
int QGLShaderProgram.geometryOutputType (self)
int QGLShaderProgram.geometryOutputVertexCount (self)
bool QGLShaderProgram.hasOpenGLShaderPrograms (QGLContext context = None)
bool QGLShaderProgram.isLinked (self)
bool QGLShaderProgram.link (self)
QString QGLShaderProgram.log (self)
int QGLShaderProgram.programId (self)
QGLShaderProgram.release (self)
QGLShaderProgram.removeAllShaders (self)
QGLShaderProgram.removeShader (self, QGLShader)
QGLShaderProgram.setAttributeBuffer (self, int location, int type, int offset, int tupleSize, int stride = 0)
QGLShaderProgram.setAttributeBuffer (self, str name, int type, int offset, int tupleSize, int stride = 0)
QGLShaderProgram.setAttributeValue (self, int, float)
QGLShaderProgram.setAttributeValue (self, int, float, float)
QGLShaderProgram.setAttributeValue (self, int, float, float, float)
QGLShaderProgram.setAttributeValue (self, int, float, float, float, float)
QGLShaderProgram.setAttributeValue (self, int, QVector2D)
QGLShaderProgram.setAttributeValue (self, int, QVector3D)
QGLShaderProgram.setAttributeValue (self, int, QVector4D)
QGLShaderProgram.setAttributeValue (self, int, QColor)
QGLShaderProgram.setAttributeValue (self, str, float)
QGLShaderProgram.setAttributeValue (self, str, float, float)
QGLShaderProgram.setAttributeValue (self, str, float, float, float)
QGLShaderProgram.setAttributeValue (self, str, float, float, float, float)
QGLShaderProgram.setAttributeValue (self, str, QVector2D)
QGLShaderProgram.setAttributeValue (self, str, QVector3D)
QGLShaderProgram.setAttributeValue (self, str, QVector4D)
QGLShaderProgram.setAttributeValue (self, str, QColor)
QGLShaderProgram.setGeometryInputType (self, int inputType)
QGLShaderProgram.setGeometryOutputType (self, int outputType)
QGLShaderProgram.setGeometryOutputVertexCount (self, int count)
QGLShaderProgram.setUniformValue (self, int, int)
QGLShaderProgram.setUniformValue (self, int, float)
QGLShaderProgram.setUniformValue (self, int, float, float)
QGLShaderProgram.setUniformValue (self, int, float, float, float)
QGLShaderProgram.setUniformValue (self, int, float, float, float, float)
QGLShaderProgram.setUniformValue (self, int, QVector2D)
QGLShaderProgram.setUniformValue (self, int, QVector3D)
QGLShaderProgram.setUniformValue (self, int, QVector4D)
QGLShaderProgram.setUniformValue (self, int, QColor)
QGLShaderProgram.setUniformValue (self, int, QPoint)
QGLShaderProgram.setUniformValue (self, int, QPointF)
QGLShaderProgram.setUniformValue (self, int, QSize)
QGLShaderProgram.setUniformValue (self, int, QSizeF)
QGLShaderProgram.setUniformValue (self, int, QMatrix2x2)
QGLShaderProgram.setUniformValue (self, int, QMatrix2x3)
QGLShaderProgram.setUniformValue (self, int, QMatrix2x4)
QGLShaderProgram.setUniformValue (self, int, QMatrix3x2)
QGLShaderProgram.setUniformValue (self, int, QMatrix3x3)
QGLShaderProgram.setUniformValue (self, int, QMatrix3x4)
QGLShaderProgram.setUniformValue (self, int, QMatrix4x2)
QGLShaderProgram.setUniformValue (self, int, QMatrix4x3)
QGLShaderProgram.setUniformValue (self, int, QMatrix4x4)
QGLShaderProgram.setUniformValue (self, int, QTransform)
QGLShaderProgram.setUniformValue (self, str, int)
QGLShaderProgram.setUniformValue (self, str, float)
QGLShaderProgram.setUniformValue (self, str, float, float)
QGLShaderProgram.setUniformValue (self, str, float, float, float)
QGLShaderProgram.setUniformValue (self, str, float, float, float, float)
QGLShaderProgram.setUniformValue (self, str, QVector2D)
QGLShaderProgram.setUniformValue (self, str, QVector3D)
QGLShaderProgram.setUniformValue (self, str, QVector4D)
QGLShaderProgram.setUniformValue (self, str, QColor)
QGLShaderProgram.setUniformValue (self, str, QPoint)
QGLShaderProgram.setUniformValue (self, str, QPointF)
QGLShaderProgram.setUniformValue (self, str, QSize)
QGLShaderProgram.setUniformValue (self, str, QSizeF)
QGLShaderProgram.setUniformValue (self, str, QMatrix2x2)
QGLShaderProgram.setUniformValue (self, str, QMatrix2x3)
QGLShaderProgram.setUniformValue (self, str, QMatrix2x4)
QGLShaderProgram.setUniformValue (self, str, QMatrix3x2)
QGLShaderProgram.setUniformValue (self, str, QMatrix3x3)
QGLShaderProgram.setUniformValue (self, str, QMatrix3x4)
QGLShaderProgram.setUniformValue (self, str, QMatrix4x2)
QGLShaderProgram.setUniformValue (self, str, QMatrix4x3)
QGLShaderProgram.setUniformValue (self, str, QMatrix4x4)
QGLShaderProgram.setUniformValue (self, str, QTransform)
list-of-QGLShader QGLShaderProgram.shaders (self)
int QGLShaderProgram.uniformLocation (self, QByteArray)
int QGLShaderProgram.uniformLocation (self, QString)