Jump to content
  • Advertisement
Sign in to follow this  
phil67rpg

draw circle

This topic is 4460 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

Advertisement
Given the minimal info you've supplied, the simplest answer is probably to use immediate mode and GL_LINE_LOOP, along with the C++ cos() and sin() functions. If you need more info than that, you'll probably have to be more specific with your question.

Share this post


Link to post
Share on other sites
Since it's not mentioned in either of the threads listed, gluDisk() will draw a circle.

GluDisk() Documentation

void gluDisk( GLUquadric* quad
, GLdouble inner
, GLdouble outer
, GLint slices
, GLint loops
);

Just make your inner value only slightly smaller than your outer value.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!