Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
makeacol32(3)			 Allegro manual 		   makeacol32(3)

NAME
     makeacol32 - Converts an RGBA color into a 32-bit display pixel format. Al-
     legro game programming library.

SYNOPSIS
     #include <allegro.h>

     int makeacol32(int r, int g, int b, int a);

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

SEE ALSO
     makeacol(3), set_alpha_blender(3), set_write_alpha_blender(3)

Allegro 			  version 4.4.3 		   makeacol32(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=makeacol32&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help