pivot_scaled_sprite(3alleg4)
β¨ pivot_scaled_sprite β¨
okay bestie, gather round, because we're doing Allegro manual page pivot_scaled_sprite from section 3alleg4 and it's literally the moment your sprite stops being a flat little rectangle and starts having main character energy π
πΈ NAME πΈ
pivot_scaled_sprite β rotates and stretches a sprite around a specified point. it's from the Allegro game programming library, no cap π
π¦ SYNOPSIS π¦
#include <allegro.h>
void pivot_scaled_sprite(BITMAP *bmp, BITMAP *sprite, int x, int y, int
cx, int cy, fixed angle, fixed scale);
look at her. eight whole arguments. she's high maintenance and she knows it π
π DESCRIPTION π
so, imagine rotate_scaled_sprite() β yeah, her cousin β but with a glow-up.
What this one does: it takes the point inside the sprite that you picked out with (cx, cy), and it lines that point up with (x, y) in the bitmap. Then it rotates and scales around that point. Around the pivot. Around the chosen one. π«Ά
that's it. that's the whole vibe. rotate + scale + pinned to a point you actually care about instead of the boring default corner. periodt π
π SEE ALSO π
rotate_sprite(3alleg4)rotate_scaled_sprite(3alleg4)pivot_sprite(3alleg4)pivot_scaled_sprite_v_flip(3alleg4)
k bye, this page came to you straight from the Allegro manual, version 4.4.3, filed under pivot_scaled_sprite(3alleg4) β go make something spin, bestie πβ¨π
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms