//
// cocos2d::CCRenderTexture::beginWithClear_2 from 0x1005f5ce0 to 0x1005f5db1 (209 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
//
void __fastcall cocos2d::CCRenderTexture::beginWithClear_2(
cocos2d::CCRenderTexture *a1,
float a2,
float a3,
float a4,
float a5,
float a6)
{
GLfloat v7; // [rsp+1Ch] [rbp-24h] BYREF
GLfloat params[6]; // [rsp+20h] [rbp-20h] BYREF
cocos2d::CCRenderTexture::begin(a1);
*(_OWORD *)params = 0;
v7 = 0.0;
glGetFloatv(0xC22u, params);
glClearColor(a2, a3, a4, a5);
glGetFloatv(0xB73u, &v7);
glClearDepth(a6);
glClear(0x4100u);
glClearColor(params[0], params[1], params[2], params[3]);
glClearDepth(v7);
}