al_draw_bitmap_region(3)
π¦ al_draw_bitmap_region(3) π¦
okay so bestie, this is the Allegro reference manual / Allegro 5 API page for al_draw_bitmap_region, and itβs literally giving βdraw a little region from one bitmap onto the target bitmapβ energy π
β¨
πΈ NAME πΈ
al_draw_bitmap_region β Allegro 5 API. Thatβs the whole name, no cap π«Ά
β¨ SYNOPSIS β¨
first, the include and the function signature, exactly as they live:
#include <allegro5/allegro.h>
void al_draw_bitmap_region(ALLEGRO_BITMAP *bitmap,
float sx, float sy, float sw, float sh, float dx, float dy, int flags)
π DESCRIPTION π
Draws a region of the given bitmap to the target bitmap. Translation: youβre taking a rectangle out of one bitmap and drawing it onto the target bitmap. iconic behavior π₯
sxβ source xsyβ source yswβ source width (width of region to blit)shβ source height (height of region to blit)dxβ destination xdyβ destination yflagsβ same as foral_draw_bitmap(3)
π¨ important bestie note: see al_draw_bitmap(3) for a note on restrictions on which bitmaps can be drawn where. Donβt skip it, fr fr β itβs literally right there π
π SEE ALSO π
al_draw_bitmap(3)al_draw_scaled_bitmap(3)al_draw_rotated_bitmap(3)al_draw_scaled_rotated_bitmap(3)
go read these too, iykyk π«Ά
bye bestie πβ¨ β source/version is the Allegro reference manual, the date slot on the original footer is literally not printed here π, and al_draw_bitmap_region(3) is out. ππ¦
π¦ 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