//
// cocos2d::CCRenderTexture::create_1 from 0x1005f5250 to 0x1005f52f3 (163 bytes)
//
// 1 xrefs:
// > ShaderLayer::setupShader @ 0x1003ca989
//
// 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_1(
int a1,
int a2,
cocos2d::CCTexture2DPixelFormat a3)
{
_OWORD *v4; // rbx
v4 = operator new(0x1A8u);
cocos2d::CCNode::CCNode((__int64)v4);
*(_QWORD *)v4 = off_10097BB18;
v4[20] = 0;
*((_DWORD *)v4 + 84) = 0;
*(_OWORD *)((char *)v4 + 344) = 0;
*(_OWORD *)((char *)v4 + 360) = 0;
*(_OWORD *)((char *)v4 + 376) = 0;
*(_OWORD *)((char *)v4 + 385) = 0;
*(_OWORD *)((char *)v4 + 404) = 0;
if ( cocos2d::CCRenderTexture::initWithWidthAndHeight((cocos2d::CCRenderTexture *)v4, a1, a2, a3, 0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
(*(void (__fastcall **)(_OWORD *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return (cocos2d::CCRenderTexture *)v4;
}