diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-10-13 11:58:40 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-10-14 09:39:21 +0200 |
commit | 8e8bb79c01f3613a67ed19ee1ec40745f170b880 (patch) | |
tree | 231c625e10eff40ce8fdd7cdcac555c0ff21575d | |
parent | 4798397553c1a48adbb570f9251e4ed44d28632a (diff) |
Add setFlags to QSGMaterialShader for symmetry
From API review.
Change-Id: Ib1b3280b83222bb1b370640c4f733554f60d8104
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
-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) |