rebuild atlas indexes
| 510 | |
| 511 | // rebuild atlas indexes |
| 512 | void 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 |
nothing calls this directly
no test coverage detected