Chapter 21. OpenGL on Linux

by Nicholas Haemel

WHAT YOU’LL LEARN IN THIS CHAPTER:

Image

Now that you have had a chance to learn how to use OpenGL on Windows and Mac OS, it’s time for Linux to get some attention! Just like other platforms, Linux supports 3D rendering through the OpenGL API.

In this chapter we will take a look at how Linux supports OpenGL, what interfaces are available for developers, and how to set up an application. We will also hit GLUT, context management, and how to allocate, render to, and deal with windows on X Windows.

The Basics

OpenGL has long been supported on various versions of Linux, Unix, and so on. On Unix, native hardware ...

Get OpenGL SuperBible: Comprehensive Tutorial and Reference, Fourth 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.