> I was wondering if someone had code to draw lines in opengl with > mitter or round edges. That is, using a polygon to draw the lines. > I found some code online but it is broken. > fltk has some really nice drawing routines, but I think I cannot > overlap them onto an opengl image, right?
This question should probably be posted in the OpenGL forum of this site. Not sure what you mean by lines with 'round edges'. I've attached a figure that shows how to round off the corners and end points of a series of line segments. It's done by simply drawing anti-aliased points of the same width of the lines at the end of each line segment. So you are drawing the line segments twice: 1) once as anti-aliased lines, and 2) as anti-aliased points. Does this answer your question? [url]http://www.mfwerner.addr.com/OpenGL/Forum_Figure.jpg[/url] _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

