pivot_sprite_lit(3alleg4)

πŸŽ€ NAME πŸŽ€

okay so this is pivot_sprite_lit(3alleg4), straight out of the Allegro manual, bestie.

pivot_sprite_lit β€” rotates a sprite around a specified point. It's part of the Allegro game programming library. That's the whole vibe. πŸ’…


✨ SYNOPSIS ✨

Here's the exact incantation, no cap:

#include <allegro.h>

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

πŸ’– DESCRIPTION πŸ’–

Okay so this one is literally like rotate_sprite_lit() β€” same energy β€” but it does one extra iconic thing: it aligns the point in the sprite given by (cx, cy) to (x, y) in the bitmap, and then rotates around this point. Slay. πŸ¦‹


πŸ”₯ SEE ALSO πŸ”₯


Signing off from the Allegro manual, version 4.4.3, page pivot_sprite_lit(3alleg4). Mwah πŸ’…βœ¨