set_color_depth(3)

NAME
set_color_depth

SYNOPSIS
#include <allegro.h>

void set_color_depth(int depth);

DESCRIPTION
Sets the pixel format to be used by subsequent calls to set_gfx_mode() and create_bitmap(). Valid depths are 8 (the default), 15, 16, 24, and 32 bits. Note that you can retrieve the pixel format currently in use by calling bitmap_color_depth() on the 'screen' bitmap, once a graphics mode has been set.

SEE ALSO
set_gfx_mode(3), set_color_conversion(3), makecol(3), getr(3), bitmap_color_depth(3)