|
⇤ ← Revision 1 as of 2010-05-09 06:28:43
Size: 1138
Comment: create page, add content (Wed Mar 10 ver; changeset 4428)
|
Size: 1068
Comment: update content (w/ Sam); remove 'draft' note
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 6: | Line 6: |
| Use this function to return ^a^ mask of the specified subsystems which have ^previously^ been initialized. | Use this function to return a mask of the specified subsystems which have previously been initialized. |
| Line 19: | Line 19: |
| If flags is 0, it returns a mask of all initialized subsystems. <<Color2(green,Otherwise it returns the initialization status of the specified subsystems. ?????)>> | If flags is 0 it returns a mask of all initialized subsystems, otherwise it returns the initialization status of the specified subsystems. |
| Line 30: | Line 30: |
| ''You can add useful comments here'' |
DRAFT |
SDL_WasInit
Use this function to return a mask of the specified subsystems which have previously been initialized.
Contents
Syntax
Uint32 SDL_WasInit(Uint32 flags)
Function Parameters
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 "== 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
