IMG_SaveTGA(3)

πŸ“¦
version 3.4.8 Β· 5 versions
, in fedora 43, fedora 44

πŸ’… IMG_SaveTGA(3) β€” SDL_image3 FUNCTIONS πŸ’…

okay so bestie, welcome to the IMG_SaveTGA(3) page from the SDL_image3 FUNCTIONS manual. this function is literally here to save your SDL_Surface into a TGA image file, and it's giving "art kid but make it file I/O." let's get into it.


✨ NAME ✨

IMG_SaveTGA β€” save an SDL_Surface into a TGA image file. periodt.

πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3_image/SDL_image.h>

bool IMG_SaveTGA(SDL_Surface *surface, const char *file);

🌸 DESCRIPTION 🌸

if the file already exists? yeah, it will be overwritten. it just gets replaced, no cap. πŸ’€

🫢 FUNCTION PARAMETERS 🫢

  • surface β€” the SDL_Surface to save. this is the thing you're sending to TGA land.
  • file β€” path on the filesystem to write new file to. basically, where the new file should go, bestie.

πŸ’– RETURN VALUE πŸ’–

Returns true on success or false on failure; call SDL_GetError() for more information.

πŸ”₯ AVAILABILITY πŸ”₯

This function is available since SDL_image 3.4.0. that's the earliest it's been around, so now you know. ✨

🌈 SEE ALSO 🌈


this page is brought to you by SDL_image, version SDL_image 3.4.8, and it's the IMG_SaveTGA(3) manual page. the footer has no date, so no made-up date from me β€” we keep it factual, bestie. mwah πŸ’‹πŸ’…βœ¨

πŸ“¦ where this page comes from