//
// cocos2d::CCMotionStreak::draw from 0x10017750c to 0x100177618 (268 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007a0248
//
// 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::CCMotionStreak::draw(cocos2d::CCMotionStreak *a1)
{
cocos2d::CCGLProgram *v2; // x0
cocos2d::CCGLProgram *v3; // x0
unsigned int v4; // w0
if ( a1->m_uNuPoints >= 2 )
{
cocos2d::ccGLEnable(a1->m_eGLServerState);
((void (__fastcall *)(cocos2d::CCMotionStreak *))a1->getShaderProgram)(a1);
v2 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCMotionStreak *))a1->getShaderProgram)(a1);
cocos2d::CCGLProgram::use(v2);
v3 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCMotionStreak *))a1->getShaderProgram)(a1);
cocos2d::CCGLProgram::setUniformsForBuiltins(v3);
cocos2d::ccGLEnableVertexAttribs(7u);
cocos2d::ccGLBlendFunc(a1->m_tBlendFunc.src, a1->m_tBlendFunc.dst);
v4 = ((__int64 (__fastcall *)(cocos2d::CCTexture2D *))a1->m_pTexture->getName)(a1->m_pTexture);
cocos2d::ccGLBindTexture2D(v4);
glVertexAttribPointer(0, 2, 0x1406u, 0, 0, a1->m_pVertices);
glVertexAttribPointer(2u, 2, 0x1406u, 0, 0, a1->m_pTexCoords);
glVertexAttribPointer(1u, 4, 0x1401u, 1u, 0, a1->m_pColorPointer);
glDrawArrays(5u, 0, 2 * a1->m_uNuPoints);
++dword_100885D50;
}
}