//
// cocos2d::CCRenderTexture::create from 0x1005f5320 to 0x1005f53cf (175 bytes)
//
// 0 xrefs:
//
// 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,
unsigned int a4)
{
_OWORD *v6; // rbx
v6 = operator new(0x1A8u);
cocos2d::CCNode::CCNode((__int64)v6);
*(_QWORD *)v6 = off_10097BB18;
v6[20] = 0;
*((_DWORD *)v6 + 84) = 0;
*(_OWORD *)((char *)v6 + 344) = 0;
*(_OWORD *)((char *)v6 + 360) = 0;
*(_OWORD *)((char *)v6 + 376) = 0;
*(_OWORD *)((char *)v6 + 385) = 0;
*(_OWORD *)((char *)v6 + 404) = 0;
if ( cocos2d::CCRenderTexture::initWithWidthAndHeight((cocos2d::CCRenderTexture *)v6, a1, a2, a3, a4) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
}
else
{
(*(void (__fastcall **)(_OWORD *))(*(_QWORD *)v6 + 16LL))(v6);
return nullptr;
}
return (cocos2d::CCRenderTexture *)v6;
}