//
// cocos2d::CCTiledGrid3D::blit from 0x1004e4980 to 0x1004e4a1a (154 bytes)
//
// 1 xrefs:
// > ??> @ 0x100955e00
//
// 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::CCTiledGrid3D::blit(cocos2d::CCTiledGrid3D *a1)
{
int v1; // r14d
v1 = (int)(float)(a1->m_sGridSize.width * a1->m_sGridSize.height);
cocos2d::CCGLProgram::use(a1->m_pShaderProgram);
cocos2d::CCGLProgram::setUniformsForBuiltins(a1->m_pShaderProgram);
cocos2d::ccGLEnableVertexAttribs(5u);
glVertexAttribPointer(0, 3, 0x1406u, 0, 0, *(const GLvoid **)&a1[1].m_uID);
glVertexAttribPointer(2u, 2, 0x1406u, 0, 0, a1[1].__vftable);
glDrawElements(4u, 6 * v1, 0x1403u, *(const GLvoid **)&a1[1].m_uAutoReleaseCount);
++dword_1009A4FB0;
}