PDA

View Full Version : ARCS



shobha
04-06-2003, 07:50 PM
Hello,

Given startangle,endangle and radius,how can I draw an ARC in opengl? I need very urgently.Please mail me as early as possible.

Thanks

shinpaughp
04-06-2003, 08:06 PM
There is not to my knowledge a function in OpenGL to do what you ask.

Should be extremely easy for you to create a function which accepts the 3 parameters you mentioned and draw a set of lines to represent the arc.

Bode
04-07-2003, 12:31 AM
You should be able to do it with gluPartialDisk:

The gluPartialDisk function draws an arc of a disk.

void gluPartialDisk(
GLUquadricObj * qobj,
GLdouble innerRadius,
GLdouble outerRadius,
GLint slices,
GLint loops,
GLdouble startAngle,
GLdouble sweepAngle
);

Bode