[SDL] drawing of an anti aliased circular arc
Andreas Schiffler
aschiffler at www2.ferzkopp.net
Mon Mar 12 15:52:20 PDT 2007
You might be able to adapt the code from SDL_gfx ... there is an
aaellipse() routine that could be used possibly with some
draw-supression in the loop based on pre-calculated counters to just
draw an arc. Or, if you are not concerned about speed too much, recode
it using a float based iterator and start/end angles.
Source is here: http://www.ferzkopp.net/joomla/content/view/19/14/
(PS: If you ever get some aaArc code working, it would be a great
addition to SDL_gfx).
Tim Schürmann wrote:
> Hi!
>
> Armin Steinhoff schrieb:
>
>
>> I'm looking for an algorithm for drawing an anti aliased circular arc.
>>
>> Are there any pointers or sources of it ?
>>
>
> If you are from germany, have a look at the book "Computergrafik"
> (Bender/Brill, Hanser Verlag). AFAIR no source code, but a good description
> of an anti-aliasing algorithm.
>
> Bye,
>
> Tim
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
More information about the SDL
mailing list