Chapter 9. The GLUT API for OpenGL Configuration

GLUT is an older, tried-and-true, cross-platform API for quick and dirty access to OpenGL application infrastructure. GLUT provides a very simple and straightforward CAPI to create windows, manage device input, monitor windowing events, handle a run loop, and so on. It also provides low-level primitive construction elements such as Spheres, Cubes, and Torii. This API is not unique to the Mac: in fact, you’ll find it on most every platform. GLUT allows you to quickly prototype some OpenGL code in such a way that you can test it on every platform on which you must deploy. Although not really a good infrastructure for more complex applications, it’s a great way to get started. In this chapter, we’ll ...

Get OpenGL Programming on Mac OS X: Architecture, Performance, and Integration now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.