table of contents
- experimental 3~git20241102~b1c8ec7+ds-1
IMG_Quit(3) | SDL_image3 FUNCTIONS | IMG_Quit(3) |
NAME¶
IMG_Quit - Deinitialize SDL_image.
HEADER FILE¶
Defined in SDL3_image/SDL_image.h
SYNOPSIS¶
#include "SDL3_image/SDL_image.h"
void IMG_Quit(void);
DESCRIPTION¶
This should be the last function you call in SDL_image, after freeing all other resources. This will unload any shared libraries it is using for various codecs.
After this call, a call to IMG_Init (0) will return 0 (no codecs loaded).
You can safely call IMG_Init () to reload various codec support after this call.
Unlike other SDL satellite libraries, calls to IMG_Init
do not stack; a single call to IMG_Quit () will deinitialize
everything and does not have to be paired with a matching IMG_Init
call. For that reason, it's considered best practices to have a single
IMG_Init
and IMG_Quit
call in your program. While this isn't required, be aware of the risks of
deviating from that behavior.
AVAILABILITY¶
This function is available since SDL_image 3.0.0.
SEE ALSO¶
•(3), IMG_Init(3)
SDL_image 3.1.0 | SDL_image |