save_tga(3alleg4)
β¨ save_tga β¨
okay so bestie, we're in the Allegro manual, and today's main character is save_tga β she saves a bitmap into a TGA file. that's it, that's the vibe. π
πΈ NAME πΈ
save_tga β saves a bitmap into a TGA file. part of the Allegro game programming library, iykyk. π
π¦ SYNOPSIS π¦
#include <allegro.h>
int save_tga(const char *filename, BITMAP *bmp, const RGB *pal);
like, three args, no drama. we love a low-maintenance queen. π
π DESCRIPTION π
so here's the tea: save_tga writes a bitmap into a TGA file. and not just any TGA file β she's flexible, she's versatile, she's giving range. π
the file she writes can be any of these, no cap:
- 256-color
- 15-bit hicolor
- 24-bit truecolor
- 32-bit truecolor+alpha
literally obsessed with her for that. pick your format, she'll handle it. β¨
β RETURN VALUE β
returns non-zero on error. so like, if you get anything that isn't zero, that's your sign something went off. zero is the slay outcome. πβ‘οΈπ
π SEE ALSO π
save_bitmap(3alleg4) β her sister, also iconic, go say hi π«Ά
and that's the whole page, bestie! this was Allegro version 4.4.3, manual section 3alleg4, and the page is literally called save_tga. mwah. go forth and save those TGAs. ππΈβ¨
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms