//
// cocos2d::CCGridBase::afterDraw from 0xadc33c to 0xadc43c (256 bytes)
//
// 7 xrefs:
// > ShaderLayer::visit @ 0x9f7be4
// > cocos2d::extension::CCScrollView::visit @ 0xaa6478
// > cocos2d::CCNode::visit @ 0xaccec0
// > cocos2d::CCRenderTexture::visit @ 0xaf94c0
// > cocos2d::CCParticleBatchNode::visit @ 0xb01fac
// > cocos2d::CCSpriteBatchNode::visit @ 0xb171a8
// > ??> @ 0x88ff8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void cocos2d::CCGridBase::afterDraw(cocos2d::CCGridBase *a1, cocos2d::CCNode *a2)
{
cocos2d::CCDirector *v4; // x0
const cocos2d::CCPoint *v5; // x0
cocos2d::CCCamera *v6; // x0
unsigned int v7; // w0
cocos2d::CCPoint v8; // [xsp+30h] [xbp+30h] BYREF
cocos2d::CCGrabber::afterRender(a1->m_pGrabber, a1->m_pTexture);
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::setProjection(v4, a1->m_directorProjection);
if ( a2->getCamera(a2)->m_bDirty )
{
v5 = a2->getAnchorPointInPoints(a2);
cocos2d::CCPoint::CCPoint(&v8, v5);
kmGLTranslatef(v8.x, v8.y, 0.0);
v6 = a2->getCamera(a2);
cocos2d::CCCamera::locate(v6);
kmGLTranslatef(-v8.x, -v8.y, 0.0);
}
v7 = a1->m_pTexture->getName(a1->m_pTexture);
cocos2d::ccGLBindTexture2D(v7);
a1->blit(a1);
}