SFML community forums

Bindings - other languages => DotNet => Topic started by: Wibbs on October 18, 2010, 02:27:49 pm

Title: Drawing semi and quarter circles
Post by: Wibbs on October 18, 2010, 02:27:49 pm
Hey all,

I am trying to work out the most efficient way of drawing semi and quarter circles, and was wondering if anyone had any suggestions.  I can obviously draw a custom shape and set points manually, but would much prefer a cleaner method if one exists.

Thanks in advance,

Phil
Title: Drawing semi and quarter circles
Post by: Laurent on October 18, 2010, 02:43:44 pm
If you want a geometry based solution, I think this is the cleanest one.

Otherwise, if you don't care using an image based method, you can use a sprite displaying a circle, and play with the subrect to draw only a part of it.
Title: Drawing semi and quarter circles
Post by: Wibbs on October 18, 2010, 06:32:09 pm
Cool,

Thanks for your reply. I'm trying to avoid the use of images if possible, and have it working now.

Thanks,

Phil