al_clear_to_color(3alleg5)
hey bestie, welcome to the al_clear_to_color(3alleg5) manual page β Allegro 5 API. it's giving "wipe the canvas" energy, but make it Allegro. π
β¨ NAME β¨
al_clear_to_color β Allegro 5 API. no cap, that's the whole name section. π
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
void al_clear_to_color(ALLEGRO_COLOR color)
yes, no semicolon in the synopsis, bestie. we copy the manpage exactly. don't come for me. π
β¨ DESCRIPTION β¨
So al_clear_to_color clears the complete target bitmap β the whole thing β but it's confined by the clipping rectangle. π«Ά
That means the clipping rectangle is the vibe check: the clear happens inside its boundaries. The target bitmap gets cleared, but the clipping rectangle has main character energy and keeps it contained. π
The function takes an ALLEGRO_COLOR color, and it's literally called al_clear_to_color, so you already know the assignment. β¨
β¨ SEE ALSO β¨
ALLEGRO_COLOR(3alleg5)β the color type in the signature, go say hi. πal_set_clipping_rectangle(3alleg5)β the clipping rectangle that confines the clear. π₯al_clear_depth_buffer(3alleg5)β another clear function, because sometimes you gotta clear the depth buffer too. π
source/version check: this was the Allegro reference manual, page al_clear_to_color(3alleg5), Allegro 5 API. date? the original footer didn't give one, so we're lowkey timeless β no cap. πβ¨
π¦ 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