O'Reilly logo

OpenGL® Programming Guide: The Official Guide to Learning OpenGL®, Version 4.5 with SPIR-V, Ninth Edition by Dave Shreiner, Graham Sellers, John Kessenich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. Support Libraries

In this text, we used GLFW as a simple, cross-platform application framework to simplify our examples. Further, we wrapped up the GLFW plumbing behind some of our own frameworks to reduce the amount of boilerplate code in each sample application. In addition, we employed the widely used GL3W OpenGL glue library to provide access to all of OpenGL’s functions on platforms that don’t necessarily expose them directly. This appendix provides a brief overview of both libraries.

This appendix contains the following major sections:

• “Basics of GLFW: The OpenGL Utility Framework

• “Initializing and Creating a Window

• “Handling User Input

• “Controlling the Window

• “Shutting Down Cleanly

• “GL3W: OpenGL Glue

Basics ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required