summaryrefslogtreecommitdiffstats
path: root/src/render/materialsystem/parameter_p.h
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2019-09-06 15:49:20 +0100
committerPaul Lemire <paul.lemire@kdab.com>2019-09-19 13:42:10 +0200
commit56785807dc5aec77506ea02174fd46a67de57b5f (patch)
tree6733628b760e0995282c17cd1dd6b3cfa939cc62 /src/render/materialsystem/parameter_p.h
parent8bb3c656be7df26b260c217cd92bab6c9664981a (diff)
Update QParameter to use direct sync
Change-Id: Iea1a2db5d4bcd2ef563993a434bf8e2166d64ed5 Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'src/render/materialsystem/parameter_p.h')
-rw-r--r--src/render/materialsystem/parameter_p.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/render/materialsystem/parameter_p.h b/src/render/materialsystem/parameter_p.h
index 4ab04bc8e..9deaa11f3 100644
--- a/src/render/materialsystem/parameter_p.h
+++ b/src/render/materialsystem/parameter_p.h
@@ -71,16 +71,15 @@ public:
void cleanup();
- void sceneChangeEvent(const Qt3DCore::QSceneChangePtr &e) override;
+ void syncFromFrontEnd(const Qt3DCore::QNode *frontEnd, bool firstTime) override;
QString name() const;
int nameId() const Q_DECL_NOTHROW { return m_nameId; }
const UniformValue &uniformValue() const { return m_uniformValue; }
private:
- void initializeFromPeer(const Qt3DCore::QNodeCreatedChangeBasePtr &change) final;
-
QString m_name;
+ QVariant m_backendValue;
UniformValue m_uniformValue;
int m_nameId;
};