OpenGL on Linux

One great thing about OpenGL is that it’s supported on so many different platforms. We looked at how to use OpenGL on Windows and on Macs. Now let’s dig into 3D rendering on one of the most popular open source platforms — Linux.

This section looks at how Linux supports OpenGL, how to pick a specific version of OpenGL, what interfaces are available for developers, and how to set up an application. We also touch on GLUT, context management, and how to allocate, render to, and deal with windows on X Windows.

The Basics

OpenGL has been the go-to API for 3D rendering on various versions of Linux, UNIX, and similar platforms for nearly as long as 3D rendering has been possible. Linux offers several ways to access OpenGL. Most major ...

Get OpenGL® SuperBible: Comprehensive Tutorial and Reference, Sixth Edition now with O’Reilly online learning.

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