Archived

This topic is now archived and is closed to further replies.

techpage

How to draw a circle?

Recommended Posts

Hi, how to draw fast circle using directdraw? i just found bresenham''s circle algorithm, i''m coding it, but do you have faster algorithm/code for it? thanks!

Share this post


Link to post
Share on other sites
You might be doing this already, I''m not familiar with that algorithm.

I see the circle as a symetrical object. If you can calculate one quarter of the circle about a (0,0) axis then you can just mirror those co-ordinates to draw the rest of the circle. Then you only have to calculate one quarter of the circle. However, I would think the Bresenham circle algo would be pretty fast.

Guy

Share this post


Link to post
Share on other sites