Initializes SDL and the 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.
Unless the SDL_INIT_NOPARACHUTE flag is set, it will install cleanup signal handlers for some commonly ignored fatal signals (like SIGSEGV).
Binds to C-function call in SDL.h:
extern DECLSPEC int SDLCALL SDL_Init(Uint32 flags)
Sdl Class | Tao.Sdl Namespace | SDL_InitSubSystem | SDL_Quit