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