//
// cocos2d::CCDrawNode::render from 0x180015570 to 0x18001566e (254 bytes)
//
// 3 xrefs:
// > cocos2d::CCDrawNode::draw @ 0x1800120e1
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ae4b8
//
// 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::CCDrawNode::render(cocos2d::CCDrawNode *this, unsigned int a2)
{
if ( this->m_bDirty )
{
_glewBindBuffer(34962, this->m_uVbo);
_glewBufferData(34962, 20LL * this->m_uBufferCapacity, this->m_pBuffer);
this->m_bDirty = 0;
}
cocos2d::ccGLEnableVertexAttribs((cocos2d *)3, a2);
_glewBindBuffer(34962, this->m_uVbo);
_glewVertexAttribPointer(0, 2, 5126);
_glewVertexAttribPointer(1, 4, 5121);
glDrawArrays(4u, 0, this->m_nBufferCount);
_glewBindBuffer(34962, 0);
++g_uNumberOfDraws;
}