pivot_scaled_sprite(3)

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

✨ NAME ✨

okay so bestie, this is pivot_scaled_sprite(3) from the Allegro manual. It rotates and stretches a sprite around a specified point. Yep, it's the Allegro game programming library, and this function is lowkey iconic for making sprites spin and scale around a pivot. πŸ’…βœ¨

🌸 SYNOPSIS 🌸

#include <allegro.h>

void pivot_scaled_sprite(BITMAP *bmp, BITMAP *sprite, int x, int y, int
       cx, int cy, fixed angle, fixed scale);

πŸ’– DESCRIPTION πŸ’–

It's giving rotate_scaled_sprite(), but with a pivot moment. The point in the sprite given by (cx, cy) gets aligned to (x, y) in the bitmap, and then it rotates and scales around this point. Periodt. πŸ¦‹πŸŽ€

πŸ‘‘ SEE ALSO πŸ‘‘

go check these out, bestie, iykyk. πŸ’œ


Allegro version 4.4.3 β€” pivot_scaled_sprite(3) β€” and the footer didn't print a date, so that's the whole sign-off. πŸ’–βœ¨

πŸ“¦ where this page comes from