// // cocos2d::ccDrawQuadBezier from 0x5c4774 to 0x5c4878 (260 bytes) // // 0 xrefs: // // 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 cocos2d::ccDrawQuadBezier( const cocos2d::CCPoint *a1, const cocos2d::CCPoint *a2, const cocos2d::CCPoint *a3, unsigned int a4) { unsigned int v8; // r0 float *v9; // r0 float v10; // s13 int v11; // r3 float *v12; // r4 float x; // s12 GLsizei v14; // r6 float v15; // s15 float v16; // s9 float v17; // s15 float y; // r2 float *v19; // r3 cocos2d::ccDrawInit((cocos2d *)a1); if ( a4 + 1 > 0xFE00000 ) v8 = -1; else v8 = 8 * (a4 + 1); v9 = (float *)operator new[](v8); v10 = 0.0; v11 = 0; v12 = v9; while ( 1 ) { v9 += 2; x = a3->x; v14 = v11 + 1; if ( v11 == a4 ) break; ++v11; v15 = 1.0 - v10; v16 = v15 * v15; v17 = (float)(v15 + v15) * v10; *(v9 - 2) = (float)((float)(v17 * a2->x) + (float)(v16 * a1->x)) + (float)((float)(v10 * v10) * x); *(v9 - 1) = (float)((float)(v17 * a2->y) + (float)(v16 * a1->y)) + (float)((float)(v10 * v10) * a3->y); v10 = v10 + (float)(1.0 / (float)a4); } y = a3->y; v19 = &v12[2 * v11]; *v19 = x; v19[1] = y; cocos2d::CCGLProgram::use((cocos2d::CCGLProgram *)dword_AC8A40); cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)dword_AC8A40); cocos2d::CCGLProgram::setUniformLocationWith4fv( (cocos2d::CCGLProgram *)dword_AC8A40, dword_ABAC20, (float *)&dword_ABAC28, 1u); cocos2d::ccGLEnableVertexAttribs((unsigned int)&dword_0 + 1); glVertexAttribPointer(); glDrawArrays(3u, 0, v14); operator delete[](v12); ++g_uNumberOfDraws; }
GD Web Decomp Icon

GD Web Decomp

Raw Source