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

NAME

6       set_write_alpha_blender  -  Enables  the  special alpha-channel editing
7       mode. Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void set_write_alpha_blender();
14

DESCRIPTION

16       Enables the special alpha-channel editing mode, which is used for draw‐
17       ing  alpha  channels  over the top of an existing 32-bit RGB sprite, to
18       turn it into an RGBA format image. After calling this function, you can
19       set  the drawing mode to DRAW_MODE_TRANS and then write draw color val‐
20       ues (0-255) onto a 32-bit image.  This  will  leave  the  color  values
21       unchanged,  but  alter  the  alpha  to whatever values you are writing.
22       After enabling this mode you can also use draw_trans_sprite() to super‐
23       impose an 8-bit alpha mask over the top of an existing 32-bit sprite.
24
25

SEE ALSO

27       set_alpha_blender(3),   draw_trans_sprite(3),   drawing_mode(3),  exal‐
28       pha(3), extrans(3)
29
30
31
32Allegro                          version 4.2.3      set_write_alpha_blender(3)
Impressum