//
// cocos2d::CCParticleSystemQuad::draw from 0xb0306c to 0xb031b8 (332 bytes)
//
// 13 xrefs:
// > ??> @ 0x36b28
// > ??> @ 0x1212098
// > ??> @ 0x1212748
// > ??> @ 0x1212df8
// > ??> @ 0x12134a8
// > ??> @ 0x1213b58
// > ??> @ 0x1214208
// > ??> @ 0x12148b8
// > ??> @ 0x1214f68
// > ??> @ 0x1215618
// > ??> @ 0x1215cc8
// > ??> @ 0x1216378
// > ??> @ 0x1217538
//
// 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
//
void cocos2d::CCParticleSystemQuad::draw(cocos2d::CCParticleSystemQuad *a1)
{
cocos2d::CCGLProgram *v2; // x0
cocos2d::CCGLProgram *v3; // x0
unsigned int v4; // w0
if ( a1->m_pTexture )
{
if ( a1->m_uParticleCount )
{
cocos2d::ccGLEnable(a1->m_eGLServerState);
a1->getShaderProgram(a1);
v2 = a1->getShaderProgram(a1);
cocos2d::CCGLProgram::use(v2);
v3 = a1->getShaderProgram(a1);
cocos2d::CCGLProgram::setUniformsForBuiltins(v3);
v4 = a1->m_pTexture->getName(a1->m_pTexture);
cocos2d::ccGLBindTexture2D(v4);
cocos2d::ccGLBlendFunc(a1->m_tBlendFunc.src, a1->m_tBlendFunc.dst);
cocos2d::ccGLEnableVertexAttribs((unsigned int)&byte_7);
glBindBuffer();
glVertexAttribPointer();
glVertexAttribPointer();
glVertexAttribPointer();
glBindBuffer();
glDrawElements();
glBindBuffer();
glBindBuffer();
++g_uNumberOfDraws;
}
}
}