SDL.h
Función SDL_QuitSubSystem
Sintaxis
void SDL_QuitSubSystem(Uint32 flags);
Descripción
Apaga el subsistema SDL especificado.
Parámetros
- flags
- Cualquiera de las banderas usadas por SDL_Init().
Valor de retorno
Devuelve 0 si tiene éxito o un código de error negativo si falla. Ver SDL_GetError.
Observaciones
Si se inicia un subsistema usando una llamada a la función init de ese subsistema (por ejemplo SDL_VideoInit()) en lugar de SDL_Init() o SDL_InitSubSystem(), SDL_QuitSubSystem() y SDL_WasInit() no funcionarán. En su lugar, se deberá utilizar directamente la función de salida de ese subsistema (SDL_VideoQuit()). Pero generalmente, no se deberían usar esas funciones directamente; es preferible usar SDL_Init() en su lugar.
Todavía se necesita llamar a SDL_Quit() incluso si se cierran todos los subsistemas abiertos con SDL_QuitSubSystem().