//
// cocos2d::CCRenderTexture::create from 0x5d8450 to 0x5d848c (60 bytes)
//
// 1 xrefs:
// > ShaderLayer::setupShader @ 0x54ec98
//
// 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 *cocos2d::CCRenderTexture::create(int a1, int a2)
{
cocos2d::CCTexture2DPixelFormat v2; // r2
cocos2d::CCTexture2DPixelFormat v4; // r5
cocos2d::CCRenderTexture *v6; // r4
v4 = v2;
v6 = (cocos2d::CCRenderTexture *)operator new(0x158u);
cocos2d::CCRenderTexture::CCRenderTexture(v6);
if ( cocos2d::CCRenderTexture::initWithWidthAndHeight(v6, a1, a2, v4) )
{
cocos2d::CCObject::autorelease(v6);
return v6;
}
else
{
v6->~CCRenderTexture_0(v6);
return nullptr;
}
}