draw circle

Started by
2 comments, last by Binomine 18 years ago
I need to draw a very simple circle using openGL
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.
Take a look at this thread for a lot of different ways.
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.

This topic is closed to new replies.

Advertisement