forked from Dynamitos/Seele
Trying ttf loading
This commit is contained in:
1 parent
bebfb94752
commit
3fec36295a
42 files changed
+563
-549
No files matched your search
@@ -60,6 +60,10 @@ PScene Actor::getScene()
|
||||
|
||||
void Actor::setParent(PActor newParent)
|
||||
{
|
||||
if(parent != nullptr)
|
||||
{
|
||||
parent->removeChild(this);
|
||||
}
|
||||
parent = newParent;
|
||||
}
|
||||
void Actor::addChild(PActor child)
|
||||
@@ -68,7 +72,7 @@ void Actor::addChild(PActor child)
|
||||
child->setParent(this);
|
||||
child->notifySceneAttach(owningScene);
|
||||
}
|
||||
void Actor::detachChild(PActor child)
|
||||
void Actor::removeChild(PActor child)
|
||||
{
|
||||
children.remove(children.find(child), false);
|
||||
child->setParent(nullptr);
|
||||
|
||||
Reference in new issue
Block a user