logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

makeacol, makeacol_depth - Converts RGBA colors into display dependent pixel formats. Allegro game

Description

       Convert RGBA colors into display dependent pixel formats. In anything less than a 32-bit mode, these  are
       the  same  as  calling makecol() or makecol_depth(), but by using these routines it is possible to create
       32-bit color values that contain a true 8  bit  alpha  channel  along  with  the  red,  green,  and  blue
       components.   You   should   only  use  RGBA  format  colors  as  the  input  to  draw_trans_sprite()  or
       draw_trans_rle_sprite() after calling set_alpha_blender(), rather  than  drawing  them  directly  to  the
       screen.

Name

       makeacol,  makeacol_depth  -  Converts  RGBA  colors  into  display dependent pixel formats. Allegro game
       programming library.

Return Value

       Returns the requested RGBA quadruplet.

See Also

makecol(3alleg4),  makecol_depth(3alleg4),  set_alpha_blender(3alleg4), set_write_alpha_blender(3alleg4),
       exrotscl(3alleg4)

Allegro                                           version 4.4.3                                makeacol(3alleg4)

Synopsis

#include<allegro.h>intmakeacol(intr,intg,intb,inta);intmakeacol_depth(intcolor_depth,intr,intg,intb,inta);

See Also