Claudio Ciccani wrote:
> You written FillTrapezoid(), my brain received FillPolygon()!!

FillPolygon() would be the toplevel, but if I made up my UI from a bunch
of quadrangles calling FillQuadrangles(), it would be much more efficient
than a generic FillPolygon() which most likely has to tesselate your polygon
using triangles, trapezoids or quadrangles. Well, it could be cached, and
end up at the same thing, but if your polygons are changing too much or you
have a lot of them coming and going, it would be better to use quadrangles,
which would only need to be splitted in case the hardware only does triangles,
or split up a second time for trapezoid based rasterizers, like Matrox G-series.

Maybe I missed something and hardware directly supports arbitrary Polygons 
nowadays.

> I was just talking about polygons (i.e. variable number of vertices) not
> trapezoids (i.e. 4 vertices). Trapezoids aren't really useful to draw
> oval objects! 

No, not really, but palm trees along a long road :)

> I think Cairo uses trapezoids only because it was originally written on
> top of XRender and XRender hasn't much to offer.

:-)

-- 
Best regards,
   Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to