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

Method removeAllChildrenWithCleanup

core/2d/ParticleBatchNode.cpp:417–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417void ParticleBatchNode::removeAllChildrenWithCleanup(bool doCleanup)
418{
419 for (const auto& child : _children)
420 static_cast<ParticleSystem*>(child)->setBatchNode(nullptr);
421
422 Node::removeAllChildrenWithCleanup(doCleanup);
423
424 _textureAtlas->removeAllQuads();
425}
426
427void ParticleBatchNode::draw(Renderer* renderer, const Mat4& transform, uint32_t flags)
428{

Callers

nothing calls this directly

Calls 2

removeAllQuadsMethod · 0.80
setBatchNodeMethod · 0.45

Tested by

no test coverage detected