//
// cocos2d::CCRenderTexture::beginWithClear_3 from 0x1006c87f0 to 0x1006c888b (155 bytes)
//
// 3 xrefs:
// > PlayerObject::playDeathEffect @ 0x1001f69a6
// > MapSelectLayer::checkTouchMonster @ 0x1002535c7
// > ShaderLayer::visit @ 0x1003bb226
//
// 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 12:35:35 +0000
//
__int64 __fastcall cocos2d::CCRenderTexture::beginWithClear_3(
__int64 a1,
GLfloat a2,
GLfloat a3,
GLfloat a4,
GLfloat 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]);
return __stack_chk_guard;
}