// // cocos2d::CCDirector::convertToGL from 0x1800be160 to 0x1800be29a (314 bytes) // // 8 xrefs: // > cocos2d::CCTouch::getDelta @ 0x1800b2726 // > cocos2d::CCTouch::getDelta @ 0x1800b273c // > cocos2d::CCTouch::getLocation @ 0x1800b278f // > cocos2d::CCTouch::getPreviousLocation @ 0x1800b27ef // > cocos2d::CCTouch::getStartLocation @ 0x1800b284f // > @ 0x1801438a8 // > @ 0x1801b9168 // > @ 0x1801b9174 // // 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 // struct cocos2d::CCPoint *__fastcall cocos2d::CCDirector::convertToGL( cocos2d::CCDirector *this, struct cocos2d::CCPoint *a2, float *a3) { float v6; // xmm6_4 _DWORD *v7; // rax float v8; // xmm0_4 int v9; // r9d float v11[2]; // [rsp+20h] [rbp-168h] BYREF float v12[4]; // [rsp+28h] [rbp-160h] BYREF float v13[6]; // [rsp+38h] [rbp-150h] BYREF __int128 v14[3]; // [rsp+50h] [rbp-138h] BYREF float v15; // [rsp+88h] [rbp-100h] float v16; // [rsp+8Ch] [rbp-FCh] float v17[16]; // [rsp+90h] [rbp-F8h] BYREF float v18[16]; // [rsp+D0h] [rbp-B8h] BYREF _OWORD v19[4]; // [rsp+110h] [rbp-78h] BYREF kmGLGetMatrix(5889, v18); kmGLGetMatrix(5888, v17); kmMat4Multiply((float *)v14, v18, v17); kmMat4Inverse(v19, v14); v6 = v15 / v16; v7 = (_DWORD *)((__int64 (__fastcall *)(cocos2d::CCEGLView *))this->m_pobOpenGLView->getDesignResolutionSize)(this->m_pobOpenGLView); cocos2d::cc_timeval::operator=(v11, v7); v8 = *a3 + *a3; v12[2] = v6; v12[0] = (float)(v8 / v11[0]) - 1.0; v12[1] = 1.0 - (float)((float)(a3[1] + a3[1]) / v11[1]); kmVec3TransformCoord(v13, (int)v12, (__int64)v19, v9); kmVec2Fill((float *)a2, v13[0], v13[1]); return a2; }