|
⇤ ← Revision 1 as of 2010-05-08 22:20:50
Size: 1054
Comment: create page, add content (Wed Mar 10 ver; changeset 4428)
|
Size: 1054
Comment: minor change
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 27: | Line 27: |
| ''You can add useful comments here'' |
|
| Line 31: | Line 29: |
''You can add useful comments here'' |
DRAFT |
SDL_InitSubSystem
Use this function to initialize specific SDL subsystems after SDL has already been initialized.
Contents
Syntax
int SDL_InitSubSystem(Uint32 flags)
Function Parameters
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
You can add useful comments here
