xor_mode(3alleg4)

✨ xor_mode ✨

okay bestie, welcome to xor_mode from the Allegro game programming library πŸ’– this one is tiny but it's literally iconic, iykyk.


🌸 SYNOPSIS 🌸

#include <allegro.h>

void xor_mode(int on);

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: this function is a shortcut for toggling xor drawing mode on and off. that's it. that's the whole thing. she's small but she's doing the most πŸ’…

like, if you're out here writing this:

xor_mode(TRUE);

that is equivalent to writing this:

drawing_mode(DRAW_MODE_XOR, NULL, 0, 0);

and if you're writing this:

xor_mode(FALSE);

that is equivalent to writing this:

drawing_mode(DRAW_MODE_SOLID, NULL, 0, 0);

no cap. same thing, way less typing, main character energy fr fr ✨


πŸŽ€ SEE ALSO πŸŽ€


go read drawing_mode(3alleg4) if you wanna know what's actually going on under the hood, because this function is literally just a lil wrapper and it knows it 🫢

okay that's the whole page bestie, short and sweet, Allegro version 4.4.3, mwah πŸ’‹ stay drawing xor, love u, bye πŸ¦‹πŸ’œ