Ville Syrjälä wrote: > FillTriangle has less overhead. Does GTK have a shape hint like X? If it > does maybe it would make sense to draw all convex polygons with > FillTriangle(). > The GDK method for filled polygons does not give any extra information about the polygon except the points involved. It would be possible to examine the points in the polygon to decide on the type of polygon, but I'd say that is an optimization that could be added later if it was deemed necessary. >> 4. The current code seems a bit strange when it comes to clipping. The >> gdk_directfb_clip_region is retrieved and iterated over, setting the >> clip and drawing a triangle for each clip rect. I would have expected >> the list to be iterated over while updating the clip and then just one >> triangle would be drawn at the end. Is the current code right? >> > > The code looks correct to me. DirectFB has just one clipping rectangle. > Some hardware may support more but (IIRC 3 for ati128 for example) but > that feature isn't exposed by DirectFB Ok, I assumed that setClip worked differently than it does. Can you explain why fillTriangle called more than once?
_______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev