OpenGL Syntax

As you likely picked up on, all the functions in the OpenGL library begin with the letters “gl”, immediately followed by one or more capitalized words to name the function (glBindVertexArray(), for example). All functions in OpenGL are like that. In the program you also saw the functions that began with “glut”, which are from the OpenGL Utility Toolkit (GLUT), a library written by Mark J. Kilgard. It’s a popular cross-platform toolkit for opening windows and managing input, among other operations. We use a version of GLUT named Freeglut, originally written by Pawel W. Olszta with contributions from Andreas Umbach and Steve Baker (who currently maintains the library), which is a modern variant of the original library. Similarly, ...

Get OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.3, Eighth Edition 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.