//
// cocos2d::CCParticleSystemQuad::setupVBOandVAO from 0x10025349c to 0x1002535d0 (308 bytes)
//
// 3 xrefs:
// > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x100253314
// > cocos2d::CCParticleSystemQuad::setTotalParticles @ 0x100253fd0
// > cocos2d::CCParticleSystemQuad::setBatchNode @ 0x100254108
//
// 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::setupVBOandVAO(cocos2d::CCParticleSystemQuad *a1)
{
glDeleteBuffers(2, &a1->m_pBuffersVBO[1]);
glDeleteVertexArraysOES(1, a1->m_pBuffersVBO);
cocos2d::ccGLBindVAO(0);
glGenVertexArraysOES(1, a1->m_pBuffersVBO);
cocos2d::ccGLBindVAO(a1->m_pBuffersVBO[0]);
glGenBuffers(2, &a1->m_pBuffersVBO[1]);
glBindBuffer(0x8892u, a1->m_pBuffersVBO[1]);
glBufferData(0x8892u, 96LL * a1->m_uTotalParticles, a1->m_pQuads, 0x88E8u);
glEnableVertexAttribArray(0);
glVertexAttribPointer(0, 2, 0x1406u, 0, 24, nullptr);
glEnableVertexAttribArray(1u);
glVertexAttribPointer(1u, 4, 0x1401u, 1u, 24, (const GLvoid *)0xC);
glEnableVertexAttribArray(2u);
glVertexAttribPointer(2u, 2, 0x1406u, 0, 24, (const GLvoid *)0x10);
glBindBuffer(0x8893u, LODWORD(a1->m_tTextureRect.origin.x));
glBufferData(0x8893u, 12LL * a1->m_uTotalParticles, a1->m_pIndices, 0x88E4u);
cocos2d::ccGLBindVAO(0);
glBindBuffer(0x8893u, 0);
glBindBuffer(0x8892u, 0);
}