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

NAME

6       set_alpha_blender  -  Enables  a  special  alpha-channel blending mode.
7       Allegro game programming library.
8

SYNOPSIS

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

DESCRIPTION

16       Enables the special alpha-channel blending  mode,  which  is  used  for
17       drawing  32-bit  RGBA sprites. After calling this function, you can use
18       draw_trans_sprite() or draw_trans_rle_sprite() to draw a 32-bit  source
19       image  onto any hicolor or truecolor destination. The alpha values will
20       be taken directly from the source graphic, so you can vary the solidity
21       of each part of the image. You can't use any of the normal translucency
22       functions while this mode is active, though, so you should reset to one
23       of  the  normal  blender modes (eg. set_trans_blender()) before drawing
24       anything other than 32-bit RGBA sprites.
25
26

SEE ALSO

28       set_trans_blender(3),  draw_trans_sprite(3),  draw_trans_rle_sprite(3),
29       set_write_alpha_blender(3), exalpha(3), extrans(3)
30
31
32
33Allegro                          version 4.2.2            set_alpha_blender(3)
Impressum