stretch_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]

stretch_sprite(3)		Allegro manual		     stretch_sprite(3)

NAME
       stretch_sprite  - Stretches a sprite to the destination bitmap. Allegro
       game programming library.

SYNOPSIS
       #include <allegro.h>

       void stretch_sprite(BITMAP *bmp, BITMAP *sprite, int x, int y,  int  w,
       int h);

DESCRIPTION
       Like draw_sprite(), except it can stretch the sprite image to the spec‐
       ified width and height and requires the sprite  image  and  destination
       bitmap  to  be of the same color depth. Moreover, the sprite image must
       be a memory bitmap. Example:

	  /* Create tunnel like effect. */
	  for (step = 1; step
	     int width = SCREEN_W / step;
	     int height = SCREEN_H / step;
	     stretch_sprite(screen, image, SCREEN_W / 2 - width / 2,
			    SCREEN_H / 2 - height / 2, width, height);
	  }

SEE ALSO
       draw_sprite(3), stretch_blit(3), bitmap_mask_color(3)

Allegro				 version 4.4.2		     stretch_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