PIVOT_SCALED_SPRITE_LIT(3alleg4)
π pivot_scaled_sprite_lit β Allegro manual β¨
okay bestie, welcome to the Allegro manual, this one's from the 3alleg4 era and it's giving "rotate AND stretch, but make it anchored" π
πΈ NAME πΈ
pivot_scaled_sprite_lit β rotates and stretches a sprite around a specified point. Part of the Allegro game programming library, and yes it ate π
β¨ 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 π¦
So it's literally just like rotate_scaled_sprite_lit() β same energy, same vibe β BUT π₯ the plot twist is that it takes the point in the sprite given by (cx, cy) and aligns that exact point onto (x, y) in the bitmap. THEN it rotates and scales around that point. Periodt.
Think of it as: the sprite isn't spinning around its own corner, bestie, it's spinning around the spot you picked π§ and that spot stays glued to (x, y) the whole time. Iconic behaviour, no cap.
π SEE ALSO π
rotate_sprite_lit(3alleg4)β the lit rotate, no stretch, no pivot drama πrotate_scaled_sprite_lit(3alleg4)β rotate + scale, but no custom anchor point πpivot_sprite_lit(3alleg4)β the pivot version that skips the scaling πpivot_scaled_sprite_v_flip_lit(3alleg4)β same deal but flipped vertically, obsessed π
and that's the whole page, bestie π«Ά this was Allegro version 4.4.3, pivot_scaled_sprite_lit(3alleg4), mwah π go spin something pretty β
π¦ 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