---
name: "rotate_sprite_v_flip"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/rotate_sprite_v_flip"
---

# rotate\_sprite\_v\_flip(3alleg)

Rotates and flips a sprite. Allegro game programming library.

## NAME

rotate\_sprite\_v\_flip - Rotates and flips a sprite. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**void rotate\_sprite\_v\_flip(BITMAP \*bmp, BITMAP \*sprite, int x, int y, fixed angle);**

## DESCRIPTION

Like rotate\_sprite, but flips the image vertically before rotating it. To flip horizontally, use this routine but add itofix(128) to the angle. To flip in both directions, use rotate\_sprite() and add itofix(128) to its angle.

## SEE ALSO

[**rotate\_sprite**(3alleg)](/rotate_sprite/3alleg.md), [**rotate\_scaled\_sprite\_v\_flip**(3alleg)](/rotate_scaled_sprite_v_flip/3alleg.md), [**pivot\_sprite\_v\_flip**(3alleg)](/pivot_sprite_v_flip/3alleg.md), [**pivot\_scaled\_sprite\_v\_flip**(3alleg)](/pivot_scaled_sprite_v_flip/3alleg.md), [**exsprite**(3alleg)](/exsprite/3alleg.md)
