![]() |
![]()
| ![]() |
![]()
NAMEbitmap_mask_color - Returns the mask color of the specified bitmap. Allegro game programming library. SYNOPSIS#include <allegro.h> int bitmap_mask_color(BITMAP *bmp); DESCRIPTIONReturns the mask color for the specified bitmap (the value which is skipped when drawing sprites). For 256-color bitmaps this is zero, and for truecolor bitmaps it is bright pink (maximum red and blue, zero green). A frequent use of this function is to clear a bitmap with the mask color so you can later use this bitmap with masked_blit() or draw_sprite() after drawing other stuff on it. Example:
SEE ALSOMASK_COLOR_8(3), set_color_depth(3), bitmap_color_depth(3), ex3d(3), exmouse(3), expat(3)
|