//
// cocos2d::CCRenderTexture::create from 0x18005faf0 to 0x18005fb8b (155 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b33fc
//
// 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
//
// Hidden C++ exception states: #wind=1
cocos2d::CCRenderTexture *__fastcall cocos2d::CCRenderTexture::create(
int a1,
int a2,
enum cocos2d::CCTexture2DPixelFormat a3,
unsigned int a4)
{
cocos2d::CCRenderTexture *v8; // rax
cocos2d::CCRenderTexture *v9; // rbx
v8 = (cocos2d::CCRenderTexture *)operator new(0x1A8u);
if ( v8 )
v9 = cocos2d::CCRenderTexture::CCRenderTexture(v8);
else
v9 = nullptr;
if ( v9 )
{
if ( cocos2d::CCRenderTexture::initWithWidthAndHeight(v9, a1, a2, a3, a4) )
{
cocos2d::CCObject::autorelease(v9);
return v9;
}
((void (__fastcall *)(cocos2d::CCRenderTexture *, __int64))v9->~CCRenderTexture)(v9, 1);
}
return nullptr;
}