Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

draw_sprite_v_flip(3alleg4) [opendarwin man page]

draw_sprite_v_flip(3alleg4)					  Allegro manual				       draw_sprite_v_flip(3alleg4)

NAME
draw_sprite_v_flip, draw_sprite_h_flip, draw_sprite_vh_flip - Draws the sprite transformed to the destination bitmap. Allegro game program- ming 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 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: 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(3alleg4), bitmap_mask_color(3alleg4), exsprite(3alleg4) Allegro version 4.4.2 draw_sprite_v_flip(3alleg4)

Check Out this Related Man Page

draw_sprite_v_flip(3alleg4)					  Allegro manual				       draw_sprite_v_flip(3alleg4)

NAME
draw_sprite_v_flip, draw_sprite_h_flip, draw_sprite_vh_flip - Draws the sprite transformed to the destination bitmap. Allegro game program- ming 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 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: 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(3alleg4), bitmap_mask_color(3alleg4), exsprite(3alleg4) Allegro version 4.4.2 draw_sprite_v_flip(3alleg4)
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Shopt -s histappend

What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file. # When the shell exits, append to the history file instead of overwriting it shopt -s histappend (3 Replies)
Discussion started by: cokedude
3 Replies

2. OS X (Apple)

Undeletable file

Greetings, I'm trying to delete a file with a weird name from within Terminal on a Mac. It's a very old file (1992) with null characters in the name: ␀␀Word Finder® Plus™. Here are some examples of what I've tried: 12FX009:5 dpontius$ ls ␀␀Word Finder® Plus™ 12FX009:5 dpontius$ rm... (29 Replies)
Discussion started by: dpontius
29 Replies

Featured Tech Videos