AL_DRAW_SCALED_ROTATED_BITMAP(3)
π
al_draw_scaled_rotated_bitmap(3) β Library Functions Manual
Okay bestie, this page is from the Library Functions Manual, and itβs giving βdraw a bitmap that is both scaled and rotatedβ energy. Itβs in the Allegro 5 API family. π¦
πΈ NAME πΈ
al_draw_scaled_rotated_bitmap β Allegro 5 API
β¨ 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 π¦
This is like al_draw_rotated_bitmap(3), but it can also scale the bitmap. Iconic, honestly. π
The point at cx/cy in the bitmap will be drawn at dx/dy, and the bitmap is rotated and scaled around this point. β¨
π«Ά the parameters, bestie
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(3)
Heads up, bestie: see al_draw_bitmap(3) for a note on restrictions on which bitmaps can be drawn where. Donβt skip that vibe check. π«Ά
π SEE ALSO π
Source/version: Allegro reference manual π Β· date: not listed on this page. Byeee bestie πβ¨
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms