O'Reilly logo

OpenGL Programming on Mac OS X: Architecture, Performance, and Integration by J. D. Sullivan, Robert P. Kuehne

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required