// // cocos2d::CCSpriteBatchNode::draw from 0x1001d7bac to 0x1001d7c84 (216 bytes) // // 3 xrefs: // > @ 0x10076cd08 // > @ 0x1007bf720 // > @ 0x1007e9dc0 // // 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 *v2; // x0 cocos2d::CCGLProgram *v3; // x0 cocos2d::CCArray *m_pChildren; // x8 cocos2d::ccArray *data; // x9 __int64 num; // x8 cocos2d::CCObject **arr; // x20 unsigned __int64 v8; // x21 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); v2 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->getShaderProgram)(a1); cocos2d::CCGLProgram::use(v2); v3 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->getShaderProgram)(a1); cocos2d::CCGLProgram::setUniformsForBuiltins(v3); m_pChildren = a1->m_pChildren; if ( m_pChildren ) { data = m_pChildren->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; v8 = (unsigned __int64)&arr[num - 1]; do { if ( !*arr ) break; ((void (__fastcall *)(cocos2d::CCObject *))(*arr)->__vftable[9].canEncode)(*arr); ++arr; } while ( (unsigned __int64)arr <= 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