Initializes specified subsystems.
Specifies what part(s) of SDL to initialize:
Flag | Description |
---|---|
SDL_INIT_TIMER | Initializes the timer subsystem. |
SDL_INIT_AUDIO | Initializes the audio subsystem. |
SDL_INIT_VIDEO | Initializes the video subsystem. |
SDL_INIT_CDROM | Initializes the CD-ROM subsystem. |
SDL_INIT_JOYSTICK | Initializes the joystick subsystem. |
SDL_INIT_EVERYTHING | Initializes all subsystems. |
SDL_INIT_NOPARACHUTE | Prevents SDL from catching fatal signals. |
SDL_INIT_EVENTTHREAD | Not supported on all OS's. |
Returns -1 on an error or 0 on success.
After SDL has been initialized with SDL_Init you may initialize any uninitialized subsystems with SDL_InitSubSystem.
Binds to C-function call in SDL.h:
extern DECLSPEC int SDLCALL SDL_InitSubSystem(Uint32 flags)
Sdl Class | Tao.Sdl Namespace | SDL_Init | SDL_Quit | SDL_QuitSubSystem