Appendix F. Programming Tips

This appendix lists some tips and guidelines that you might find useful. Keep in mind that these tips are based on the intentions of the designers of OpenGL, not on any experience with actual applications and implementations. This appendix has the following major sections:

OpenGL Correctness Tips

• Perform error checking often. Call glGetError() at least once each time the scene is rendered to make certain error conditions are noticed while you are developing your application. Once development is completed, removing the error checking can help improve performance.

• Do not count on the error behavior of an OpenGL implementation—it ...

Get OpenGL Programming Guide: The Official Guide to Learning OpenGL, Versions 3.0 and 3.1, Seventh Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.