// // cocos2d::CCSpriteBatchNode::draw from 0x1001776e0 to 0x1001777bc (220 bytes) // // 4 xrefs: // > @ 0x1008c2ef8 // > @ 0x1008eaba8 // > @ 0x10095deb0 // > @ 0x100974398 // // 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 __fastcall cocos2d::CCSpriteBatchNode::draw(cocos2d::CCSpriteBatchNode *a1) { cocos2d::CCGLProgram *v1; // rax cocos2d::CCGLProgram *v2; // rax cocos2d::CCArray *m_pChildren; // rax cocos2d::ccArray *data; // rax cocos2d::CCObject **arr; // r14 unsigned __int64 v6; // r15 if ( ((unsigned int (__fastcall *)(cocos2d::CCTextureAtlas *))a1->m_pobTextureAtlas->getTotalQuads)(a1->m_pobTextureAtlas) ) { cocos2d::ccGLEnable(a1->m_eGLServerState); ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->getShaderProgram)(a1); v1 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->getShaderProgram)(a1); cocos2d::CCGLProgram::use(v1); v2 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->getShaderProgram)(a1); cocos2d::CCGLProgram::setUniformsForBuiltins(v2); m_pChildren = a1->m_pChildren; if ( m_pChildren ) { data = m_pChildren->data; if ( data->num ) { arr = data->arr; v6 = (unsigned __int64)&arr[data->num - 1]; do { if ( !*arr ) break; ((void (__fastcall *)(cocos2d::CCObject *))(*arr)->__vftable[9].canEncode)(*arr); ++arr; } while ( (unsigned __int64)arr <= v6 ); } } cocos2d::ccGLBlendFunc(a1->m_blendFunc.src, a1->m_blendFunc.dst); cocos2d::CCTextureAtlas::drawQuads(a1->m_pobTextureAtlas); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source