xor_mode(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ NAME ✨

xor_mode β€” bestie it's literally just a shortcut for flipping xor drawing mode on and off πŸ’… (also, hi, you're in the Allegro game programming library manual, welcome 🫢)


🌸 SYNOPSIS 🌸

#include <allegro.h>

void xor_mode(int on);

πŸ’– DESCRIPTION πŸ’–

okay so. this is a shortcut for toggling xor drawing mode on and off. that's it. that's the whole job. she's a tiny little convenience function and she is serving ✨

calling xor_mode(TRUE) is equivalent to:

drawing_mode(DRAW_MODE_XOR, NULL, 0, 0)

and calling xor_mode(FALSE) is equivalent to:

drawing_mode(DRAW_MODE_SOLID, NULL, 0, 0)

so like, instead of typing out the whole drawing_mode(...) situation every single time, you just yell TRUE or FALSE at this girl and she handles it. lowkey iconic. no cap. πŸŽ€

note bestie: TRUE = xor mode ON, FALSE = back to solid mode. don't get it twisted πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹


that's the whole page babes πŸ’œ this was the Allegro manual, version 4.4.3, and xor_mode(3) ate and left no crumbs. mwah πŸ’‹

πŸ“¦ where this page comes from