summaryrefslogtreecommitdiffstats
path: root/src/core/nodes/qcomponent_p.h
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire.ecortex@kdab.com>2014-11-10 11:37:49 +0100
committerSean Harmer <sean.harmer@kdab.com>2014-11-14 20:29:28 +0100
commit08de01ce9f80285faeb7d66b5a5039a2c365fa69 (patch)
tree9c3eaaac3c3178afc5ba0a6bfce2df19c949f0d8 /src/core/nodes/qcomponent_p.h
parent6e89619c511e9d1d622bd0e98f7dcc771624022b (diff)
QComponent: add array of referenced entities
This will allow us to easily check which entities reference a given component. This will make sharing components easier and avoid us having to have RenderEntity like classes in every aspect just to check if a Component is being referenced. Change-Id: Ie6876dba334249c10f93a8f815dc45c31a83c755 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/core/nodes/qcomponent_p.h')
-rw-r--r--src/core/nodes/qcomponent_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/nodes/qcomponent_p.h b/src/core/nodes/qcomponent_p.h
index cc7b55379..f7d9ffb29 100644
--- a/src/core/nodes/qcomponent_p.h
+++ b/src/core/nodes/qcomponent_p.h
@@ -54,8 +54,12 @@ class QT3DCORESHARED_EXPORT QComponentPrivate : public QNodePrivate
public:
explicit QComponentPrivate(QComponent *qq);
+ void addEntity(QEntity *entity);
+ void removeEntity(QEntity *entity);
+
Q_DECLARE_PUBLIC(QComponent)
bool m_shareable;
+ QVector<QEntity *> m_entities;
};
}