//
// cocos2d::CCRenderTexture::CCRenderTexture from 0x5d8018 to 0x5d80c8 (176 bytes)
//
// 3 xrefs:
// > cocos2d::CCRenderTexture::create @ 0x5d83d2
// > cocos2d::CCRenderTexture::create @ 0x5d8414
// > cocos2d::CCRenderTexture::create @ 0x5d8462
//
// 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
//
// Alternative name is '_ZN7cocos2d15CCRenderTextureC1Ev'
cocos2d::CCRenderTexture *__fastcall cocos2d::CCRenderTexture::CCRenderTexture(cocos2d::CCRenderTexture *this)
{
cocos2d::CCNotificationCenter *v2; // r0
cocos2d::CCNotificationCenter *v3; // r0
cocos2d::CCNode::CCNode(this);
this->m_pSprite = nullptr;
this->m_uFBO = 0;
this->m_uDepthRenderBufffer = 0;
this->__vftable = (cocos2d::CCRenderTexture_vtbl *)&off_AAA018;
this->m_nOldFBO = 0;
this->m_sClearColor.r = 0.0;
this->m_sClearColor.g = 0.0;
this->m_sClearColor.b = 0.0;
this->m_sClearColor.a = 0.0;
this->m_fClearDepth = 0.0;
this->m_fInternalScaleX = 0.0;
this->m_fInternalScaleY = 0.0;
this->m_pTexture = nullptr;
this->m_pTextureCopy = nullptr;
this->m_pUITextureImage = nullptr;
this->m_ePixelFormat = 0;
this->m_uClearFlags = 0;
this->m_nClearStencil = 0;
this->m_bAutoDraw = 0;
this->m_nWidth = 0;
this->m_nHeight = 0;
v2 = cocos2d::CCNotificationCenter::sharedNotificationCenter();
cocos2d::CCNotificationCenter::addObserver(
v2,
this,
(cocos2d::SEL_CallFuncO)(unsigned int)cocos2d::CCRenderTexture::listenToBackground,
"event_come_to_background",
nullptr);
v3 = cocos2d::CCNotificationCenter::sharedNotificationCenter();
cocos2d::CCNotificationCenter::addObserver(
v3,
this,
(cocos2d::SEL_CallFuncO)(unsigned int)cocos2d::CCRenderTexture::listenToForeground,
"event_come_to_foreground",
nullptr);
return this;
}