Style Conventions

These style conventions are used in this guide:

Bold—Command and routine names and matrices

Italics—Variables, arguments, parameter names, spatial dimensions, matrix components, and first occurrences of key terms.

• Regular—Enumerated types and defined constants

Code examples are set off from the text in a monospace font, and command summaries are shaded with gray boxes.

In a command summary, we sometimes use braces to identify options among data types. In the following example, glCommand() has four possible suffixes: s, i, f, and d, which stand for the data types GLshort, GLint, GLfloat, and GLdouble. In the function prototype for glCommand(), TYPE is a wildcard that represents the data type indicated by the suffix.

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.