Re: [AD] al_draw_polygon_with_holes, etc. |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
I don't know, it sounds like you're misunderstanding the functions.
al_draw_filled_polygon_with_holes doesn't draw multiple polygons
really. It draws one with a bunch of holes cutout from inside of it.
I don't see how "replaced by an array of the number of vertices in each
respective polygon" fits with that.
NOTE: I just woke up.
Trent
On 2013-04-14, at 7:45 AM, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> How about:
>
> * al_draw_polygon_with_holes => al_draw_multiple_polygons
> The current name is just wrong.
>
> * al_draw_filled_polygon_with_holes => al_draw_cutout_polygon
> I think you can't cut out a polygon unless it is filled,
> though it breaks the "filled" pattern.
>
> Furthermore, wouldn't it be simpler to understand if the 'holes' array
> is replaced by an array of the number of vertices in each respective
> polygon? This also affects al_triangulate_polygon.
>
> Is there a real need for the split_stride parameter to
> al_triangulate_polygon? I suggest to drop it.
>
> Peter
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> --
> https://lists.sourceforge.net/lists/listinfo/alleg-developers