Jump to content
  • Advertisement

Archived

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

techpage

How to draw a circle?

This topic is 6022 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!