PIVOT_SCALED_SPRITE_V_FLIP_LIT(3alleg4)
π pivot_scaled_sprite_v_flip_lit π
okay so bestie, we're in the Allegro manual, specifically the pivot_scal...v_flip_lit(3alleg4) page, and this one is chef's kiss for anyone doing sprite gymnastics in the Allegro game programming library. pull up a chair, we're rotating, stretching AND flipping. yes, all three. at once. main character energy fr fr. β¨
π NAME π
pivot_scaled_sprite_v_flip_lit β rotates, stretches and flips a sprite around a specified point. Allegro game programming library. π
πΈ SYNOPSIS πΈ
#include <allegro.h>
void pivot_scaled_sprite_v_flip_lit(BITMAP *bmp, BITMAP *sprite, int x,
int y, int cx, int cy, fixed angle, fixed scale);
π¦ DESCRIPTION π¦
so like, this is rotate_scaled_sprite_v_flip_lit()'s cousin, except it's giving pivot. π«Ά
it takes the point in the sprite that you tell it about β that's the (cx, cy) bestie β and lines it up exactly onto (x, y) in the bitmap. then, and only then, does it rotate and scale everything around that point. so the sprite spins and stretches around your chosen anchor instead of around some random default spot. iconic behaviour honestly. π
π SEE ALSO π
rotate_sprite_lit(3alleg4)rotate_scaled_sprite_v_flip_lit(3alleg4)rotate_sprite_v_flip_lit(3alleg4)pivot_sprite_lit(3alleg4)pivot_scaled_sprite_lit(3alleg4)
and that's the whole page bestie, no cap. π this was pivot_scal...v_flip_lit(3alleg4) from the Allegro manual, version 4.4.3. go forth and pivot ur little heart out. πβπ
π¦ 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