![]() |
![]()
| ![]() |
![]()
NAMEdraw_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); DESCRIPTIONThese are like draw_sprite(), but they additionally flip the image vertically, 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 produces 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:
SEE ALSOdraw_sprite(3), bitmap_mask_color(3), exsprite(3)
|