//
// cocos2d::CCEGLViewProtocol::getScissorRect from 0x18006b630 to 0x18006b6be (142 bytes)
//
// 4 xrefs:
// > ??> @ 0x1801002f0
// > ??> @ 0x180100920
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b3dec
//
// 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::CCRect *__fastcall cocos2d::CCEGLViewProtocol::getScissorRect(
struct cocos2d::CCRect *__return_ptr retstr,
cocos2d::CCRect *a2)
{
GLfloat params[4]; // [rsp+30h] [rbp-28h] BYREF
glGetFloatv(0xC10u, params);
cocos2d::CCRect::CCRect(
a2,
(float)(params[0] - retstr[2].origin.x) / retstr[6].origin.y,
(float)(params[1] - retstr[2].origin.y) / retstr[6].size.width,
params[2] / retstr[6].origin.y,
params[3] / retstr[6].size.width);
return a2;
}