1RLE_SPRITE(3) Allegro manual RLE_SPRITE(3)
2
3
4
6 RLE_SPRITE - Stores the contents of an RLE sprite. Allegro game pro‐
7 gramming library.
8
10 #include <allegro.h>
11
12
13 typedef struct RLE_SPRITE
14
16 int w, h; - width and height in pixels
17 int color_depth; - color depth of the image
18
19 RLE sprites store the image in a simple run-length encoded format,
20 where repeated zero pixels are replaced by a single length count, and
21 strings of non-zero pixels are preceded by a counter giving the length
22 of the solid run. Read chapter "RLE sprites" for a description of the
23 restrictions and how to obtain/use this structure.
24
25
27 get_rle_sprite(3), BITMAP(3), COMPILED_SPRITE(3)
28
29
30
31Allegro version 4.4.2 RLE_SPRITE(3)