Wiki Page Content

Differences between revisions 17 and 18
Revision 17 as of 2011-11-14 04:41:51
Size: 1719
Editor: SheenaSmith
Comment: add search exclusions for SG pages
Revision 18 as of 2012-01-03 23:11:57
Size: 1737
Editor: SheenaSmith
Comment: cached searchs
Deletions are marked like this. Additions are marked like this.
Line 33: Line 33:
##<<FullSearch(category:CategoryEnum CategoryInit -SGEnumerations)>> ##<<FullSearchCached(category:CategoryEnum CategoryInit -SGEnumerations)>>
Line 36: Line 36:
##<<FullSearch(category:CategoryStruct CategoryInit -SGStructures)>> ##<<FullSearchCached(category:CategoryStruct CategoryInit -SGStructures)>>
Line 39: Line 39:
<<FullSearch(category:CategoryInit -CategoryEnum -CategoryStruct -SGFunctions)>> <<FullSearchCached(category:CategoryInit -CategoryEnum -CategoryStruct -SGFunctions)>>

Initialization and Shutdown

Include File(s): SDL.h

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.

  • {i} 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:

    • SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO);
    • Initializes the 3 default subsystems plus the Video and Audio subsystems.

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.

Functions


CategoryCategory

None: CategoryInit (last edited 2016-03-27 21:42:54 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit