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

NAME

6       makeacol32 - Converts an RGBA color into a 32-bit display pixel format.
7       Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int makeacol32(int r, int g, int b, int a);
14

DESCRIPTION

16       Converts an RGBA color  into  a  32-bit  display  pixel  format,  which
17       includes  an  alpha (transparency) value. There are no versions of this
18       routine for other color depths, because  only  the  32-bit  format  has
19       enough  room  to store a proper alpha channel. You should only use RGBA
20       format   colors   as    the    input    to    draw_trans_sprite()    or
21       draw_trans_rle_sprite()  after calling set_alpha_blender(), rather than
22       drawing them directly to the screen.
23
24

SEE ALSO

26       makeacol(3), set_alpha_blender(3), set_write_alpha_blender(3)
27
28
29
30Allegro                          version 4.2.2                   makeacol32(3)
Impressum