| 456 | } |
| 457 | |
| 458 | void SpriteBatchNode::reserveCapacity(ssize_t newCapacity) |
| 459 | { |
| 460 | if (newCapacity <= _textureAtlas->getCapacity()) |
| 461 | return; |
| 462 | |
| 463 | if (!_textureAtlas->resizeCapacity(newCapacity)) |
| 464 | { |
| 465 | // serious problems |
| 466 | AXLOGW("WARNING: Not enough memory to resize the atlas"); |
| 467 | AXASSERT(false, "Not enough memory to resize the atlas"); |
| 468 | } |
| 469 | } |
| 470 | |
| 471 | ssize_t SpriteBatchNode::rebuildIndexInOrder(Sprite* parent, ssize_t index) |
| 472 | { |
no test coverage detected