//
// cocos2d::CCRenderTexture::clear from 0x18005f850 to 0x18005f8d4 (132 bytes)
//
// 3 xrefs:
// > cocos2d::CCTransitionProgress::onEnter @ 0x180057668
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b33c0
//
// 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::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->m_nOldFBO);
cocos2d::CCDirector::setViewport(v6);
kmGLMatrixMode(5889);
kmGLPopMatrix();
kmGLMatrixMode(5888);
kmGLPopMatrix();
}