diff options
Diffstat (limited to 'src/quick/scenegraph/util/qsgsimplematerial.cpp')
-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. */ /*! |