PIVOT_SPRITE_V_FLIP_LIT(3alleg4)

πŸ’– pivot_sprite_v_flip_lit β€” Allegro manual ✨

okay bestie, so we're in the Allegro manual, and today's main character is pivot_sprite_v_flip_lit. she rotates AND flips a sprite around a point you pick. yes, both. at the same time. it's giving multitasking icon. πŸ’…


🌸 NAME 🌸

pivot_sprite_v_flip_lit β€” rotates and flips a sprite around a specified point. it's from the Allegro game programming library, no cap. πŸ¦‹


✨ SYNOPSIS ✨

#include <allegro.h>

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

that's the whole signature, bestie. seven args. copy it exactly, don't freestyle. 😭


πŸŽ€ DESCRIPTION πŸŽ€

so it's like rotate_sprite_v_flip_lit(), but with a glow-up: instead of just spinning around the sprite's own thing, it takes the point in the sprite given by (cx, cy) and aligns it to (x, y) in the bitmap first. then it rotates around that point. πŸŒ€

basically: pin it, then spin it. the flip comes along for the ride. periodt. πŸ‘‘


🌈 SEE ALSO 🌈


reminder bestie: this is pivot_sprite_v_flip_lit, not pivot_sprite_lit. one letter difference, two whole behaviours. read the name, i'm begging. πŸ™ˆ

and that's the whole page!! Allegro, version 4.4.3 β€” like, that's the version, that's the source. mwah. πŸ’– slay, go rotate something. πŸŽ€βœ¨πŸ¦‹