Rechercher une page de manuel
bitmap_color_depth.3alleg
Langue: en
Version: version 4.2.2 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
bitmap_color_depth - Returns the color depth of the specified bitmap. Allegro game programming library.SYNOPSIS
#include <allegro.h>int bitmap_color_depth(BITMAP *bmp);
DESCRIPTION
Returns the color depth of the specified bitmap (8, 15, 16, 24, or 32). Example:switch (bitmap_color_depth(screen)) { case 8: /* Access screen using optimized 8-bit code. */ break; default: /* Use generic slow functions. */ break; }
SEE ALSO
set_color_depth(3alleg), bitmap_mask_color(3alleg), ex3d(3alleg), exlights(3alleg), exscn3d(3alleg), exswitch(3alleg), extrans(3alleg), exupdate(3alleg), exzbuf(3alleg)Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre