This appendix lists the queryable OpenGL state variables, their default values, and the commands for obtaining the values of these variables. It also describes OpenGL's error handling facility, and how to save and restore sets of state variables. The OpenGL Reference Manual contains detailed information on all the commands and constants discussed in this appendix. This appendix has these major sections:
The Query Commands
Error Handling
Saving and Restoring Sets of State Variables
OpenGL State Variables
OpenGL Programming Guide