Dan Patrutiu wrote: > Thank you ... So the first thing I understood is that I must move to > gcc:) I was thinking of this as an alternative but I thought there can be an > explanation. (none found). And with the line stuff, I understood that I must > continue searching on the Internet for some polygon algorithms ... I will > search but I thought somebody was falling into this before....(nobody ?!) > > Dan Patrutiu
For what do you need a polygon algorithm if you just want to draw lines ? Polygon algorithms are about filling n-edged polygons but you seem to draw lines only. (you may draw polys with lines too ... ;) Line algortihms I prefer: -Bresenham - only integer math, fast initialisation/analysis of the starting/ending point, but the inner loop is a bit overheaded -DDA line algorithms - uses fractional slopes for one direction, init is a bit slower as on Bresenham, but the innerloop is speedy: no conditionals -> can be done on in much fewer instructions, quite good on cached machines (as well as on uncached ones, too) ah yes.. optimization == assembly. ofcourse. Carsten. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
