// // cocos2d::CCSprite::draw from 0x18008eb40 to 0x18008ec80 (320 bytes) // // 8 xrefs: // > cocos2d::CCTextFieldTTF::draw @ 0x1800b9273 // > cocos2d::CCTextFieldTTF::draw @ 0x1800b92b5 // > @ 0x1800f1c50 // > @ 0x1800f2138 // > @ 0x1800f2ce8 // > @ 0x18010a128 // > @ 0x18014cf68 // > @ 0x1801bfe44 // // 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:22:07 +0000 // void __fastcall cocos2d::CCSprite::draw(GLenum *this, float a2) { cocos2d::CCGLProgram *v3; // rax unsigned int v4; // edx cocos2d::CCGLProgram *v5; // rax unsigned int v6; // eax char *v7; // rbx __int64 v8; // r9 if ( !*((_BYTE *)this + 559) ) { if ( *((_BYTE *)this + 329) ) { cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)*(this + 62), a2); (*(void (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this); v3 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this); cocos2d::CCGLProgram::use(v3, v4); v5 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this); cocos2d::CCGLProgram::setUniformsForBuiltins(v5); cocos2d::ccGLBlendFunc(*(this + 101), *(this + 102)); v6 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 52) + 96LL))(*((_QWORD *)this + 52)); cocos2d::ccGLBindTexture2D((cocos2d *)v6); cocos2d::ccGLEnableVertexAttribs((cocos2d *)7); v7 = (char *)(this + 115); _glewVertexAttribPointer(0, 3, 5126, 0, 24, v7); _glewVertexAttribPointer(2, 2, 5126, 0, 24, v7 + 16); LOBYTE(v8) = 1; _glewVertexAttribPointer(1, 4, 5121, v8, 24, v7 + 12); glDrawArrays(5u, 0, 4); ++g_uNumberOfDraws; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source