Chapter 15. GLX: OpenGL on Linux

by Nick Haemel

WHAT YOU'LL LEARN IN THIS CHAPTER:

How To

Functions You'll Use

Choose appropriate visuals for

glXChooseVisual, glXChooseFBConfig

Manage OpenGL drawing contexts

glXCreateContext, glXDestroyContext, glXMakeCurrent

Create OpenGL windows

glXCreateWindow

Do double-buffered drawing

glXSwapBuffers

Create bitmap text fonts

glXUseXFont

Do offscreen drawing

glXCreateGLXPixmap, glXCreatePbuffer

This chapter discusses GLX, the OpenGL extension that is used to support OpenGL applications through the X Window System on UNIX and Linux. You learn how to create and manage OpenGL contexts as well as how to create OpenGL drawing areas with several of the common GUI toolkits. You also learn how to use GLUT with all the examples in ...

Get OpenGL® SuperBible, Third 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.