// // cocos2d::CCGridBase::afterDraw from 0x180022af0 to 0x180022bb7 (199 bytes) // // 6 xrefs: // > cocos2d::CCNode::visit @ 0x18000599b // > cocos2d::CCRenderTexture::visit @ 0x180062a4f // > cocos2d::CCParticleBatchNode::visit @ 0x18006433f // > cocos2d::CCSpriteBatchNode::visit @ 0x18009284c // > @ 0x18014cf68 // > @ 0x1801b9040 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:21:28 +0000 // void __fastcall cocos2d::CCGridBase::afterDraw(cocos2d::CCGridBase *this, struct cocos2d::CCNode *a2) { struct cocos2d::CCDirector *v4; // rax _DWORD *v5; // rax cocos2d::CCCamera *v6; // rax unsigned int v7; // eax unsigned int v8; // edx int v9; // [rsp+30h] [rbp+8h] BYREF cocos2d::CCGrabber::afterRender(*((_QWORD *)this + 11)); v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::setProjection(v4, *((unsigned int *)this + 28)); if ( *(_BYTE *)((*(__int64 (__fastcall **)(struct cocos2d::CCNode *))(*(_QWORD *)a2 + 664LL))(a2) + 92) ) { v5 = (_DWORD *)(*(__int64 (__fastcall **)(struct cocos2d::CCNode *))(*(_QWORD *)a2 + 304LL))(a2); cocos2d::cc_timeval::operator=(&v9, v5); kmGLTranslatef(); v6 = (cocos2d::CCCamera *)(*(__int64 (__fastcall **)(struct cocos2d::CCNode *))(*(_QWORD *)a2 + 664LL))(a2); cocos2d::CCCamera::locate(v6); kmGLTranslatef(); } v7 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 9) + 96LL))(*((_QWORD *)this + 9)); cocos2d::ccGLBindTexture2D((cocos2d *)v7, v8); (*(void (__fastcall **)(cocos2d::CCGridBase *))(*(_QWORD *)this + 72LL))(this); }