pivot_scaled_sprite_lit(3)

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

πŸ’– NAME πŸ’–

pivot_scaled_sprite_lit is literally the function that rotates and stretches a sprite around a specified point, bestie. It lives in the Allegro game programming library, and yes, it's iconic. πŸŽ€

✨ SYNOPSIS ✨

#include <allegro.h>

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

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so think of rotate_scaled_sprite_lit(), but with a little extra pivot magic: this one aligns the point inside the sprite given by (cx, cy) to (x, y) in the bitmap, and then rotates and scales around that exact point. The way it just... does both? Obsessed. πŸ’…

🌈 SEE ALSO 🌈


This page is from the Allegro manual, version 4.4.3, and it's the pivot_scaled_sprite_lit(3) page. Mwah πŸ’‹ stay slay, bestie.

πŸ“¦ where this page comes from