OpenGL 本身只管底层绘制,并不管窗口显示,用户交互等等,这就需要在其上添加一层窗口管理库,来实现 OpenGL的简易访问和友好交互。
Wikipedia : A few libraries have been designed solely to produce an OpenGL-capable window. The first such library was OpenGL Utility Toolkit (GLUT), later superseded by freeglut. GLFW is a newer alternative.
These toolkits are designed to create and manage OpenGL windows, and manage input, but little beyond that.
- GLFW – A cross-platform windowing and keyboard-mouse-joystick handler; is more game-oriented
- freeglut – A cross-platform windowing and keyboard-mouse handler; its API is a superset of the GLUT API, and it is more stable and up to date than GLUT
- OpenGL Utility Toolkit (GLUT) – An old windowing handler, no longer maintained.
glut
glut 是最早出现的,也是最早die 的,目前依然可以使用的最新的版本,是98年的。