Page 1 of 1
curved line in SDL
Posted: Fri May 28, 2010 6:38 pm
by mary
is it possible to make a curved line is SDL?
Re: curved line in SDL
Posted: Fri May 28, 2010 7:07 pm
by epicasian
Do you mean, like in an image?
If yes, all you have to do is setup SDL, and display the image of a curved line.
If no, please explain.
Hope it helps,
EpicAsian
Re: curved line in SDL
Posted: Fri May 28, 2010 7:14 pm
by Bakkon
SDL by itself isn't capable of drawing primitives, but SDL_gfx is a library extension that includes arcs and bezier curves.
http://www.ferzkopp.net/joomla/content/view/19/14/
Re: curved line in SDL
Posted: Tue Jun 01, 2010 2:36 pm
by Avishaiozeri
If you want, you can make a function that draws a curved line in the pixel frame buffer yourself, using some math. But i guess there are some libraries on the internet that does these things for you.