[AD] wishlist items: ellipse and polygon

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


As some recent allegro.cc threads showed, both of the mentioned
functions have some pixel accuracy problems.

ellipse: http://www.allegro.cc/forums/view_thread.php?_id=483211
polygon: http://www.allegro.cc/forums/view_thread.php?_id=480867


In short, polygon forgets to draw the bottom-most pixels of the polygon
in some cases, and ellipse just uses a weird algorithm with lots of
extra pixels all around the ellipses/circles. The attached patch adds
both to the wishlist. (I remember, I sent a patch for ellipse here
myself some years ago.. but never got to finish it. Maybe I can find the
code again and repair it to actually work :)

-- 
Elias Pschernig
Index: todo.txt
===================================================================
RCS file: /cvsroot/alleg/allegro/todo.txt,v
retrieving revision 1.199
diff -u -p -r1.199 todo.txt
--- todo.txt	29 Mar 2005 21:47:31 -0000	1.199
+++ todo.txt	21 Apr 2005 21:07:16 -0000
@@ -88,6 +88,11 @@ QNX todos:
 Wishlist:
 ---------------------------------------------------------------------------
 
+- polygon should draw bottom pixels. I.e. polygon with 4 points should
+  produce the same as rectangle.
+- ellipse/circle should use a better algorithm to give a uniform outline,
+  not the current "crispy" look. And there should be a way to have even
+  width ellipses.
 - Variable line thickness on graphics primitives
 - OSS MIDI pitch bend is wrong
 - size_t where appropriate (get more opinions first)


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/