// // cocos2d::ccDrawQuadBezier from 0xad888c to 0xad8a0c (384 bytes) // // 1 xrefs: // > @ 0x8d8d0 // // 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) { __int64 v8; // x0 char *v9; // x21 float x; // s20 float v11; // s19 float *v12; // x0 float v13; // s16 float y; // s18 float v15; // s17 float v16; // s7 float v17; // s2 float v18; // s0 float v19; // s4 float v20; // s1 float v21; // s0 float v22; // s1 cocos2d::CCGLProgram *v23; // x0 float *v24; // x1 if ( !byte_12451A0 ) sub_AD7B20(); v8 = operator new[](8LL * (a4 + 1)); v9 = (char *)v8; if ( a4 ) { x = a1->x; v11 = a2->x; v12 = (float *)(v8 + 4); v13 = a3->x; y = a1->y; v15 = a2->y; v16 = a3->y; v17 = 0.0; do { v18 = 1.0 - v17; v19 = v17 * v17; v20 = v18 + v18; v21 = v18 * v18; v22 = v20 * v17; v17 = v17 + (float)(1.0 / (float)a4); *(v12 - 1) = (float)((float)(v22 * v11) + (float)(v21 * x)) + (float)(v19 * v13); *v12 = (float)((float)(v22 * v15) + (float)(v21 * y)) + (float)(v19 * v16); v12 += 2; } while ( v12 != (float *)&v9[8 * a4 + 4] ); } else { v13 = a3->x; v16 = a3->y; } v23 = (cocos2d::CCGLProgram *)qword_1245198; v24 = (float *)&v9[8 * a4]; *v24 = v13; v24[1] = v16; cocos2d::CCGLProgram::use(v23); cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)qword_1245198); cocos2d::CCGLProgram::setUniformLocationWith4fv( (cocos2d::CCGLProgram *)qword_1245198, dword_1230CC8, (float *)&dword_1230CD0, 1u); cocos2d::ccGLEnableVertexAttribs((unsigned int)&dword_0 + 1); glVertexAttribPointer(); glDrawArrays(); operator delete[](v9); ++g_uNumberOfDraws; }
GD Web Decomp Icon

GD Web Decomp

Raw Source