// // cocos2d::CCSpriteBatchNode::draw from 0x18008e3a0 to 0x18008e477 (215 bytes) // // 7 xrefs: // > @ 0x1800ec550 // > @ 0x180103f50 // > @ 0x180105cb8 // > @ 0x18013d90c // > @ 0x18013d940 // > @ 0x1801438a8 // > @ 0x1801b5fac // // 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 *this, float a2) { cocos2d::CCGLProgram *v3; // rax unsigned int v4; // edx cocos2d::CCGLProgram *v5; // rax cocos2d::CCArray *m_pChildren; // rbx cocos2d::ccArray *data; // rbx __int64 num; // rax cocos2d::CCObject **arr; // rbx cocos2d::CCObject **i; // rsi if ( ((unsigned int (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pobTextureAtlas->getTotalQuads)(this->m_pobTextureAtlas) ) { cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)(unsigned int)this->m_eGLServerState, a2); ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *))this->getShaderProgram)(this); v3 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))this->getShaderProgram)(this); cocos2d::CCGLProgram::use(v3, v4); v5 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))this->getShaderProgram)(this); cocos2d::CCGLProgram::setUniformsForBuiltins(v5); m_pChildren = this->m_pChildren; if ( m_pChildren ) { data = m_pChildren->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; for ( i = &arr[num - 1]; arr <= i; ++arr ) { if ( !*arr ) break; ((void (__fastcall *)(cocos2d::CCObject *))(*arr)->__vftable[10].canEncode)(*arr); } } } cocos2d::ccGLBlendFunc(this->m_blendFunc.src, this->m_blendFunc.dst); cocos2d::CCTextureAtlas::drawQuads(this->m_pobTextureAtlas); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source