1get_color_depth(3)              Allegro manual              get_color_depth(3)
2
3
4

NAME

6       get_color_depth  -  Returns the current pixel color depth. Allegro game
7       programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int get_color_depth(void);
14

DESCRIPTION

16       Returns the current pixel format. This can be very useful  to  know  in
17       order  to  write  generic  functions which select a different code path
18       internally depending on the color depth being used.
19
20       Note that the function returns whatever value you may have  set  previā€
21       ously  with  set_color_depth(), which can be different from the current
22       color depth of the screen global variable. If you really need  to  know
23       the color depth of the screen, use bitmap_color_depth().
24
25

SEE ALSO

27       set_color_depth(3), bitmap_color_depth(3), exrgbhsv(3)
28
29
30
31Allegro                          version 4.4.2              get_color_depth(3)
Impressum