al_draw_scaled_rotated_bitmap(3alleg5)
β¨ NAME β¨
al_draw_scaled_rotated_bitmap β it's giving Allegro 5 API, bestie π
π SYNOPSIS π
#include <allegro5/allegro.h>
void al_draw_scaled_rotated_bitmap(ALLEGRO_BITMAP *bitmap,
float cx, float cy, float dx, float dy, float xscale, float yscale,
float angle, int flags)
πΈ DESCRIPTION πΈ
okay so picture al_draw_rotated_bitmap(3alleg5)β¦ but make it extra. This one rotates and scales your bitmap, no cap. Main character energy fr fr π₯
Here's the tea: the point at cx/cy inside the bitmap gets drawn at dx/dy, and the whole bitmap gets rotated and scaled around that point. So that one pixel is the anchor, the pivot, the moment. π
cxβ center xcyβ center ydxβ destination xdyβ destination yxscaleβ how much to scale on the x-axis (e.g.2for twice the size)yscaleβ how much to scale on the y-axisangleβ angle by which to rotate (radians)flagsβ same as foral_draw_bitmap(3alleg5)
heads up bestie π«Ά there's a note on restrictions on which bitmaps can be drawn where β go read al_draw_bitmap(3alleg5) for that one, it's important, don't skip it
π¦ SEE ALSO π¦
al_draw_bitmap(3alleg5)al_draw_bitmap_region(3alleg5)al_draw_scaled_bitmap(3alleg5)al_draw_rotated_bitmap(3alleg5)
okay that's the whole page, you ate it π this was the Allegro reference manual entry for al_draw_scaled_rotated_bitmap(3alleg5) β go forth and draw your little rotated scaled bitmaps, you're iconic πβ¨
π¦ 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