osx man page for get_rle_sprite

Query: get_rle_sprite

OS: osx

Section: 3alleg4

Links: osx man pages   all man pages

Forums: unix linux community   forum categories

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

get_rle_sprite(3alleg4) 					  Allegro manual					   get_rle_sprite(3alleg4)

NAME
get_rle_sprite - Creates an RLE sprite using a bitmap as source. Allegro game programming library. SYNOPSIS
#include <allegro.h> RLE_SPRITE *get_rle_sprite(BITMAP *bitmap); DESCRIPTION
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 leaks. Example: RLE_SPRITE *rle; BITMAP *bmp; ... /* Create RLE sprite from an existent bitmap. */ rle = get_rle_sprite(bmp); if (!rle) abort_on_error("Couldn't create RLE sprite!"); /* We don't need the bitmap any more.*/ destroy_bitmap(bmp); /* Use the RLE sprite. */ ... /* Destroy it when we don't need it any more. */ destroy_rle_sprite(rle); RETURN VALUE
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 memory leaks. SEE ALSO
draw_rle_sprite(3alleg4), destroy_rle_sprite(3alleg4) Allegro version 4.4.2 get_rle_sprite(3alleg4)
Related Man Pages
draw_lit_rle_sprite(3alleg4) - debian
draw_trans_rle_sprite(3alleg4) - suse
get_compiled_sprite(3alleg4) - php
get_compiled_sprite(3alleg4) - osx
draw_trans_rle_sprite(3alleg4) - osx
Similar Topics in the Unix Linux Community
When is a _function_ not a _function_?
Shopt -s histappend
To print diamond asterisk pattern based on inputs
A dash to GOTO or a dash from GOTO, that is the question...