exshade man page

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

Referenced By

color_map(3), COLOR_MAP(3), create_light_table(3), create_rgb_table(3), draw_gouraud_sprite(3), mouse_x(3), poll_mouse(3), RGB(3), rgb_map(3), RGB_MAP(3), set_trans_blender(3), show_mouse(3).

version 4.4.2 Allegro Allegro manual