---
name: "pivot_sprite_lit"
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/pivot_sprite_lit"
---

# pivot\_sprite\_lit(3alleg4)

Rotates a sprite around a specified point. Allegro game programming library.

## NAME

pivot\_sprite\_lit - Rotates a sprite around a specified point. Allegro game programming library.

## SYNOPSIS

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

**void pivot\_sprite\_lit(BITMAP \*bmp, BITMAP \*sprite, int x, int y,** **int cx, int cy, fixed angle);**

## DESCRIPTION

Like rotate\_sprite\_lit(), but aligns the point in the sprite given by (cx, cy) to (x, y) in the bitmap, then rotates around this point.

## SEE ALSO

**rotate\_sprite\_lit**(3alleg4), **pivot\_scaled\_sprite\_lit**(3alleg4), **pivot\_sprite\_v\_flip\_lit**(3alleg4), **exsprite**(3alleg4)
