//
// cocos2d::CCParticleBatchNode::initWithTexture from 0x5dd1b8 to 0x5dd21c (100 bytes)
//
// 2 xrefs:
// > cocos2d::CCParticleBatchNode::createWithTexture @ 0x5dd23a
// > cocos2d::CCParticleBatchNode::initWithFile @ 0x5dd276
//
// 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 *v6; // r6
cocos2d::CCArray *v7; // r6
cocos2d::CCParticleBatchNode_vtbl *v8; // r3
void (__fastcall *setShaderProgram)(cocos2d::CCNode *__hidden, cocos2d::CCGLProgram *); // r6
cocos2d::CCShaderCache *v10; // r0
cocos2d::CCGLProgram *v11; // r0
v6 = (cocos2d::CCTextureAtlas *)operator new(0x58u);
cocos2d::CCTextureAtlas::CCTextureAtlas(v6);
a1->m_pTextureAtlas = v6;
cocos2d::CCTextureAtlas::initWithTexture(v6, a2, a3);
v7 = (cocos2d::CCArray *)operator new(0x38u);
cocos2d::CCArray::CCArray(v7);
a1->m_pChildren = v7;
cocos2d::CCArray::initWithCapacity(v7, (cocos2d::_ccArray **)a3);
a1->m_tBlendFunc.dst = 771;
v8 = a1->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_tBlendFunc.src = 1;
setShaderProgram = v8->setShaderProgram;
v10 = cocos2d::CCShaderCache::sharedShaderCache();
v11 = cocos2d::CCShaderCache::programForKey(v10, "ShaderPositionTextureColor");
setShaderProgram(a1, v11);
return 1;
}