  the opengl utility toolkit (glut) is a library of utilities for opengl programs, which primarily perform system-level i/o with the host operating system. functions performed include window definition, window control, and monitoring of keyboard and mouse input. routines for drawing a number of geometric primitives (both in solid and wireframe mode) are also provided, including cubes, spheres and the utah teapot. glut also has some limited support for creating pop-up menus. glut was written by mark j. kilgard, author of opengl programming for the x window system and the cg tutorial: the definitive guide to programmable real-time graphics, while he was working for silicon graphics inc. the two aims of glut are to allow the creation of rather portable code between operating systems (glut is cross-platform) and to make learning opengl easier. getting started with opengl programming while using glut often takes only a few lines of code and does not require knowledge of operating systemâspecific windowing apis. all glut functions start with the glut prefix (for example, glutpostredisplay marks the current window as needing to be redrawn). == implementations == the original glut library by mark kilgard supports the x window system (glx) and was ported to microsoft windows (wgl) by nate robins. additionally, os x ships with a glut framework that supports its own nsgl/cgl. kilgard's glut library is no longer maintained, and its license did not permit the redistribution of modified versions of the library. this spurred the need for free software or open source reimplementations of the api from scratch. the first such library was freeglut, which aims to be a reasonably close reproduction, though introducing a small number of new functions to deal with glut's limitations. openglut, a fork of freeglut, adds a number of new features to the original api, but work on it ceased in may 2005. mark kilgard has a github repository for glut.https://github.com/markkilgard/glut the glut.h header
OpenGL