image

Plate 1 Screenshot from the Material example program. Left to right, top row: plaster; glazed alabaster; lemon. Middle row: hard shiny blue plastic; ebony; brass. Bottom row: soft dull red plastic; polished wood; tire rubber.

image

Plate 2 Screenshot from the PixelRectangles example program. The code uses glDrawPixels () to render images of the Sun, Earth, and Moon. The varying alpha values in the RGBA data allow transparency and translucency.

image

Plate 3 ...

Get OpenGL Distilled now with O’Reilly online learning.

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