O'Reilly logo

OpenGL Distilled by Paul Martz

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

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

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