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.
SEE ALSO
BITMAP(3alleg), COLOR_MAP(3alleg), END_OF_MAIN(3alleg),
PALETTE(3alleg), RGB(3alleg), RGB_MAP(3alleg), SCREEN_H(3alleg),
SCREEN_W(3alleg), allegro_error(3alleg), allegro_init(3alleg),
allegro_message(3alleg), blit(3alleg), clear_bitmap(3alleg),
color_map(3alleg), create_bitmap(3alleg), create_light_table(3alleg),
create_rgb_table(3alleg), destroy_bitmap(3alleg),
draw_gouraud_sprite(3alleg), font(3alleg), install_keyboard(3alleg),
install_mouse(3alleg), keypressed(3alleg), line(3alleg),
load_bitmap(3alleg), mouse_x(3alleg), mouse_y(3alleg),
palette_color(3alleg), poll_mouse(3alleg), replace_filename(3alleg),
rgb_map(3alleg), screen(3alleg), set_gfx_mode(3alleg),
set_palette(3alleg), set_trans_blender(3alleg), show_mouse(3alleg),
textout_ex(3alleg)