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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.