// // cocos2d::CCParticleSystemQuad::setupVBOandVAO from 0x1006027d0 to 0x100602940 (368 bytes) // // 4 xrefs: // > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x10060213a // > cocos2d::CCParticleSystemQuad::setTotalParticles @ 0x100603a66 // > cocos2d::CCParticleSystemQuad::listenBackToForeground @ 0x100603aa5 // > cocos2d::CCParticleSystemQuad::setBatchNode @ 0x100603c4f // // 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]); glDeleteVertexArraysAPPLE(1, a1->m_pBuffersVBO); cocos2d::ccGLBindVAO(0); glGenVertexArraysAPPLE(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); }
GD Web Decomp Icon

GD Web Decomp

Raw Source