//
// cocos2d::CCParticleBatchNode::initWithTexture from 0xb02008 to 0xb020b0 (168 bytes)
//
// 3 xrefs:
// > cocos2d::CCParticleBatchNode::createWithTexture @ 0xb020e4
// > cocos2d::CCParticleBatchNode::initWithFile @ 0xb02164
// > ??> @ 0x51108
//
// 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 cocos2d::CCParticleBatchNode::initWithTexture(
cocos2d::CCParticleBatchNode *a1,
cocos2d::CCTexture2D *a2,
unsigned int a3)
{
cocos2d::CCTextureAtlas *v5; // x20
cocos2d::CCArray *v6; // x21
cocos2d::CCParticleBatchNode_vtbl *v7; // x0
void (__fastcall *setShaderProgram)(cocos2d::CCNode *__hidden, cocos2d::CCGLProgram *); // x21
cocos2d::CCShaderCache *v9; // x0
cocos2d::CCGLProgram *v10; // x0
v5 = (cocos2d::CCTextureAtlas *)operator new(0x70u);
cocos2d::CCTextureAtlas::CCTextureAtlas(v5);
a1->m_pTextureAtlas = v5;
cocos2d::CCTextureAtlas::initWithTexture(v5, a2, a3);
v6 = (cocos2d::CCArray *)operator new(0x40u);
cocos2d::CCArray::CCArray(v6);
a1->m_pChildren = v6;
cocos2d::CCArray::initWithCapacity(v6, (cocos2d::_ccArray **)a3);
a1->m_tBlendFunc.src = 1;
v7 = a1->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_tBlendFunc.dst = 771;
setShaderProgram = v7->setShaderProgram;
v9 = cocos2d::CCShaderCache::sharedShaderCache();
v10 = cocos2d::CCShaderCache::programForKey(v9, "ShaderPositionTextureColor");
setShaderProgram(a1, v10);
return 1;
}