This examplesexample shows how to draw a polygon (without initialization or repaint code).<ref>Borrowed from the [http://nehe.gamedev.net/lesson.asp?index=01 Nehe tutorial], whose code is free to use elsewhere.</ref> Here is the reference [[C (programming language)|C]] implementation: