al_draw_bitmap_region(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ¦‹ 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 x
  • sy β€” source y
  • sw β€” source width (width of region to blit)
  • sh β€” source height (height of region to blit)
  • dx β€” destination x
  • dy β€” destination y
  • flags β€” same as for al_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 πŸ‘‘

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