|
Size: 1245
Comment: add introduction
|
Size: 1442
Comment: edit introduction
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 5: | Line 5: |
| ||<tablewidth="100%"style="color: rgb(255, 0, 0); text-align: center;">DRAFT || | |
| Line 10: | Line 11: |
Functions in this category are used to set up SDL 1.3 for use and generally have global effects in your program. |
DRAFT |
green
Initialization & Shutdown (SDL.h)
Initialization & Shutdown (SDL.h)
Functions in this category are used to set up SDL 1.3 for use and generally have global effects in your program.
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:
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.
Functions
