MCPcopy Create free account
hub / github.com/axmolengine/axmol / removeAllChildrenWithCleanup

Method removeAllChildrenWithCleanup

core/2d/Sprite.cpp:1190–1203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1188}
1189
1190void Sprite::removeAllChildrenWithCleanup(bool cleanup)
1191{
1192 if (_renderMode == RenderMode::QUAD_BATCHNODE)
1193 {
1194 for (const auto& child : _children)
1195 {
1196 Sprite* sprite = dynamic_cast<Sprite*>(child);
1197 if (sprite)
1198 _batchNode->removeSpriteFromAtlas(sprite);
1199 }
1200 }
1201
1202 Node::removeAllChildrenWithCleanup(cleanup);
1203}
1204
1205void Sprite::sortAllChildren()
1206{

Callers

nothing calls this directly

Calls 1

removeSpriteFromAtlasMethod · 0.80

Tested by

no test coverage detected