exshade (3) - Linux Manuals

exshade: Gouraud shaded sprites. Allegro game programming library.

NAME

exshade - Gouraud shaded sprites. Allegro game programming library.

SYNOPSIS

#include <allegro.h>

Example exshade

DESCRIPTION

This program demonstrates how to draw Gouraud shaded (lit) sprites. In an apparently black screen, a planet like sprite is drawn close to the middle of the screen. In a similar way to how the first test of extrans works, you move the cursor on the screen with the mouse. Attached to this mouse you can imagine a virtual spotlight illuminating the scene around. Depending on where the mouse is, the Gouraud shaded sprite will show the direction of the light.