Re: [AD] Documentation missing |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Holes are actually a splits while interpretted in triangulator domain.
First one is located after main poligon vertices. Since
al_triangulate_polygon require at least one split in order to work
this information and that cannot be avoided.
This hard requirement was then pulled to
al_draw_filled_polygon_with_holes. Probably by accident.
I think al_draw_filled_polygon_with_holes and
al_draw_polygon_with_holes may fallback to al_draw_filled_polygon and
al_draw_polygon if there are no holes at all.
On 28 April 2012 15:40, Elias Pschernig <info@xxxxxxxxxx> wrote:
> On Fri, 27 Apr 2012 00:35:03 +0200
> Elias Pschernig <elias.pschernig@xxxxxxxxxx> wrote:
>
>> On Thu, 26 Apr 2012 23:53:43 +0200
>> Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:
>>
>> > Would it be possible for someone to document
>> > al_draw_filled_polygon_with_holes and relatives? It's not obvious to
>> > me how to use them and I can't work it out from the code.
>> >
>>
>> I found an example, I can try document off that maybe:
>>
>
> It's documented now. Michał, do you remember why the holes also include
> the main polygon? It is a bit weird that to draw a polygon with no
> holes you still have to specify one. Also, would it be hard to allow
> empty holes? Right now there's an assert whenever a hole has 0 vertices
> but logically it would make sense to allow it.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> --
> https://lists.sourceforge.net/lists/listinfo/alleg-developers
--
thedmd, Michał Cichoń
Artifex Mundi
michcic@xxxxxxxxxx
http://www.artifexmundi.com