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

NAME

6       bitmap_color_depth  -  Returns the color depth of the specified bitmap.
7       Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int bitmap_color_depth(BITMAP *bmp);
14

DESCRIPTION

16       Returns the color depth of the specified bitmap (8, 15, 16, 24, or 32).
17       Example:
18
19          switch (bitmap_color_depth(screen)) {
20             case 8:
21                /* Access screen using optimized 8-bit code. */
22                break;
23             default:
24                /* Use generic slow functions. */
25                break;
26          }
27
28

SEE ALSO

30       set_color_depth(3),    bitmap_mask_color(3),    ex3d(3),   exlights(3),
31       exscn3d(3), exswitch(3), extrans(3), exupdate(3), exzbuf(3)
32
33
34
35Allegro                          version 4.4.2           bitmap_color_depth(3)
Impressum