Method SDL.init()
- Method init
void
init(int
flags
)- Description
Initializes SDL. This should be called before all other SDL functions.
- Parameter
flags
The flags parameter specifies what part(s) of SDL to initialize. It can be one of many of the following ORed together.
- 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 cdrom subsystem.
- SDL.INIT_JOYSTICK
Initializes the joystick subsystem.
- SDL.INIT_EVERYTHING
Initialize all of the above.
- SDL.INIT_NOPARACHUTE
Prevents SDL from catching fatal signals.
- SDL.INIT_EVENTTHREAD
Run event polling in a separate thread. Not always supported.
- See also