Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

makeacol32(3alleg4) [plan9 man page]

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)
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Shopt -s histappend

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)
Discussion started by: cokedude
3 Replies

2. UNIX for Advanced & Expert Users

What's your most useful shell?

What's your most useful shell? /bin/sh /bin/csh /bin/ksh /bin/tcsh /bin/bash (249 Replies)
Discussion started by: zylwyz
249 Replies