// // cocos2d::CCSpriteBatchNode::initWithTexture from 0x18008e650 to 0x18008e7a2 (338 bytes) // // 8 xrefs: // > cocos2d::CCLabelBMFont::initWithString @ 0x180048bb2 // > cocos2d::CCSpriteBatchNode::create @ 0x18008e2d8 // > cocos2d::CCSpriteBatchNode::createWithTexture @ 0x18008e375 // > cocos2d::CCSpriteBatchNode::init @ 0x18008e5fb // > cocos2d::CCSpriteBatchNode::initWithFile @ 0x18008e643 // > cocos2d::CCTMXLayer::initWithTilesetInfo @ 0x1800ac1eb // > @ 0x1801438a8 // > @ 0x1801b6024 // // 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=3 char __fastcall cocos2d::CCSpriteBatchNode::initWithTexture( cocos2d::CCSpriteBatchNode *this, struct cocos2d::CCTexture2D *a2, unsigned int a3) { cocos2d::CCTextureAtlas *v6; // rax cocos2d::CCArray *v7; // rbx cocos2d::CCTextureAtlas *v8; // rax unsigned int v9; // esi cocos2d::CCCamera *v10; // rax bool isDirty; // al GLenum v12; // ecx cocos2d::CCArray *v13; // rax cocos2d::CCArray *v14; // rax cocos2d::CCArray *v15; // rax cocos2d::CCSpriteBatchNode_vtbl *v16; // rbx cocos2d::CCShaderCache *v17; // rax struct cocos2d::CCGLProgram *v18; // rax this->m_blendFunc.src = 1; this->m_blendFunc.dst = 771; v6 = (cocos2d::CCTextureAtlas *)operator new(0x70u); v7 = nullptr; if ( v6 ) v8 = (cocos2d::CCTextureAtlas *)cocos2d::CCTextureAtlas::CCTextureAtlas(v6); else v8 = nullptr; this->m_pobTextureAtlas = v8; v9 = 29; if ( a3 ) v9 = a3; cocos2d::CCTextureAtlas::initWithTexture(v8, a2, v9); v10 = (cocos2d::CCCamera *)((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pobTextureAtlas->getTexture)(this->m_pobTextureAtlas); isDirty = cocos2d::CCCamera::isDirty(v10); v12 = 770; if ( isDirty ) v12 = 1; this->m_blendFunc.src = v12; this->m_blendFunc.dst = 771; v13 = (cocos2d::CCArray *)operator new(0x40u); if ( v13 ) v14 = cocos2d::CCArray::CCArray(v13); else v14 = nullptr; this->m_pChildren = v14; cocos2d::CCArray::initWithCapacity(v14, v9); v15 = (cocos2d::CCArray *)operator new(0x40u); if ( v15 ) v7 = cocos2d::CCArray::CCArray(v15); this->m_pobDescendants = v7; cocos2d::CCArray::initWithCapacity(v7, v9); *(_WORD *)&this->m_bManualSortChildren = 0; v16 = this->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v17 = cocos2d::CCShaderCache::sharedShaderCache(); v18 = cocos2d::CCShaderCache::programForKey(v17, "ShaderPositionTextureColor"); ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, struct cocos2d::CCGLProgram *))v16->setShaderProgram)(this, v18); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source