//
// cocos2d::CCRenderTexture::create from 0xaf9ae4 to 0xaf9b70 (140 bytes)
//
// 2 xrefs:
// > ShaderLayer::setupShader @ 0x9f7330
// > ??> @ 0xa81f8
//
// 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; // w2
cocos2d::CCRenderTexture *v5; // x19
cocos2d::CCTexture2DPixelFormat v7; // [xsp+38h] [xbp+38h]
v7 = v2;
v5 = (cocos2d::CCRenderTexture *)operator new(0x1A8u);
cocos2d::CCRenderTexture::CCRenderTexture(v5);
if ( cocos2d::CCRenderTexture::initWithWidthAndHeight(v5, a1, a2, v7) )
{
cocos2d::CCObject::autorelease(v5);
return v5;
}
else
{
v5->~CCRenderTexture_0(v5);
return nullptr;
}
}