OpenGL ES - How to Draw a filled Polygon?

前端 未结 6 1493
小蘑菇
小蘑菇 2020-12-28 22:22

I tried googling and searching on stack but I didn\'t find anything :-(
( Mapping irregular shapes or other polygons (cartoons, sprites) to triangles in OpenGL ES )

6条回答
  •  清酒与你
    2020-12-28 23:04

    When you need do triangulation of polygons with holes, you can try use GPC. There is function for tringulation called gpc_polygon_to_tristrip.

    For render use GL_TRIANGLE_STRIP.

    But read gpc license first!

提交回复
热议问题