// // CCSpriteWithHue::draw from 0x3f2860 to 0x3f297a (282 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 11:47:14 +0000 // void __fastcall CCSpriteWithHue::draw(CCSpriteWithHue *this) { GLint v2; // r5 cocos2d::CCGLProgram *v3; // r0 cocos2d::CCGLProgram *v4; // r0 unsigned int v5; // r2 __int64 v6; // r0 unsigned int v7; // r1 cocos2d::CCGLProgram *v8; // r0 int v9; // r0 int v10; // r6 cocos2d::CCGLProgram *v11; // r7 float Alpha; // r0 cocos2d::CCGLProgram *v13; // r0 v2 = *((unsigned __int8 *)this + 471); if ( !*((_BYTE *)this + 471) ) { if ( *((_BYTE *)this + 269) ) { cocos2d::ccGLEnable(*((_DWORD *)this + 53)); (*(void (__fastcall **)(CCSpriteWithHue *))(*(_DWORD *)this + 328))(this); v3 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(CCSpriteWithHue *))(*(_DWORD *)this + 328))(this); cocos2d::CCGLProgram::use(v3); v4 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(CCSpriteWithHue *))(*(_DWORD *)this + 328))(this); cocos2d::CCGLProgram::setUniformsForBuiltins(v4); cocos2d::ccGLBlendFunc(*((cocos2d **)this + 81), *((_DWORD *)this + 82), v5); v6 = ((__int64 (__fastcall *)(_DWORD))*(_DWORD *)(**((_DWORD **)this + 83) + 52))(*((_DWORD *)this + 83)); cocos2d::ccGLBindTexture2D((cocos2d *)v6, HIDWORD(v6)); cocos2d::ccGLEnableVertexAttribs((cocos2d *)&byte_7, v7); v8 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(CCSpriteWithHue *))(*(_DWORD *)this + 328))(this); cocos2d::CCGLProgram::setUniformLocationWithMatrix3fv(v8, *((_DWORD *)this + 140), (float *)this + 131, 1u); v9 = (*(int (__fastcall **)(CCSpriteWithHue *))(*(_DWORD *)this + 328))(this); v10 = *((_DWORD *)this + 141); v11 = (cocos2d::CCGLProgram *)v9; Alpha = CCSpriteWithHue::getAlpha(this); cocos2d::CCGLProgram::setUniformLocationWith1f(v11, v10, Alpha); v13 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(CCSpriteWithHue *))(*(_DWORD *)this + 328))(this); cocos2d::CCGLProgram::setUniformLocationWith3f( v13, *((_DWORD *)this + 142), *((float *)this + 128), *((float *)this + 129), *((float *)this + 130)); glVertexAttribPointer(); glVertexAttribPointer(); glVertexAttribPointer(); glDrawArrays(5u, v2, 4); ++g_uNumberOfDraws; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source