Re: [AD] Subpixel Accurate Circles etc

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


On Sun, 2008-02-10 at 14:01 -0800, Paul Suntsov wrote:
> --- Elias Pschernig <elias@xxxxxxxxxx> wrote:
> 
> > On Sun, 2008-02-10 at 13:42 -0800, Ryan Dickie wrote:
> > > Yes it certainly does.. so the solution is to add 0.5 pixels to the
> > > radius each time?
> > 
> > In A5, the radius is a floating point number, so there it should not
> > matter - users can draw both the left and right circle.
> > 
> 
> Wait... But if I look at the already present graphics routines I see stuff like this:
> 
> void _al_draw_rectangle_memory(int x1, int y1, int x2, int y2, ALLEGRO_COLOR *color, int flags);
> void _al_draw_line_memory(int x1, int y1, int x2, int y2, ALLEGRO_COLOR *color);
> 
> Which is clearly not float based... Do those need to be rewritten to use floating points then as well?
> 

Yeah, that's the plan.

-- 
Elias Pschernig <elias@xxxxxxxxxx>





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