//
// cocos2d::ccDrawPoly from 0x180011960 to 0x180011a18 (184 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b838c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:22 +0000
//
void __fastcall cocos2d::ccDrawPoly(cocos2d *this, const struct cocos2d::CCPoint *a2, char a3)
{
GLsizei v4; // esi
unsigned int v6; // edx
GLenum v7; // ecx
v4 = (int)a2;
cocos2d::ccDrawInit(this);
cocos2d::CCGLProgram::use(qword_1801B2358);
cocos2d::CCGLProgram::setUniformsForBuiltins(qword_1801B2358);
cocos2d::CCGLProgram::setUniformLocationWith4fv(qword_1801B2358, dword_1801ACB58, &flt_1801ACB60, 1u);
cocos2d::ccGLEnableVertexAttribs((cocos2d *)1, v6);
_glewVertexAttribPointer(0, 2, 5126, 0, 0, this);
v7 = 2;
if ( !a3 )
v7 = 3;
glDrawArrays(v7, 0, v4);
++g_uNumberOfDraws;
}