//
// cocos2d::CCRenderTexture::create from 0x1003c027c to 0x1003c0330 (180 bytes)
//
// 1 xrefs:
// > ShaderLayer::setupShader @ 0x10026de34
//
// 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::CCRenderTexture *__fastcall cocos2d::CCRenderTexture::create(
int a1,
int a2,
cocos2d::CCTexture2DPixelFormat a3)
{
char *v6; // x19
v6 = (char *)operator new(0x1A8u);
cocos2d::CCNode::CCNode((__int64)v6);
*(_QWORD *)v6 = off_100811988;
*((_QWORD *)v6 + 40) = 0;
*((_QWORD *)v6 + 41) = 0;
*((_DWORD *)v6 + 84) = 0;
*(_OWORD *)(v6 + 344) = 0u;
*(_OWORD *)(v6 + 360) = 0u;
*(_OWORD *)(v6 + 376) = 0u;
*(_OWORD *)(v6 + 385) = 0u;
*(_QWORD *)(v6 + 412) = 0;
*(_QWORD *)(v6 + 404) = 0;
if ( cocos2d::CCRenderTexture::initWithWidthAndHeight((cocos2d::CCRenderTexture *)v6, a1, a2, a3, 0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 16LL))(v6);
return nullptr;
}
return (cocos2d::CCRenderTexture *)v6;
}