PIVOT_SCALED_SPRITE_V_FLIP(3alleg4)
β¨ NAME β¨
pivot_scaled_sprite_v_flip β rotates, stretches and flips a sprite around a specified point. It's the Allegro game programming library, bestie π
π¦ SYNOPSIS π¦
#include <allegro.h>
void pivot_scaled_sprite_v_flip(BITMAP *bmp, BITMAP *sprite, int x, int
y, int cx, int cy, fixed angle, fixed scale);
πΈ DESCRIPTION πΈ
okay so picture this: it's literally rotate_scaled_sprite_v_flip(), right? Same energy. But with one lil glow-up: it takes the point in the sprite that you point at with (cx, cy) and lines it up with (x, y) in the bitmap β like a little anchor, a main character pinned in place π
And then, from that exact point, it rotates and scales. The pivot is the vibe. Everything spins and stretches around it. Periodt. π
π SEE ALSO π
rotate_sprite(3alleg4)rotate_scaled_sprite_v_flip(3alleg4)rotate_sprite_v_flip(3alleg4)pivot_sprite(3alleg4)pivot_scaled_sprite(3alleg4)
and that's the whole page, no cap π«Ά this was Allegro, version 4.4.3, living in the manual as <code>pivot_scaled_sprite_v_flip(3alleg4)</code> β go forth and pivot your sprites, icon πβ¨
π¦ 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