Re: [AD] Subpixel Accurate Circles etc

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


On Feb 10, 2008 2:06 PM, Elias Pschernig <elias@xxxxxxxxxx> wrote:

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>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--
https://lists.sourceforge.net/lists/listinfo/alleg-developers


Will coordinates still be pixel based.. ie: resolution dependant?

-- ryan


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