is there an opengl function for drawing a circle?

Nope. Use a for-loop and some trigonometry and draw them yourself instead.

any code?

How about this:

void circle(float radius)

{

int x;

glBegin(GL_LINE_LOOP);

for (x=0;x<360;x+=5)

{

glVertex3f(cos(x*PI/180)*radius,sin(x*PI/180)*radius,0.0);

}

glEnd();

}

FooLman

cheers!

finally some circle code that works - thanks man.