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

Get Python Game Programming By Example 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.