get_color_depth (3) - Linux Manuals
get_color_depth: Returns the current pixel color depth. Allegro game programming library.
Command to display get_color_depth
manual in Linux: $ man 3 get_color_depth
NAME
get_color_depth - Returns the current pixel color depth. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int get_color_depth(void);
DESCRIPTION
Returns the current pixel format. This can be very useful to know in order
to write generic functions which select a different code path internally
depending on the color depth being used.
Note that the function returns whatever value you may have set previously
with set_color_depth(), which can be different from the current color
depth of the screen global variable. If you really need to know the color
depth of the screen, use bitmap_color_depth().
Pages related to get_color_depth
- get_compiled_sprite (3) - Creates a compiled sprite using a bitmap as source. Allegro game programming library.
- get_config_argv (3) - Reads a token list from the configuration file. Allegro game programming library.
- get_config_float (3) - Retrieves a float from the configuration file. Allegro game programming library.
- get_config_hex (3) - Retrieves a hexadecimal value from the configuration file. Allegro game programming library.
- get_config_id (3) - Retrieves a driver ID from a configuration file. Allegro game programming library.
- get_config_int (3) - Retrieves an integer from the configuration file. Allegro game programming library.
- get_config_string (3) - Retrieves a string from the configuration file. Allegro game programming library.
- get_config_text (3) - Returns a string translated to the current language. Allegro game programming library.
- get_constant (3) - retrieve a scalar constant from a dirfile database
- get_constants (3) - retrieve a list of constant values from a dirfile