| 495 | } |
| 496 | |
| 497 | void CABatchView::insertQuadFromView(CrossApp::CAView *view, unsigned int index) |
| 498 | { |
| 499 | CCAssert( view != NULL, "Argument must be non-NULL"); |
| 500 | |
| 501 | while(index >= m_pobImageAtlas->getCapacity() || m_pobImageAtlas->getCapacity() == m_pobImageAtlas->getTotalQuads()) |
| 502 | { |
| 503 | this->increaseAtlasCapacity(); |
| 504 | } |
| 505 | view->setBatch(this); |
| 506 | view->setAtlasIndex(index); |
| 507 | |
| 508 | ccV3F_C4B_T2F_Quad quad = view->getQuad(); |
| 509 | m_pobImageAtlas->insertQuad(&quad, index); |
| 510 | |
| 511 | view->setDirty(true); |
| 512 | view->updateTransform(); |
| 513 | } |
| 514 | |
| 515 | void CABatchView::updateQuadFromView(CrossApp::CAView *view, unsigned int index) |
| 516 | { |
nothing calls this directly
no test coverage detected