pivot_sprite_v_flip(3)

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

✨ pivot_sprite_v_flip(3) ✨

okay so bestie, welcome to the Allegro manual πŸ’– this one's a little baby page but it's lowkey iconic, so let's get into it πŸŽ€


🌸 NAME 🌸

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


🌈 SYNOPSIS 🌈

#include <allegro.h>

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

like yes, that's the whole vibe ✨


πŸ’… DESCRIPTION πŸ’…

so basically it's exactly like rotate_sprite_v_flip(), bestie, but with a glow-up: it aligns the point in the sprite given by (cx, cy) to (x, y) in the bitmap, and then rotates around this point. periodt. πŸ‘‘

so you're picking a point on your sprite, gluing it onto a spot on the bitmap, and then spinning around that exact spot. main character energy fr fr πŸ”₯


🫢 SEE ALSO 🫢


and that's the whole page, angel πŸ’– this was Allegro version 4.4.3, mwah, go make something gorgeous with it πŸŒŸπŸŽ€

πŸ“¦ where this page comes from