diff options
Diffstat (limited to 'src/quick/scenegraph')
-rw-r--r-- | src/quick/scenegraph/coreapi/qsgmaterialshader.cpp | 9 | ||||
-rw-r--r-- | src/quick/scenegraph/coreapi/qsgmaterialshader.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgmaterialshader.cpp b/src/quick/scenegraph/coreapi/qsgmaterialshader.cpp index c19ecc4ad5..150e54db6d 100644 --- a/src/quick/scenegraph/coreapi/qsgmaterialshader.cpp +++ b/src/quick/scenegraph/coreapi/qsgmaterialshader.cpp @@ -408,6 +408,15 @@ void QSGMaterialShader::setFlag(Flags flags, bool on) } /*! + Sets the \a flags for this material shader. + */ +void QSGMaterialShader::setFlags(Flags flags) +{ + Q_D(QSGMaterialShader); + d->flags = flags; +} + +/*! This function is called by the scene graph to get the contents of the shader program's uniform buffer updated. The implementation is not expected to perform any real graphics operations, it is merely responsible for diff --git a/src/quick/scenegraph/coreapi/qsgmaterialshader.h b/src/quick/scenegraph/coreapi/qsgmaterialshader.h index ca7bb6f75c..bde210bef8 100644 --- a/src/quick/scenegraph/coreapi/qsgmaterialshader.h +++ b/src/quick/scenegraph/coreapi/qsgmaterialshader.h @@ -164,6 +164,7 @@ public: Flags flags() const; void setFlag(Flags flags, bool on = true); + void setFlags(Flags flags); protected: Q_DECLARE_PRIVATE(QSGMaterialShader) |