al_draw_tinte...otated_bitmap(3alleg5)

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

πŸ’– al_draw_tinted_scaled_rotated_bitmap β€” Allegro 5 API πŸ’–

okay bestie, this one is the full combo meal of bitmap drawing and I'm obsessed πŸ“βœ¨ it's from the Allegro 5 API, and it does exactly what the name says: tint + scale + rotate, all in one iconic call πŸ‘‘


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

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

πŸ’… DESCRIPTION πŸ’…

So like… it's giving al_draw_scaled_rotated_bitmap(3alleg5), but make it tinted 🌈 β€” every single color in the bitmap gets multiplied by the color you pass in as tint. Literally every pixel, no cap.

🫢 heads up: for the tea on which bitmaps can actually be drawn where, go read the note in al_draw_bitmap(3alleg5). That restriction stuff applies here too, bestie.

πŸŽ€ SEE ALSO πŸŽ€


that's the whole page, periodt πŸ’œ take care of your bitmaps and they'll take care of you πŸ¦‹

Allegro reference manual 🌸 β€” written with love, logged under the al_draw_tinte...otated_bitmap(3alleg5) page name, same cute abbrev as the header up top πŸ’–

πŸ“¦ where this page comes from