PIVOT_SPRITE_V_FLIP_LIT(3alleg4)
π pivot_sprite_v_flip_lit β Allegro manual β¨
okay bestie, so we're in the Allegro manual, and today's main character is pivot_sprite_v_flip_lit. she rotates AND flips a sprite around a point you pick. yes, both. at the same time. it's giving multitasking icon. π
πΈ NAME πΈ
pivot_sprite_v_flip_lit β rotates and flips a sprite around a specified point. it's from the Allegro game programming library, no cap. π¦
β¨ SYNOPSIS β¨
#include <allegro.h>
void pivot_sprite_v_flip_lit(BITMAP *bmp, BITMAP *sprite, int x, int y,
int cx, int cy, fixed angle);
that's the whole signature, bestie. seven args. copy it exactly, don't freestyle. π
π DESCRIPTION π
so it's like rotate_sprite_v_flip_lit(), but with a glow-up: instead of just spinning around the sprite's own thing, it takes the point in the sprite given by (cx, cy) and aligns it to (x, y) in the bitmap first. then it rotates around that point. π
basically: pin it, then spin it. the flip comes along for the ride. periodt. π
π SEE ALSO π
rotate_sprite_lit(3alleg4)β the no-flip, no-pivot cousinrotate_sprite_v_flip_lit(3alleg4)β same energy, but rotating rather than pivotingpivot_sprite_lit(3alleg4)β pivoting, but no flipexsprite(3alleg4)β the example, go look at it, it's lowkey iconic
reminder bestie: this ispivot_sprite_v_flip_lit, notpivot_sprite_lit. one letter difference, two whole behaviours. read the name, i'm begging. π
and that's the whole page!! Allegro, version 4.4.3 β like, that's the version, that's the source. mwah. π slay, go rotate something. πβ¨π¦
π¦ 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