PIVOT_SCALED_SPRITE_V_FLIP_TRANS(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’… NAME πŸ’…

pivot_scaled_sprite_v_flip_trans β€” bestie, this one rotates, stretches AND flips a sprite around a point you pick. It's giving full glow-up choreography for your pixels. And yeah, it lives in the Allegro game programming library πŸŽ€


✨ SYNOPSIS ✨

#include <allegro.h>

void pivot_scaled_sprite_v_flip_trans(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_trans(), but with a plot twist πŸ‘€ β€” it lines up the point inside the sprite given by (cx, cy) with the point (x, y) over in the bitmap, and then it rotates and scales everything around that point. So the sprite is anchored exactly where you said, and the spin + stretch happen right there. Main character energy, no cap πŸ’–


🌸 SEE ALSO 🌸


k that's the whole page bestie, mwah πŸ’‹ This one's from the Allegro manual, version 4.4.3 β€” so if it's a little vintage, that's the vibe, slay πŸ«Άβœ¨πŸŽ€

πŸ“¦ where this page comes from