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

Method updateAllAtlasIndexes

core/2d/ParticleBatchNode.cpp:512–522  ·  view source on GitHub ↗

rebuild atlas indexes

Source from the content-addressed store, hash-verified

510
511// rebuild atlas indexes
512void ParticleBatchNode::updateAllAtlasIndexes()
513{
514 int index = 0;
515
516 for (const auto& child : _children)
517 {
518 ParticleSystem* partiSys = static_cast<ParticleSystem*>(child);
519 partiSys->setAtlasIndex(index);
520 index += partiSys->getTotalParticles();
521 }
522}
523
524// ParticleBatchNode - CocosNodeTexture protocol
525

Callers

nothing calls this directly

Calls 1

getTotalParticlesMethod · 0.80

Tested by

no test coverage detected