---
name: "rotate_sprite_v_flip_trans"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rotate_sprite_v_flip_trans"
---

# rotate\_sprite\_v\_flip\_trans(3alleg4)

Rotates and flips a sprite. Allegro game programming library.

## NAME

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

## SYNOPSIS

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

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

## DESCRIPTION

Like rotate\_sprite\_trans, 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\_trans**(3alleg4), **rotate\_scaled\_sprite\_v\_flip\_trans**(3alleg4), **pivot\_sprite\_v\_flip\_trans**(3alleg4), **pivot\_scaled\_sprite\_v\_flip\_trans**(3alleg4), **exsprite**(3alleg4)
