QGLShaderProgram Class Reference
Inherits QObject.
Constructor
- void QGLShaderProgram(QObject parent)
- void QGLShaderProgram(QGLContext context, QObject parent)
Constructor Properties
- prototype: The QGLShaderProgram prototype object
- bool hasOpenGLShaderPrograms(QGLContext context)
Prototype Object Properties
The QGLShaderProgram prototype object inherits properties from the QObject prototype object and also has the following properties.
- bool addShader(QGLShader shader)
- bool addShaderFromSourceCode(ShaderType type, QByteArray source)
- bool addShaderFromSourceFile(ShaderType type, String fileName)
- int attributeLocation(QByteArray name)
- bool bind()
- void bindAttributeLocation(QByteArray name, int location)
- void disableAttributeArray(char name)
- void enableAttributeArray(char name)
- unsigned int geometryInputType()
- unsigned int geometryOutputType()
- int geometryOutputVertexCount()
- bool isLinked()
- bool link()
- String log()
- int maxGeometryOutputVertices()
- unsigned int programId()
- void release()
- void removeAllShaders()
- void removeShader(QGLShader shader)
- void setAttributeArray(char name, float values, int tupleSize, int stride)
- void setAttributeArray_QVector2D(char name, QVector2D values, int stride)
- void setAttributeArray_QVector3D(char name, QVector3D values, int stride)
- void setAttributeArray_QVector4D(char name, QVector4D values, int stride)
- void setAttributeBuffer(char name, unsigned int type, int offset, int tupleSize, int stride)
- void setAttributeValue(char name, QColor value)
- void setGeometryInputType(unsigned int inputType)
- void setGeometryOutputType(unsigned int outputType)
- void setGeometryOutputVertexCount(int count)
- void setUniformValue(char name, QColor color)
- void setUniformValueArray(char name, QMatrix3x3 values, int count)
- void setUniformValueArray_QVector2D(char name, QVector2D values, int count)
- void setUniformValueArray_QVector3D(char name, QVector3D values, int count)
- void setUniformValueArray_QVector4D(char name, QVector4D values, int count)
- List shaders()
- int uniformLocation(QByteArray name)
Instance Properties
QGLShaderProgram objects have no special properties beyond those inherited from the QGLShaderProgram prototype object.