This program demonstrates the winding rule polygon tessellation property. Four tessellated objects are drawn, each with very different contours. When the w key is pressed, the objects are drawn with a different winding rule.

The example is ported from C examples in the OpenGL Programming Guide (known as the "red book").