// // cocos2d::CCSpriteBatchNode::initWithTexture from 0x1001d6fe8 to 0x1001d70e8 (256 bytes) // // 4 xrefs: // > cocos2d::CCSpriteBatchNode::createWithTexture @ 0x1001d6fb4 // > cocos2d::CCSpriteBatchNode::initWithFile @ 0x1001d71c0 // > cocos2d::CCSpriteBatchNode::init @ 0x1001d720c // > cocos2d::CCLabelBMFont::initWithString @ 0x1002fb28c // // 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 // bool __fastcall cocos2d::CCSpriteBatchNode::initWithTexture( cocos2d::CCSpriteBatchNode *a1, cocos2d::CCTexture2D *a2, unsigned int a3) { __int64 v3; // x20 cocos2d::CCTextureAtlas *v6; // x21 cocos2d::CCTexture2D *v7; // x0 GLenum v8; // w8 cocos2d::CCArray *v9; // x21 cocos2d::CCArray *v10; // x21 cocos2d::CCShaderCache *v11; // x0 cocos2d::CCGLProgram *v12; // x0 LODWORD(v3) = a3; a1->m_blendFunc = (cocos2d::ccBlendFunc)0x30300000001LL; v6 = (cocos2d::CCTextureAtlas *)operator new(0x70u); cocos2d::CCTextureAtlas::CCTextureAtlas(); a1->m_pobTextureAtlas = v6; if ( (_DWORD)v3 ) v3 = (unsigned int)v3; else v3 = 29; cocos2d::CCTextureAtlas::initWithTexture(v6, a2, v3); v7 = (cocos2d::CCTexture2D *)((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))a1->m_pobTextureAtlas->getTexture)(a1->m_pobTextureAtlas); if ( cocos2d::CCTexture2D::hasPremultipliedAlpha(v7) ) v8 = 1; else v8 = 770; a1->m_blendFunc.src = v8; a1->m_blendFunc.dst = 771; v9 = (cocos2d::CCArray *)operator new(0x40u); sub_10024A120(); a1->m_pChildren = v9; sub_10024A124(v9, v3); v10 = (cocos2d::CCArray *)operator new(0x40u); sub_10024A120(); a1->m_pobDescendants = v10; sub_10024A124(v10, v3); *(_WORD *)&a1->m_bManualSortChildren = 0; v11 = cocos2d::CCShaderCache::sharedShaderCache(); v12 = cocos2d::CCShaderCache::programForKey(v11, "ShaderPositionTextureColor"); ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCGLProgram *))a1->setShaderProgram)(a1, v12); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source