1exshade(3)                      Allegro manual                      exshade(3)
2
3
4

NAME

6       exshade - Gouraud shaded sprites. Allegro game programming library.
7

SYNOPSIS

9       #include <allegro.h>
10
11
12       Example exshade
13

DESCRIPTION

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

SEE ALSO

25       BITMAP(3),    COLOR_MAP(3),    END_OF_MAIN(3),    PALETTE(3),   RGB(3),
26       RGB_MAP(3),   SCREEN_H(3),   SCREEN_W(3),    allegro_error(3),    alle‐
27       gro_init(3),      allegro_message(3),     blit(3),     clear_bitmap(3),
28       color_map(3), create_bitmap(3),  create_light_table(3),  create_rgb_ta‐
29       ble(3),     destroy_bitmap(3),     draw_gouraud_sprite(3),     font(3),
30       install_keyboard(3),    install_mouse(3),    keypressed(3),    line(3),
31       load_bitmap(3),      mouse_x(3),      mouse_y(3),     palette_color(3),
32       poll_mouse(3),     replace_filename(3),     rgb_map(3),      screen(3),
33       set_gfx_mode(3),  set_palette(3),  set_trans_blender(3), show_mouse(3),
34       textout_ex(3)
35
36
37
38Allegro                          version 4.2.3                      exshade(3)
Impressum