// // cocos2d::CCParticleSystemQuad::draw from 0x7e6068 to 0x7e6160 (248 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:00:53 +0000 // int __fastcall cocos2d::CCParticleSystemQuad::draw(int this) { int v1; // r4 cocos2d::CCGLProgram *v2; // r0 cocos2d::CCGLProgram *v3; // r0 __int64 v4; // r0 unsigned int v5; // r2 unsigned int v6; // r1 v1 = this; if ( *(_DWORD *)(this + 584) && *(_DWORD *)(this + 376) ) { if ( *(_BYTE *)(this + 742) ) { cocos2d::ccGLEnable(*(_DWORD *)(this + 212)); (*(void (__fastcall **)(int))(*(_DWORD *)v1 + 328))(v1); v2 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(int))(*(_DWORD *)v1 + 328))(v1); cocos2d::CCGLProgram::use(v2); v3 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(int))(*(_DWORD *)v1 + 328))(v1); cocos2d::CCGLProgram::setUniformsForBuiltins(v3); v4 = ((__int64 (__fastcall *)(_DWORD))*(_DWORD *)(**(_DWORD **)(v1 + 584) + 52))(*(_DWORD *)(v1 + 584)); cocos2d::ccGLBindTexture2D((cocos2d *)v4, HIDWORD(v4)); cocos2d::ccGLBlendFunc(*(cocos2d **)(v1 + 588), *(_DWORD *)(v1 + 592), v5); cocos2d::ccGLEnableVertexAttribs((cocos2d *)&byte_7, v6); glBindBuffer(); glVertexAttribPointer(); glVertexAttribPointer(); glVertexAttribPointer(); glBindBuffer(); glDrawElements(4u, 6 * *(_DWORD *)(v1 + 352), 0x1403u, nullptr); glBindBuffer(); this = glBindBuffer(); ++g_uNumberOfDraws; } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source