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

NAME

6       exalpha - Creating and using 32 bit RGBA sprites. Allegro game program‐
7       ming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       Example exalpha
14

DESCRIPTION

16       This program demonstrates how to use the 32 bit RGBA translucency func‐
17       tions  to  store  an  alpha  channel  along with a bitmap graphic.  Two
18       images are loaded from disk. One will be used for  the  background  and
19       the  other  as a sprite. The example generates an alpha channel for the
20       sprite image, composing the 32 bit  RGBA  bitmap  during  runtime,  and
21       draws it at the position of the mouse cursor.
22
23

SEE ALSO

25       BITMAP(3),  END_OF_MAIN(3), SCREEN_H(3), SCREEN_W(3), allegro_error(3),
26       allegro_init(3),  allegro_message(3),  blit(3),  clear_keybuf(3),  cre‐
27       ate_bitmap(3),     destroy_bitmap(3),    draw_trans_sprite(3),    draw‐
28       ing_mode(3),   font(3),   getb(3),   getg(3),   getpixel(3),   getr(3),
29       install_keyboard(3), install_mouse(3), install_timer(3), keypressed(3),
30       load_bitmap(3), makecol(3), mouse_x(3), mouse_y(3), putpixel(3),  rect‐
31       fill(3),    replace_filename(3),    screen(3),    set_alpha_blender(3),
32       set_color_conversion(3), set_color_depth(3), set_gfx_mode(3),  set_mul‐
33       tiply_blender(3),       set_write_alpha_blender(3),      solid_mode(3),
34       stretch_blit(3), textprintf_ex(3)
35
36
37
38Allegro                          version 4.4.2                      exalpha(3)
Impressum