add_clip_rect(3)
π add_clip_rect(3) π
okay bestie, this is a page from the Allegro manual, and we are about to get so cozy with add_clip_rect. it's giving "clip rectangle, but make it intersection." π
πΈ NAME πΈ
add_clip_rect β intersects a bitmap's clipping rectangle with the given area. Allegro game programming library.
β¨ SYNOPSIS β¨
#include <allegro.h>
void add_clip_rect(BITMAP *bitmap, int x1, int y1, int x2, int y2);
π¦ DESCRIPTION π¦
So, the way that this works is: you hand it a bitmap, and it sets that bitmap's clipping rectangle to the intersection of
- its current clipping rectangle, and
- the rectangle described by the four coordinates
x1,y1,x2, andy2.
Like, the new clipping rectangle is the overlap of what was already clipping the bitmap and the rectangle you just described. That's it, that's the function. iconic behavior, honestly. β¨
π SEE ALSO π
mwah π this has been the add_clip_rect(3) page from Allegro version 4.4.3. periodt. π
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms