this function test if remove and add works as expected: color array and vertex array should be reindexed
| 351 | // this function test if remove and add works as expected: |
| 352 | // color array and vertex array should be reindexed |
| 353 | void SpriteColorOpacity::removeAndAddSprite(float dt) |
| 354 | { |
| 355 | auto sprite = static_cast<Sprite*>(getChildByTag(kTagSprite5)); |
| 356 | sprite->retain(); |
| 357 | |
| 358 | removeChild(sprite, false); |
| 359 | addChild(sprite, 0, kTagSprite5); |
| 360 | |
| 361 | sprite->release(); |
| 362 | } |
| 363 | |
| 364 | std::string SpriteColorOpacity::title() const |
| 365 | { |
nothing calls this directly
no test coverage detected