//
// cocos2d::ccDrawPoly from 0x1800117b0 to 0x18001185f (175 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ae2d8
//
// 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::ccDrawPoly(cocos2d *this, const struct cocos2d::CCPoint *a2, char a3)
{
GLsizei v4; // esi
unsigned int v5; // edx
GLenum v6; // ecx
v4 = (int)a2;
cocos2d::ccDrawInit(this);
cocos2d::CCGLProgram::use((cocos2d::CCGLProgram *)qword_1801A8338);
cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)qword_1801A8338);
cocos2d::CCGLProgram::setUniformLocationWith4fv(
(cocos2d::CCGLProgram *)qword_1801A8338,
dword_1801A2B58,
&flt_1801A2B60,
1u);
cocos2d::ccGLEnableVertexAttribs((cocos2d *)1, v5);
_glewVertexAttribPointer(0, 2, 5126);
v6 = 2;
if ( !a3 )
v6 = 3;
glDrawArrays(v6, 0, v4);
++g_uNumberOfDraws;
}