pivot_scaled_sprite_lit(3)
π NAME π
pivot_scaled_sprite_lit is literally the function that rotates and stretches a sprite around a specified point, bestie. It lives in the Allegro game programming library, and yes, it's iconic. π
β¨ SYNOPSIS β¨
#include <allegro.h>
void pivot_scaled_sprite_lit(BITMAP *bmp, BITMAP *sprite, int x, int y,
int cx, int cy, fixed angle, fixed scale);
π¦ DESCRIPTION π¦
Okay so think of rotate_scaled_sprite_lit(), but with a little extra pivot magic: this one aligns the point inside the sprite given by (cx, cy) to (x, y) in the bitmap, and then rotates and scales around that exact point. The way it just... does both? Obsessed. π
π SEE ALSO π
rotate_sprite_lit(3)rotate_scaled_sprite_lit(3)pivot_sprite_lit(3)pivot_scaled_sprite_v_flip_lit(3)
This page is from the Allegro manual, version 4.4.3, and it's the pivot_scaled_sprite_lit(3) page. Mwah π stay slay, bestie.
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms