O'Reilly logo

Python Game Programming By Example by Joseph Howse, Alejandro Rodas de Paz

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

Getting started with OpenGL

OpenGL is a broad topic in itself, and it is possible to find plenty of tutorials, books, and other resources, usually targeted at C or C++.

Since this chapter is not intended to be a comprehensive guide for this specification, we will take advantage of GLUT, which stands for OpenGL Utility Toolkit. It is widely used in small applications because of its simplicity and portability, and the bindings are implemented in PyOpenGL.

GLUT will help us perform some basic operations, such as creating windows and handling input events.

Tip

GLUT licensing

Unfortunately, GLUT is not in the public domain. The copyright is maintained by its author, Mark Kilgard, who wrote it for the sample programs included in Red Book, the official ...

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