//
// cocos2d::CCRenderTexture::dCCRenderTexture from 0x1003c0198 to 0x1003c0214 (124 bytes)
//
// 2 xrefs:
// > j_cocos2d::CCRenderTexture::dCCRenderTexture @ 0x1003c0218
// > sub_1003C021C @ 0x1003c0224
//
// 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
//
cocos2d::CCObject *__fastcall cocos2d::CCRenderTexture::dCCRenderTexture(__int64 a1)
{
cocos2d::CCObject *v2; // x0
cocos2d::CCObject *v3; // x0
__int64 v4; // x0
*(_QWORD *)a1 = off_100811988;
v2 = *(cocos2d::CCObject **)(a1 + 320);
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *(cocos2d::CCObject **)(a1 + 352);
if ( v3 )
cocos2d::CCObject::release(v3);
glDeleteFramebuffers(1, (const GLuint *)(a1 + 328));
if ( *(_DWORD *)(a1 + 332) )
glDeleteRenderbuffers(1, (const GLuint *)(a1 + 332));
v4 = *(_QWORD *)(a1 + 360);
if ( v4 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);
*(_QWORD *)(a1 + 360) = 0;
}
return cocos2d::CCNode::dCCNode((cocos2d::CCNode *)a1);
}