// // cocos2d::CCSpriteBatchNode::initWithTexture from 0x1001763e0 to 0x1001764fe (286 bytes) // // 6 xrefs: // > cocos2d::CCSpriteBatchNode::createWithTexture @ 0x100176353 // > cocos2d::CCSpriteBatchNode::create @ 0x100176595 // > cocos2d::CCSpriteBatchNode::initWithFile @ 0x1001765fc // > cocos2d::CCSpriteBatchNode::init @ 0x10017668f // > cocos2d::CCTMXLayer::initWithTilesetInfo @ 0x100259b1e // > cocos2d::CCLabelBMFont::initWithString @ 0x1005d8863 // // 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) { cocos2d::CCTextureAtlas *v4; // r15 unsigned int v5; // r14d cocos2d::CCTexture2D *v6; // rax bool hasPremultipliedAlpha; // al GLenum v8; // ecx cocos2d::CCArray *v9; // r15 cocos2d::CCArray *v10; // r15 cocos2d::CCShaderCache *v11; // rax cocos2d::CCGLProgram *v12; // rax a1->m_blendFunc = (cocos2d::ccBlendFunc)0x30300000001LL; v4 = (cocos2d::CCTextureAtlas *)operator new(0x70u); cocos2d::CCTextureAtlas::CCTextureAtlas(v4); a1->m_pobTextureAtlas = v4; v5 = 29; if ( a3 ) v5 = a3; cocos2d::CCTextureAtlas::initWithTexture(v4, a2, v5); v6 = (cocos2d::CCTexture2D *)((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))a1->m_pobTextureAtlas->getTexture)(a1->m_pobTextureAtlas); hasPremultipliedAlpha = cocos2d::CCTexture2D::hasPremultipliedAlpha(v6); v8 = 770; if ( hasPremultipliedAlpha ) v8 = 1; a1->m_blendFunc.src = v8; a1->m_blendFunc.dst = 771; v9 = (cocos2d::CCArray *)operator new(0x40u); sub_10071F890(v9); a1->m_pChildren = v9; sub_10071F950(v9, v5); v10 = (cocos2d::CCArray *)operator new(0x40u); sub_10071F890(v10); a1->m_pobDescendants = v10; sub_10071F950(v10, v5); *(_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