save_pcx(3)

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

πŸ’Ύ save_pcx(3) β€” the Allegro manual, but make it cute ✨

okay bestie, gather round, we're talking about save_pcx from the Allegro game programming library, section 3 of the manual, and honestly? she's a whole vibe. πŸ’…


🌸 NAME 🌸

save_pcx β€” saves a bitmap into a PCX file. Allegro game programming library. periodt. πŸŽ€


✨ SYNOPSIS ✨

#include <allegro.h>

int save_pcx(const char *filename, BITMAP *bmp, const RGB *pal);

like, that's the whole summoning circle right there. πŸ•―οΈ


πŸ’– DESCRIPTION πŸ’–

so what she does is: she writes a bitmap into a PCX file. that's it. that's the girl. πŸ‘‘

and not just any PCX, bestie β€” she writes it as a 256-color PCX or a 24-bit truecolor PCX. two whole formats, one iconic function. she contains multitudes. 🌈


🫢 RETURN VALUE 🫢

she returns non-zero on error. so like, zero = we slayed, non-zero = something went tf wrong. πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

her sibling, her ride or die, the other girl in the friend group. go say hi. πŸ’œ


that's the whole page, no cap. mwah. πŸ’‹

signing off from Allegro version 4.4.3 β€” she's an older queen but she still eats. πŸ‘‘βœ¨

πŸ“¦ where this page comes from