IMG_SaveTGA(3)
π 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β theSDL_Surfaceto 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 π
IMG_SaveTGA_IO(3)β the sibling page, go peek.
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
- fedora 43: SDL3_image-devel 3.4.8-1.fc43 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- fedora 43: SDL3_image-devel 3.4.8-1.fc43 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- fedora 44: SDL3_image-devel 3.4.8-1.fc44 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- fedora 44: SDL3_image-devel 3.4.8-1.fc44 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms