summaryrefslogtreecommitdiffstats
path: root/src/runtime/q3dsuippresentation_p.h
diff options
context:
space:
mode:
authorMäättä Antti <antti.maatta@qt.io>2018-05-09 15:21:00 +0300
committerLaszlo Agocs <laszlo.agocs@qt.io>2018-05-09 13:16:30 +0000
commit5480126147cbb445167732a08f56ef0d9217deeb (patch)
tree8a82244e575621e9b9377e96f75fe6f2ee56f465 /src/runtime/q3dsuippresentation_p.h
parent5dda0ff38f067b58d9493dc269164e982c78d5b5 (diff)
Add transparency scan hash
Store transparency check results per sourcePath to reduce loading time. Task-number: QT3DS-1589 Change-Id: Iff6ba90aeb4871e3fcd6091e79bec39a037d2ff4 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/runtime/q3dsuippresentation_p.h')
-rw-r--r--src/runtime/q3dsuippresentation_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/runtime/q3dsuippresentation_p.h b/src/runtime/q3dsuippresentation_p.h
index fb2033d..1f73a98 100644
--- a/src/runtime/q3dsuippresentation_p.h
+++ b/src/runtime/q3dsuippresentation_p.h
@@ -719,7 +719,7 @@ public:
void calculateTextureTransform();
const QMatrix4x4 &textureTransform() const { return m_textureTransform; }
- bool hasTransparency();
+ bool hasTransparency(Q3DSUipPresentation *presentation);
// Properties
QString sourcePath() const { return m_sourcePath; } // already adjusted, can be opened as-is
@@ -2025,6 +2025,7 @@ public:
obj->parent()->removeChildNode(obj);
}
void resolveAliases();
+ QHash<QString, bool> &imageTransparencyHash();
private:
Q_DISABLE_COPY(Q3DSUipPresentation)
@@ -2037,6 +2038,7 @@ private:
Q3DSGraphObject *getObjectByName(const QString &name) const;
QScopedPointer<Q3DSUipPresentationData> d;
+ QHash<QString, bool> m_imageTransparencyHash;
friend class Q3DSUipParser;
};