pivot_sprite_v_flip_trans(3)

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

✨ pivot_sprite_v_flip_trans(3) ✨

okay bestie, buckle up, we're doing Allegro manual things today πŸ’– this one lives in the pivot_sprite_v_flip_trans page, and it's a genuine banger for anyone doing the whole "Allegro game programming library" thing πŸŽ€


🌸 NAME 🌸

pivot_sprite_v_flip_trans β€” rotates and flips a sprite around a specified point. literally the Allegro game programming library doing the most for you 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

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

πŸ’… DESCRIPTION πŸ’…

so it's giving rotate_sprite_v_flip_trans(), but with a lil pivot moment ✨ what it does is: it aligns the point inside the sprite given by (cx, cy) to (x, y) over in the bitmap, and then it rotates around that point. no cap, that's the whole vibe. πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the tea, bestie πŸ“ this was Allegro, version 4.4.3, page pivot_sprite_v_flip_trans(3) β€” go forth and pivot your sprites, you absolute icon πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from