O'Reilly logo

OpenGL® SuperBible, Third Edition by Benjamin Lipchak, Richard S. Wright

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Imaging with OpenGL

by Richard S. Wright, Jr.

WHAT YOU'LL LEARN IN THIS CHAPTER:

How To

Functions You'll Use

Set the raster position

glRasterPos, glWindowPos

Draw bitmaps

glBitmap

Read and write color images

glReadPixels, glDrawPixels

Magnify, shrink, and flip images

glPixelZoom

Set up operations on colors

glPixelTransfer, glPixelMap

Perform color substitutions

glColorTable

Perform advanced image filtering

glConvolutionFilter2D

Collect statistics on images

glHistogram, glGetHistogram

In the preceding chapters, you learned the basics of OpenGL's acclaimed 3D graphics capabilities. Until now, all output has been the result of three-dimensional primitives being transformed and projected to 2D space and finally rasterized into the color buffer. However, OpenGL ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required