//
// cocos2d::CCParticleSystemQuad::draw from 0x1006034e0 to 0x1006035a1 (193 bytes)
//
// 12 xrefs:
// > ??> @ 0x10093d6a0
// > ??> @ 0x10093dd60
// > ??> @ 0x10093e420
// > ??> @ 0x10093eae0
// > ??> @ 0x10093f1a0
// > ??> @ 0x10093f860
// > ??> @ 0x10093ff20
// > ??> @ 0x1009405e0
// > ??> @ 0x100940ca0
// > ??> @ 0x100941360
// > ??> @ 0x100941a20
// > ??> @ 0x10097e540
//
// 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 __fastcall cocos2d::CCParticleSystemQuad::draw(cocos2d::CCParticleSystemQuad *a1)
{
cocos2d::CCGLProgram *v2; // rax
cocos2d::CCGLProgram *v3; // rax
unsigned int v4; // eax
if ( a1->m_pTexture )
{
if ( a1->m_uParticleCount )
{
cocos2d::ccGLEnable(a1->m_eGLServerState);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->getShaderProgram)(a1);
v2 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->getShaderProgram)(a1);
cocos2d::CCGLProgram::use(v2);
v3 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->getShaderProgram)(a1);
cocos2d::CCGLProgram::setUniformsForBuiltins(v3);
v4 = ((__int64 (__fastcall *)(cocos2d::CCTexture2D *))a1->m_pTexture->getName)(a1->m_pTexture);
cocos2d::ccGLBindTexture2D(v4);
cocos2d::ccGLBlendFunc(a1->m_tBlendFunc.src, a1->m_tBlendFunc.dst);
cocos2d::ccGLBindVAO(a1->m_pBuffersVBO[0]);
glDrawElements(4u, 6 * a1->cocos2d::CCParticleSystem::m_uParticleIdx, 0x1403u, nullptr);
++dword_1009A4FB0;
}
}
}