|
Size: 1876
Comment: ToC test
|
Size: 2118
Comment: add introduction content
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 12: | Line 12: |
| This is the main include header for the SDL library. |
|
| Line 14: | Line 16: |
| <<Color2(green, Do you want a ToC on these pages now that there is more content than just the functions or will the intro material be so short that it is not necessary? Would probably be better if page title isn't in ToC)>> | <<Color2(green, Do you want a ToC on these pages now that there is more content than just the functions or will the intro material be so short that it is not necessary? This page shows the heading size differences to choose from. Also possible alternative wording for headings - not so sure of those. Need to use two intro headings because this has separate init and shut down sections in one header?)>> |
| Line 20: | Line 22: |
| Line 30: | Line 33: |
| (header to be used w/ ToC) | (header to be used w/ ToC) |
DRAFT |
green
Initialization & Shutdown (SDL.h)
Initialization & Shutdown (SDL.h)
This is the main include header for the SDL library.
Functions in this category are used to set up SDL 1.3 for use and generally have global effects in your program.
green
Contents
Introduction to Initialization
(header to be used w/ ToC)
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
(header to be used w/ ToC)
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
