SDL_Quit
Section: SDL API Reference (3)Updated: Tue 11 Sep 2001, 23:00
Index Return to Main Contents
NAME
SDL_Quit - Shut down SDLSYNOPSIS
#include "SDL.h"
DESCRIPTION
SDL_Quit shuts down all SDL subsystems and frees the resources allocated to them. This should always be called before you exit. For the sake of simplicity you can set SDL_Quit as your atexit call, like:
SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO); atexit(SDL_Quit); . .
-
Note:
While using atexit maybe be fine for small programs, more advanced users should shut down SDL in their own cleanup code. Plus, using atexit in a library is a sure way to crash dynamically loaded code
SEE ALSO
SDL_QuitSubsystem, SDL_Init
Index
This document was created by man2html, using the manual pages.
Time: 04:45:39 GMT, September 16, 2022
0 댓글