save_tga(3)

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

πŸ’– 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 🌈


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