Functions | |
| caca_bitmap * | caca_create_bitmap (unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) |
| Create an internal bitmap object. | |
| void | caca_set_bitmap_palette (struct caca_bitmap *, unsigned int r[], unsigned int g[], unsigned int b[], unsigned int a[]) |
| Set the palette of an 8bpp bitmap object. | |
| void | caca_draw_bitmap (int, int, int, int, struct caca_bitmap const *, void *) |
| Draw a bitmap on the screen. | |
| void | caca_free_bitmap (struct caca_bitmap *) |
| Free the memory associated with a bitmap. | |
|
||||||||||||||||||||||||||||||||||||
|
Create a bitmap structure from its coordinates (depth, width, height and pitch) and pixel mask values. If the depth is 8 bits per pixel, the mask values are ignored and the colour palette should be set using the caca_set_bitmap_palette() function. For depths greater than 8 bits per pixel, a zero alpha mask causes the alpha values to be ignored.
|
|
||||||||||||||||||||||||||||
|
Draw a bitmap at the given coordinates. The bitmap can be of any size and will be stretched to the text area.
|
|
|
Free the memory allocated by caca_create_bitmap().
|
|
||||||||||||||||||||||||
|
Set the palette of an 8 bits per pixel bitmap. Values should be between 0 and 4095 (0xfff).
|