| 1188 | } |
| 1189 | |
| 1190 | void 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 | |
| 1205 | void Sprite::sortAllChildren() |
| 1206 | { |
nothing calls this directly
no test coverage detected