//
// cocos2d::CCEGLViewProtocol::getScissorRect from 0x5e0754 to 0x5e07d0 (124 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
//
cocos2d::CCRect *cocos2d::CCEGLViewProtocol::getScissorRect(
cocos2d::CCRect *__return_ptr retstr,
cocos2d::CCEGLViewProtocol *a2)
{
GLfloat params[4]; // [sp+Ch] [bp-14h] BYREF
glGetFloatv(0xC10u, params);
cocos2d::CCRect::CCRect(
retstr,
(float)(params[0] - a2->m_obViewPortRect.origin.x) / a2->m_fScaleX,
(float)(params[1] - a2->m_obViewPortRect.origin.y) / a2->m_fScaleY,
params[2] / a2->m_fScaleX,
params[3] / a2->m_fScaleY);
return retstr;
}