//
// cocos2d::CCRenderTexture::create from 0x180061cd0 to 0x180061d6b (155 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd6c0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:51 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCObject *__fastcall cocos2d::CCRenderTexture::create(
unsigned int a1,
unsigned int a2,
unsigned int a3,
int a4)
{
cocos2d::CCRenderTexture *v8; // rax
cocos2d::CCObject *v9; // rbx
v8 = (cocos2d::CCRenderTexture *)sub_1800E4AC0(0x1A8u);
if ( v8 )
v9 = cocos2d::CCRenderTexture::CCRenderTexture(v8);
else
v9 = nullptr;
if ( v9 )
{
if ( (unsigned __int8)cocos2d::CCRenderTexture::initWithWidthAndHeight(v9, a1, a2, a3, a4) )
{
cocos2d::CCObject::autorelease(v9);
return v9;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1);
}
return nullptr;
}