get_rle_sprite man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

get_rle_sprite(3)		Allegro manual		     get_rle_sprite(3)

NAME
       get_rle_sprite  - Creates an RLE sprite using a bitmap as source. Alle‐
       gro 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(3), destroy_rle_sprite(3)

Allegro				 version 4.4.2		     get_rle_sprite(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net