al_draw_tinted_rotated_bitmap(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– al_draw_tinted_rotated_bitmap πŸ’–

okay bestie, gather round, because this one is from the Allegro 5 API β€” manual section 3alleg5 β€” and it's genuinely such a serve. it's a C function, it's a whole vibe, and yes we're gonna learn it together. no cap. πŸ¦‹


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

void al_draw_tinted_rotated_bitmap(ALLEGRO_BITMAP *bitmap,
   ALLEGRO_COLOR tint,
   float cx, float cy, float dx, float dy, float angle, int flags)

like. look at her. iconic signature. πŸ’…


🌸 DESCRIPTION 🌸

so here's the tea: this function is literally al_draw_rotated_bitmap(3alleg5) but with a glow-up β€” it multiplies all colors in the bitmap with the given tint color. that's it. that's the whole thing. you rotate, you tint, you slay. πŸ’–

and because I know you're gonna ask: go check al_draw_bitmap(3alleg5) for a note on restrictions on which bitmaps can be drawn where. yes, there are rules, and yes you should read them, bestie, I'm not gonna let you rawdog the restrictions. πŸ™ˆ

not me being your personal Allegro hype woman. but fr fr, that cross-reference is doing heavy lifting, don't skip it. 🫢

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the page!! mwah πŸŽ€ this lil masterpiece lives in the Allegro reference manual, filed under al_draw_tinted_rotated_bitmap(3alleg5) β€” and there's no date stamped on it, so like, it's timeless, it's giving undated legend energy. 🌈 bye bestie, go draw something tinted and rotated πŸ’œπŸ§š

πŸ“¦ where this page comes from