draw_sprite_vh_flip man page on DragonFly

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

draw_sprite_v_flip(3)		Allegro manual		 draw_sprite_v_flip(3)

NAME
       draw_sprite_v_flip, draw_sprite_h_flip, draw_sprite_vh_flip - Draws the
       sprite transformed to the destination bitmap. Allegro game  programming
       library.

SYNOPSIS
       #include <allegro.h>

       void draw_sprite_v_flip(BITMAP *bmp, BITMAP *sprite, int x, int y);

       void draw_sprite_h_flip(BITMAP *bmp, BITMAP *sprite, int x, int y);

       void draw_sprite_vh_flip(BITMAP *bmp, BITMAP *sprite, int x, int y);

DESCRIPTION
       These are like draw_sprite(), but they additionally flip the image ver‐
       tically, horizontally, or both, respectively. Flipping vertically means
       that the y-axis is reversed, while flipping horizontally means that the
       x-axis is reversed, between the source and the destination.  This  pro‐
       duces exact mirror images, which is not the same as rotating the sprite
       (and it is a lot faster than the rotation routine). The sprite must  be
       a memory bitmap. Example:

	  if (key[KEY_RIGHT])
	     draw_sprite(screen, hero_right, pos_x, pos_y);
	  else if (key[KEY_LEFT])
	     draw_sprite_h_flip(screen, hero_right, pos_x, pos_y);
	  else
	     draw_sprite(screen, hero_idle, pos_x, pos_y);

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

Allegro				 version 4.4.2		 draw_sprite_v_flip(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