pivot_scaled_sprite_trans(3)
π« NAME π«
pivot_scaled_sprite_trans β rotates and stretches a sprite around a specified point, bestie. It's from the Allegro game programming library, and yes it's exactly as iconic as it sounds π
β¨ SYNOPSIS β¨
#include <allegro.h>
void pivot_scaled_sprite_trans(BITMAP *bmp, BITMAP *sprite, int x, int
y, int cx, int cy, fixed angle, fixed scale);
π DESCRIPTION π
okay so picture this: it's basically rotate_scaled_sprite_trans() but with a glow-up. πΈ
What it does is it takes the point in the sprite at (cx, cy) and lines it up with (x, y) in the bitmap. Then it rotates and scales around that point. Not around some random corner, not around the middle unless you make it the middle β around the point you picked. main character energy fr fr π
π¦ SEE ALSO π¦
rotate_sprite_trans(3)rotate_scaled_sprite_trans(3)pivot_sprite_trans(3)pivot_scaled_sprite_v_flip_trans(3)
mwah π that's the whole page, no notes. this little legend lives in the Allegro manual, version 4.4.3 β go forth and pivot your sprites around literally any point you want, 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