|
Size: 1412
Comment: update content - adjust init/shutdown title
|
Size: 1719
Comment: add search exclusions for SG pages
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 31: | Line 31: |
| ##Remove this line and the ## in front of the following if they become relevant to this category to activate them. ##== Enumerations == ##<<FullSearch(category:CategoryEnum CategoryInit -SGEnumerations)>> ##== Structures == ##<<FullSearch(category:CategoryStruct CategoryInit -SGStructures)>> |
|
| Line 32: | Line 39: |
<<FullSearchCached(category:CategoryInit -CategoryEnum -CategoryStruct)>> |
<<FullSearch(category:CategoryInit -CategoryEnum -CategoryStruct -SGFunctions)>> |
Initialization and Shutdown
Include File(s): SDL.h
Contents
Introduction
Functions in this category are used to set up SDL 1.3 for use and generally have global effects in your program.
Introduction to Initialization
To begin using SDL in your program SDL_Init() must be called to initialize subsystems and enable use of other SDL functions.
The Event Handling, File I/O, and Threading subsystems are initialized by default. To initialize other subsystems you must specifically call them. Multiple subsystems may be OR'd together. Example:
Introduction to Shut Down
SDL_Quit() should be called before an SDL application exits to shut down all subsystems, including the default ones.
It is not necessary to specify individual subsystems when using SDL_Quit(). It will automatically shut down all active subsystems.
