Skip to content

Instantly share code, notes, and snippets.

@akio0911
Created June 12, 2009 18:27
Show Gist options
  • Save akio0911/128814 to your computer and use it in GitHub Desktop.
Save akio0911/128814 to your computer and use it in GitHub Desktop.
void fillTriangles( CGPoint *poli, int points )
{
glVertexPointer(2, GL_FLOAT, 0, poli);
glEnableClientState(GL_VERTEX_ARRAY);
glDrawArrays(GL_TRIANGLES, 0, points);
glDisableClientState(GL_VERTEX_ARRAY);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment