Using OpenGL on Windows: A Simple Example
Any OpenGL program for Windows has to take care of some window-dependent setup.
There are several ways this setup can be done, for example, using the GLUT library or using GDI and WGL directly.
This demo use the Windows OpenGL API directly.