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 ...

Get OpenGL® Programming Guide: The Official Guide to Learning OpenGL®, Version 4.5 with SPIR-V, Ninth Edition now with O’Reilly online learning.

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