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 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.