Wiki Page Content

Differences between revisions 3 and 4
Revision 3 as of 2010-07-21 04:02:02
Size: 1011
Editor: SheenaSmith
Comment: remove 'draft' note
Revision 4 as of 2010-08-03 20:40:08
Size: 1012
Editor: SheenaSmith
Comment: temp repair of include (waiting for final SDL_Init)
Deletions are marked like this. Additions are marked like this.
Line 27: Line 27:
<<Include(SDL_Init, , , from="OR'd together.", to="== Return Value ==")>> <<Include(SDL_Init, , , from="OR'd together.", to="This function loads")>>

SDL_WasInit

Use this function to return a mask of the specified subsystems which have previously been initialized.

Syntax

Uint32 SDL_WasInit(Uint32 flags)

Function Parameters

flags

any of the flags used by SDL_Init(); see Remarks for details

Return Value

If flags is 0 it returns a mask of all initialized subsystems, otherwise it returns the initialization status of the specified subsystems.

Code Examples

You can add your code example here

Remarks

These are the flags which may be passed to SDL_WasInit() and may be OR'd together to query multiple, specific subsystems simultaneously.

Include: Nothing found for "This function loads"!

SDL_INIT_TIMER

timer subsystem

SDL_INIT_AUDIO

audio subsystem

SDL_INIT_VIDEO

video subsystem; automatically initializes the events subsystem

SDL_INIT_JOYSTICK

joystick subsystem; automatically initializes the events subsystem

SDL_INIT_HAPTIC

haptic (force feedback) subsystem

SDL_INIT_GAMECONTROLLER

controller subsystem; automatically initializes the joystick subsystem

SDL_INIT_EVENTS

events subsystem

SDL_INIT_EVERYTHING

all of the above subsystems

SDL_INIT_NOPARACHUTE

compatibility; this flag is ignored

If you want to initialize subsystems separately you would call SDL_Init(0) followed by SDL_InitSubSystem() with the desired subsystem flag.

Related Functions


CategoryAPI, CategoryInit


CategoryAPI, CategoryInit

None: SDL_WasInit (last edited 2016-05-14 22:29:46 by PhilippWiesemann)

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