// // cocos2d::CCSpriteBatchNode::draw from 0x5e7a22 to 0x5e7aac (138 bytes) // // 0 xrefs: // // 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::CCSpriteBatchNode::draw(cocos2d::CCSpriteBatchNode *a1) { cocos2d::CCGLProgram *v2; // r0 cocos2d::CCGLProgram *v3; // r0 cocos2d::CCArray *m_pChildren; // r3 cocos2d::ccArray *data; // r2 cocos2d::CCObject **arr; // r6 cocos2d::CCObject **v7; // r5 int v8; // r0 int v9; // t1 if ( a1->m_pobTextureAtlas->getTotalQuads(a1->m_pobTextureAtlas) ) { cocos2d::ccGLEnable(a1->m_eGLServerState); a1->getShaderProgram(a1); v2 = a1->getShaderProgram(a1); cocos2d::CCGLProgram::use(v2); v3 = a1->getShaderProgram(a1); cocos2d::CCGLProgram::setUniformsForBuiltins(v3); m_pChildren = a1->m_pChildren; if ( m_pChildren ) { data = m_pChildren->data; if ( data->num ) { arr = data->arr; v7 = &arr[data->num] + 0x3FFFFFFF; while ( arr <= v7 ) { v9 = (int)*arr++; v8 = v9; if ( !v9 ) break; (*(void (__fastcall **)(int))(*(_DWORD *)v8 + 388))(v8); } } } 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