al_draw_tinte...otated_bitmap(3alleg5)
π 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 π
al_draw_tinted_bitmap(3alleg5)β the shorter version of this vibe, if you don't need the scale + rotate β¨
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
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms