//
// cocos2d::CCEGLViewProtocol::getScissorRect from 0x1002e6d08 to 0x1002e6d98 (144 bytes)
//
// 2 xrefs:
// > ??> @ 0x1007918a8
// > ??> @ 0x1007e5680
//
// 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
//
cocos2d::CCRect __fastcall cocos2d::CCEGLViewProtocol::getScissorRect(cocos2d::CCEGLViewProtocol *a1)
{
float *v1; // x8
float *v3; // x20
GLfloat params[4]; // [xsp+8h] [xbp-28h] BYREF
cocos2d::CCRect result; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4
v3 = v1;
glGetFloatv(0xC10u, params);
sub_100022990(
v3,
(float)(params[0] - a1->m_obViewPortRect.origin.x) / a1->m_fScaleX,
(float)(params[1] - a1->m_obViewPortRect.origin.y) / a1->m_fScaleY,
params[2] / a1->m_fScaleX,
params[3] / a1->m_fScaleY);
return result;
}