// // cocos2d::CCMotionStreak::draw from 0x7de9cc to 0x7dea88 (188 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:47 +0000 // void __fastcall cocos2d::CCMotionStreak::draw(cocos2d::CCMotionStreak *this) { cocos2d::CCGLProgram *v2; // r0 cocos2d::CCGLProgram *v3; // r0 unsigned int v4; // r1 unsigned int v5; // r2 __int64 v6; // r0 if ( *((_DWORD *)this + 79) > 1u ) { cocos2d::ccGLEnable(*((_DWORD *)this + 53)); (*(void (__fastcall **)(cocos2d::CCMotionStreak *))(*(_DWORD *)this + 328))(this); v2 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(cocos2d::CCMotionStreak *))(*(_DWORD *)this + 328))(this); cocos2d::CCGLProgram::use(v2); v3 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(cocos2d::CCMotionStreak *))(*(_DWORD *)this + 328))(this); cocos2d::CCGLProgram::setUniformsForBuiltins(v3); cocos2d::ccGLEnableVertexAttribs((cocos2d *)&byte_7, v4); cocos2d::ccGLBlendFunc(*((cocos2d **)this + 73), *((_DWORD *)this + 74), v5); v6 = ((__int64 (__fastcall *)(_DWORD))*(_DWORD *)(**((_DWORD **)this + 72) + 52))(*((_DWORD *)this + 72)); cocos2d::ccGLBindTexture2D((cocos2d *)v6, HIDWORD(v6)); glVertexAttribPointer(); glVertexAttribPointer(); glVertexAttribPointer(); glDrawArrays(5u, 0, 2 * *((_DWORD *)this + 79)); ++g_uNumberOfDraws; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source