Creates an RLE sprite using a bitmap as source.
Creates an RLE sprite based on the specified bitmap (which must be a
memory bitmap). Remember to free this RLE sprite later to avoid memory
/* Create RLE sprite from an existent bitmap. */
rle = get_rle_sprite(bmp);
abort_on_error("Couldn't create RLE sprite!");
/* We don't need the bitmap any more.*/
/* Use the RLE sprite. */
/* Destroy it when we don't need it any more. */
Returns a pointer to the created RLE sprite, or NULL if the RLE sprite
could not be created. Remember to free this RLE sprite later to avoid
The following threads each have code containing this keyword:
Note: You can click on the numbers to jump directly to the posts that reference this page.
The following projects include source code containing this keyword: