GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


Manpage of SDL_Quit

SDL_Quit

Index
 

NAME

SDL_Quit- Shut down SDL  

SYNOPSIS

fB#include "SDL&.h"

fBvoid fBSDL_QuitfPfR(fBvoidfR);  

DESCRIPTION

fBSDL_QuitfP 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 fBSDL_QuitfP as your fBatexitfP call, like:

f(CWSDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO);
atexit(SDL_Quit);
&.
&.fR

fBNote:

While using fBatexitfP maybe be fine for small programs, more advanced users should shut down SDL in their own cleanup code&. Plus, using fBatexitfP in a library is a sure way to crash dynamically loaded code

 

SEE ALSO

fIfBSDL_QuitSubsystemfPfR, fIfBSDL_InitfPfR


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO