set_color_depth (3) - Linux Manuals
set_color_depth: Sets the global pixel color depth. Allegro game programming library.
Command to display set_color_depth
manual in Linux: $ man 3 set_color_depth
NAME
set_color_depth - Sets the global pixel color depth. Allegro game programming library.
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. Example:
set_color_depth(32);
if (set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0) != 0) {
abort_on_error("Couldn't set a 32 bit color resolution");
}
Note that the screen color depth won't change until the next successful
call to set_gfx_mode().
Pages related to set_color_depth
- set_color_conversion (3) - Tells Allegro how to convert images during loading time.
- set_color (3) - Sets the specified palette entry to the specified RGB triplet. Allegro game programming library.
- set_config_data (3) - Sets a block of configuration data. Allegro game programming library.
- set_config_file (3) - Sets the configuration file. Allegro game programming library.
- set_config_float (3) - Writes a float in the configuration file. Allegro game programming library.
- set_config_hex (3) - Writes a hexadecimal integer in the configuration file. Allegro game programming library.
- set_config_id (3) - Writes a driver ID in the configuration file. Allegro game programming library.
- set_config_int (3) - Writes an integer in the configuration file. Allegro game programming library.
- set_config_string (3) - Writes a string in the configuration file. Allegro game programming library.
- set_clip_rect (3) - Sets the clipping rectangle of a bitmap. Allegro game programming library.