title: OpenGL ES - How to Draw a filled Polygon?
body: <p>I tried googling and searching on stack but I didn't find anything :-(<br>
  ( <a href="https://stackoverflow.com/questions/2842339/mapping-irregular-shapes-or-other-polygons-cartoons-sprites-to-triangles-in-op">Mapping irregular shapes or other polygons (cartoons, sprites) to triangles in OpenGL ES</a> )</p>
  
  <p>I want to draw a filled polygon in <strong>OpenGL ES</strong> on iPad (2D, don't need 3D)
  (I'm new to OpenGL &amp;&amp; OpenGL ES)
  It seems simple on OpenGL but with ES with just can draw triangle.</p>
  
  <p>But I can't find any good tutorial about this :-(
  Does it exist any wrapper / library or anything else that could help me ?</p>
  
  <p>I <strong>don't want to use CoreGraphics</strong>, it's too slow for what I'm doing ^^<br>
  And if possible, avoiding too (big) library like Cocos2D.</p>
  
  <p><strong>Edit</strong> : Working On the Problem, here are some useful links (will edit)<br>
  <strong>Links</strong><br>
  - Polygon Triangulation<br>
  <a href="http://www.vterrain.org/Implementation/Libs/triangulate.html" rel="nofollow noreferrer">http://www.vterrain.org/Implementation/Libs/triangulate.html</a><br>
  <a href="http://en.wikipedia.org/wiki/Polygon_triangulation" rel="nofollow noreferrer">http://en.wikipedia.org/wiki/Polygon_triangulation</a>  (WIKI)
  <a href="http://www.flipcode.com/archives/Efficient_Polygon_Triangulation.shtml" rel="nofollow noreferrer">http://www.flipcode.com/archives/Efficient_Polygon_Triangulation.shtml</a>  (polygon WITHOUT holes)
  <a href="http://www.cs.unc.edu/~dm/CODE/GEM/chapter.html" rel="nofollow noreferrer">http://www.cs.unc.edu/~dm/CODE/GEM/chapter.html</a> (polygon WITH holes, C code)</p>
  
  <p><strong>Solution</strong><br>
  I will try using polygon tessellation to get triangles. At first I'm going to try ( <a href="http://www.flipcode.com/archives/Efficient_Polygon_Triangulation.shtml" rel="nofollow noreferrer">http://www.flipcode.com/archives/Efficient_Polygon_Triangulation.shtml</a> ) and as I need polygon with holes, the second one ( <a href="http://www.cs.unc.edu/~dm/CODE/GEM/chapter.html" rel="nofollow noreferrer">http://www.cs.unc.edu/~dm/CODE/GEM/chapter.html</a> ). <strong>If anyone has a better way, PLEASE, tell me with a comment</strong> ^^</p>
  
  <p>Thanks :-)</p>