circle in open GL

hi, is there any command to draw a circle?

opengl doesn’t have such function, but you can write your own, by drawing a dot on every degree.

actually you can draw a circle using gluDisk. the circle will have to be filled however.

you can try this

  
glBegin(GL_LINE_STRIP);
for(i=0;i<360;i++)
{
    x=sin(i);
    y=cos(i);
    glVertex2f(x,y);
}
glEnd();