Wiki Page Content

Differences between revisions 3 and 4
Revision 3 as of 2010-07-21 03:51:59
Size: 1163
Editor: SheenaSmith
Comment: update content (w/ Sam)
Revision 4 as of 2010-07-21 03:53:13
Size: 1131
Editor: SheenaSmith
Comment: remove 'draft' note
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 34: Line 33:
 .[[SDL_QuitSubSystem]]

SDL_InitSubSystem

Use this function to initialize specific SDL subsystems.

Syntax

int SDL_InitSubSystem(Uint32 flags)

Function Parameters

flags

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

Return Value

Returns 0 on success, or a negative error code on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

These are the flags which may be passed to SDL_InitSubSystem() and may be OR'd together to initialize multiple subsystems simultaneously.

Include: Nothing found for "== Return Value =="!

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

SDL_Init() initializes assertions and crash protection and then calls SDL_InitSubSystem(). If you want to bypass those protections you can call SDL_InitSubSystem() directly.


CategoryAPI, CategoryInit

None: SDL_InitSubSystem (last edited 2015-01-02 21:29:27 by PhilippWiesemann)

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