//
// cocos2d::CCRenderTexture::beginWithClear_3 from 0x1005f5aa0 to 0x1005f5b3b (155 bytes)
//
// 3 xrefs:
// > PlayerObject::playDeathEffect @ 0x100213476
// > MapSelectLayer::checkTouchMonster @ 0x1002695b7
// > ShaderLayer::visit @ 0x1003d1cf6
//
// 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_3(
cocos2d::CCRenderTexture *a1,
float a2,
float a3,
float a4,
float a5)
{
GLfloat params[6]; // [rsp+10h] [rbp-20h] BYREF
cocos2d::CCRenderTexture::begin(a1);
*(_OWORD *)params = 0;
glGetFloatv(0xC22u, params);
glClearColor(a2, a3, a4, a5);
glClear(0x4000u);
glClearColor(params[0], params[1], params[2], params[3]);
}