rotate_scaled_sprite(3)

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

πŸ’« rotate_scaled_sprite(3) πŸ’«

okay bestie, welcome to the Allegro manual β€” this one's called rotate_scaled_sprite and she does exactly what it says on the tin: rotates and stretches a sprite. iconic behavior honestly πŸŽ€


✨ NAME ✨

rotate_scaled_sprite β€” rotates and stretches a sprite. it's part of the Allegro game programming library, and yes she's serving main character energy fr fr πŸ¦‹


🌸 SYNOPSIS 🌸

#include <allegro.h>

void rotate_scaled_sprite(BITMAP *bmp, BITMAP *sprite, int x, int y,
fixed angle, fixed scale);

no cap, that's the whole signature. keep it exact, bestie πŸ’…


🧚 DESCRIPTION 🧚

so like… it's giving rotate_sprite(), right? but β€” and this is the important part β€” she also stretches or shrinks the image at the same time as she rotates it. two jobs, one function, she ate and left no crumbs 😭✨


πŸ’– SEE ALSO πŸ’–

go read those too, they're all in the same friend group 🫢


lowkey a whole squad of sprite-transforming besties, and you just met the one who does rotation and scaling together. obsessed. πŸ“

Allegro version 4.4.3 🌈 β€” and that's the vibe check, we're done here. mwah, go render something cute πŸ’œπŸŽ€β­

πŸ“¦ where this page comes from