summaryrefslogtreecommitdiffstats
path: root/src/render/backend/entity_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/backend/entity_p.h')
-rw-r--r--src/render/backend/entity_p.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/render/backend/entity_p.h b/src/render/backend/entity_p.h
index 49f5f4106..cf6c0117b 100644
--- a/src/render/backend/entity_p.h
+++ b/src/render/backend/entity_p.h
@@ -153,6 +153,19 @@ public:
return QVector<Qt3DCore::QNodeId>();
}
+ template<typename T>
+ bool containsComponentsOfType()
+ {
+ return !componentUuid<T>().isNull();
+ }
+
+ template<typename T, typename Ts, typename ... Ts2>
+ bool containsComponentsOfType()
+ {
+ return containsComponentsOfType<T>() && containsComponentsOfType<Ts, Ts2...>();
+ }
+
+
private:
void initializeFromPeer(const Qt3DCore::QNodeCreatedChangeBasePtr &change) Q_DECL_FINAL;