GLUT is a library written by Mark Kilgard that addresses these issues by providing a platform-independent interface to window management, menus, and input devices in a simple and elegant manner.
Using GLUT comes at the price of some flexibility.Because OpenGL doesn’t provide routines for interfacing with a windowing system or input devices, an application must use a variety of other platform-specific routines for this purpose.
The result is nonportable code.Furthermore, these platform-specific routines tend to be full-featured, which complicates construction of small programs and simple demos.
