OpenGL Distilled

After reading OpenGL® Distilled, many readers will purchase OpenGL® Programming Guide. To ease the transition from one book to another, the same style conventions are used where possible.

This book uses the following style conventions:

  • Bold OpenGL entry points, function names, and matrices

  • Italics Variables, arguments, parameter names, spatial dimensions, and matrix components

  • Regular Enumerant types and values, defined constants, source code, references, file names, and system paths

Blocks of code are set aside from the text and use a monospace font.

This book presents OpenGL commands by using a command summary, which includes function prototypes, descriptions of the command parameters, and OpenGL version information. Here's the template for a command summary:

Function prototype for the command

A description of the command and its parameters.

In the function prototype, braces indicate a set of options. As an example, consider the glLight*v() set of functions.

void glLight[fd]v(GLenum light, GLenum pname, const TYPE* param);

This prototype defines two functions: glLightfv() and glLightdv(). f and d identify the parameter data typeGLfloat or GLdouble, respectively. In the function prototype parameter list, replace TYPE with the actual data type.

The command summary can be used as a concise reference for the command. OpenGL® Reference Manual, however, typically contains a more exhaustive reference.

Категории

© amp.flylib.com,