//
// cocos2d::ccDrawPoly from 0x100208870 to 0x10020896a (250 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 __fastcall cocos2d::ccDrawPoly(const cocos2d::CCPoint *a1, unsigned int a2, bool a3)
{
cocos2d::CCShaderCache *v4; // rax
if ( !byte_10099F2F8 )
{
v4 = cocos2d::CCShaderCache::sharedShaderCache();
qword_10099F2F0 = (__int64)cocos2d::CCShaderCache::programForKey(v4, "ShaderPosition_uColor");
cocos2d::CCObject::retain((cocos2d::CCObject *)qword_10099F2F0);
dword_10099C690 = glGetUniformLocation(*(_DWORD *)(qword_10099F2F0 + 56), "u_color");
dword_10099C6B0 = glGetUniformLocation(*(_DWORD *)(qword_10099F2F0 + 56), "u_pointSize");
byte_10099F2F8 = 1;
}
cocos2d::CCGLProgram::use((cocos2d::CCGLProgram *)qword_10099F2F0);
cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)qword_10099F2F0);
cocos2d::CCGLProgram::setUniformLocationWith4fv(
(cocos2d::CCGLProgram *)qword_10099F2F0,
dword_10099C690,
(float *)&xmmword_10099C6A0,
1u);
cocos2d::ccGLEnableVertexAttribs(1u);
glVertexAttribPointer(0, 2, 0x1406u, 0, 0, a1);
glDrawArrays(a3 ^ 3, 0, a2);
++dword_1009A4FB0;
}