//
// cocos2d::ccDrawPoly from 0x5c4248 to 0x5c42b2 (106 bytes)
//
// 0 xrefs:
//
// 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 cocos2d::ccDrawPoly(const cocos2d::CCPoint *a1, unsigned int a2, bool a3)
{
_BOOL4 v3; // r6
GLenum v5; // r0
v3 = a3;
cocos2d::ccDrawInit((cocos2d *)a1);
cocos2d::CCGLProgram::use((cocos2d::CCGLProgram *)dword_AC8A40);
cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)dword_AC8A40);
cocos2d::CCGLProgram::setUniformLocationWith4fv(
(cocos2d::CCGLProgram *)dword_AC8A40,
dword_ABAC20,
(float *)&dword_ABAC28,
1u);
cocos2d::ccGLEnableVertexAttribs((unsigned int)&dword_0 + 1);
glVertexAttribPointer();
if ( v3 )
v5 = 2;
else
v5 = 3;
glDrawArrays(v5, 0, a2);
++g_uNumberOfDraws;
}