//
// cocos2d::CCRenderTexture::clear from 0x180061a30 to 0x180061ab7 (135 bytes)
//
// 3 xrefs:
// > cocos2d::CCTransitionProgress::onEnter @ 0x18005956e
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd684
//
// 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:51 +0000
//
void __fastcall cocos2d::CCRenderTexture::clear(
cocos2d::CCRenderTexture *this,
GLclampf a2,
GLclampf a3,
GLclampf a4,
GLclampf alpha)
{
cocos2d::CCDirector *v6; // rbx
cocos2d::CCRenderTexture::beginWithClear(this, a2, a3, a4, alpha, 0.0, 0, 0x4000u);
v6 = cocos2d::CCDirector::sharedDirector();
_glewBindFramebuffer(36160, *((unsigned int *)this + 84));
cocos2d::CCDirector::setViewport(v6);
kmGLMatrixMode(5889);
kmGLPopMatrix();
kmGLMatrixMode(5888);
kmGLPopMatrix();
}