.\" Generated by the Allegro makedoc utility .TH bitmap_color_depth 3alleg4 "version 4.4.2" "Allegro" "Allegro manual" .SH NAME bitmap_color_depth \- Returns the color depth of the specified bitmap. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B int bitmap_color_depth(BITMAP *bmp); .SH DESCRIPTION Returns the color depth of the specified bitmap (8, 15, 16, 24, or 32). Example: .nf switch (bitmap_color_depth(screen)) { case 8: /* Access screen using optimized 8-bit code. */ break; default: /* Use generic slow functions. */ break; } .fi .SH SEE ALSO .BR set_color_depth (3alleg4), .BR bitmap_mask_color (3alleg4), .BR ex3d (3alleg4), .BR exlights (3alleg4), .BR exscn3d (3alleg4), .BR exswitch (3alleg4), .BR extrans (3alleg4), .BR exupdate (3alleg4), .BR exzbuf (3alleg4)