Fixing synchronization problem between descriptor sets and command buffers
This commit is contained in:
@@ -105,3 +105,8 @@ void Actor::setRootComponent(PComponent newRoot)
|
||||
rootComponent = newRoot;
|
||||
rootComponent->owner = this;
|
||||
}
|
||||
|
||||
Transform Actor::getTransform() const
|
||||
{
|
||||
return rootComponent->getTransform();
|
||||
}
|
||||
|
||||
@@ -38,6 +38,9 @@ public:
|
||||
PComponent getRootComponent();
|
||||
void setRootComponent(PComponent newRoot);
|
||||
|
||||
// Returns a read-only copy of the actors transform
|
||||
Transform getTransform() const;
|
||||
|
||||
protected:
|
||||
void setParent(PActor parent);
|
||||
PScene owningScene;
|
||||
|
||||
Reference in New Issue
Block a user