//
// cocos2d::CCEGLViewProtocol::getScissorRect from 0x18006d820 to 0x18006d8ae (142 bytes)
//
// 4 xrefs:
// > ??> @ 0x180106940
// > ??> @ 0x180107038
// > ??> @ 0x18014cf68
// > ??> @ 0x1801be140
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:55 +0000
//
cocos2d::CCRect *__fastcall cocos2d::CCEGLViewProtocol::getScissorRect(float *a1, cocos2d::CCRect *a2)
{
GLfloat params[4]; // [rsp+30h] [rbp-28h] BYREF
glGetFloatv(0xC10u, params);
cocos2d::CCRect::CCRect(
a2,
(float)(params[0] - a1[8]) / a1[25],
(float)(params[1] - a1[9]) / a1[26],
params[2] / a1[25],
params[3] / a1[26]);
return a2;
}