|
Size: 198
Comment:
|
Size: 1245
Comment: add introduction
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 6: | Line 6: |
| <<Color2(green, Which header sizes are preferable? I'm partial to the larger 2)>> = Initialization & Shutdown (SDL.h) = |
|
| Line 7: | Line 10: |
__Initialization__<<BR>> To begin using SDL in your program [[SDL_Init]]() must be called to initialize subsystems and enable use of other SDL functions. {i} The [[CategoryEvents|Event Handling]], [[CategoryIO|File I/O]], and [[CategoryThread|Threading]] subsystems are initialized by default. To initialize other subsystems you must specifically call them. Multiple subsystems may be or'd together. . ''Example:'' . {{{ SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO); }}} . Initializes the 3 default subsystems plus the [[CategoryVideo|Video]] and [[CategoryAudio|Audio]] subsystems. __Shut Down__<<BR>> [[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 == === Functions === |
green
Initialization & Shutdown (SDL.h)
Initialization & Shutdown (SDL.h)
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
