PDA

View Full Version : help with arcs??



Ali
06-30-2007, 08:32 AM
hey...
need a little help .... my mouse based drwaing application, using openGL draws drawings that are combinations of lines and arcs/curves...an arc begins from an endpoint of a line and another line starts where tha arc ends. Now for simple cases i am using circle equations and GL_LINE STRIP.........but for more elliptical curves there is a problem...how to use openGL to draw arcs that start exactly from the starting point ???


thanks

dorbie
07-11-2007, 07:51 PM
This is not really an OpenGL issue. You need to generate vertices based on a mathematical function. OpenGL has evaluators but really you should look at bezier curves or similar and simply use them to generate vertices in software which you use when drawing OpenGL primitives.