How can i draw a ellipse

I need to aproximate an ellipse using ogl primitives. Also i need to draw it rotated without using glRotatef. Thanks.

Originally from Mancha (

glBegin( GL_LINE_STRIP );
for( float angle = 0.0f; angle <= (2.0fPI); angle += (2.fPI/Segments){
x = cos(angle)*XRadius;
y = sin(angle)*YRadius;
glVertex3f( x, y, 0);

Segments are the number of lines that’ll approximate the ellipse;
XRadius/YRadius are the radius you want for both the axis (if both are 1, you’ll have a circle with radius 1)

[This message has been edited by t0y (edited 07-14-2002).]