save_tga(3)
π save_tga(3) π
okay bestie, so this one lives in the Allegro manual β the Allegro game programming library, iconic behavior fr fr β¨
πΈ NAME πΈ
save_tga β it saves a bitmap into a TGA file. literally that's the whole job. the Allegro game programming library's little gift to you π
β¨ SYNOPSIS β¨
#include <allegro.h>
int save_tga(const char *filename, BITMAP *bmp, const RGB *pal);
π¦ DESCRIPTION π¦
So like. You got a bitmap. You want it to be a TGA file. Bestie, save_tga is gonna make that happen π
It writes your bitmap out into a TGA file, and here's the vibe check on the formats it'll do:
- 256-color πΈ
- 15-bit hicolor β¨
- 24-bit truecolor π
- 32-bit truecolor+alpha π
no cap, that's four whole flavors and it just handles it. main character energy honestly π«Ά
π RETURN VALUE π
Returns non-zero on error. so like, zero = we ate, non-zero = something went wrong and we're crying in the group chat π
π SEE ALSO π
save_bitmap(3)β its sibling, go say hi π
okay that's the whole page bestie, slay β¨ this was the Allegro version 4.4.3 edition, and honestly? it ate. periodt π π¦πΈ
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms