makeacol32(3alleg4) Allegro manual makeacol32(3alleg4)NAME
makeacol32 - Converts an RGBA color into a 32-bit display pixel format. Allegro 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 rou-
tine for other color depths, because only the 32-bit format has enough room to store a proper alpha channel. You should only use RGBA for-
mat 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.
SEE ALSO makeacol(3alleg4), set_alpha_blender(3alleg4), set_write_alpha_blender(3alleg4)Allegro version 4.4.2 makeacol32(3alleg4)
Check Out this Related Man Page
makeacol(3alleg4) Allegro manual makeacol(3alleg4)NAME
makeacol, makeacol_depth - Converts RGBA colors into display dependent pixel formats. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int makeacol(int r, int g, int b, int a);
int makeacol_depth(int color_depth, int r, int g, int b, int a);
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.
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.2 makeacol(3alleg4)
What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file.
# When the shell exits, append to the history file instead of overwriting it
shopt -s histappend (3 Replies)