Java Network

How to draw lines in different styles

With OpenGL, you can specify lines with different widths and lines that are stippled in various ways - dotted, dashed, drawn with alternating dots and dashes, and so on. This example shows how to render lines in different styles with JOGL. The example is ported from C examples in the OpenGL Programming Guide (known as the "red book").