diff options
author | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-06-27 08:21:48 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-07-02 12:28:14 +0200 |
commit | 3e92967eaa45c578db224338aec2d39511d22cb1 (patch) | |
tree | 0556cb313cca255670f8ae3ad6db0d9aa2a75bd7 /src/quick/scenegraph/util | |
parent | fe015ea5ea33627586b7b4cd622f00c8753a7c49 (diff) |
Document public members of QSGSimpleMaterialShader
Change-Id: I2e46989d4076ff639d7264985e030df0f1cb2a88
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'src/quick/scenegraph/util')
-rw-r--r-- | src/quick/scenegraph/util/qsgsimplematerial.cpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/quick/scenegraph/util/qsgsimplematerial.cpp b/src/quick/scenegraph/util/qsgsimplematerial.cpp index ee7a272fbe..35ad56a44b 100644 --- a/src/quick/scenegraph/util/qsgsimplematerial.cpp +++ b/src/quick/scenegraph/util/qsgsimplematerial.cpp @@ -180,17 +180,29 @@ /*! \fn void QSGSimpleMaterialShader::resolveUniforms() - \internal + + Reimplement this function to resolve the location of named uniforms + in the shader program. + + This function is called when the material shader is initialized. */ /*! \fn const char *QSGSimpleMaterialShader::uniformMatrixName() const - \internal + + Reimplement this function to give a different name to the uniform for + item transformation. The default value is \c qt_Matrix. + */ /*! \fn const char *QSGSimpleMaterialShader::uniformOpacityName() const - \internal + + Reimplement this function to give a different name to the uniform for + item opacity. The default value is \c qt_Opacity. + + If the shader program does not implement the item opacity, the + implemented function should return a null pointer. */ /*! |