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
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
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.
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