|
Exception
exception SDL_init_exception of string
Init flag type
type init_flag = | TIMER
init flag for the timer subsystem.
| AUDIO
init flag for the audio subsystem.
| VIDEO
init flag for the video subsystem.
| CDROM
init flag for the cdrom subsystem.
| JOYSTICK
init flag for the joystick subsystem.
| NOPARACHUTE
Don't catch fatal signals
| EVENTTHREAD | EVERYTHING
init flag for initialize all subsystems
|
val init : init_flag list -> unit
Initialize the SDL library. This should be called before all other SDL functions. The flags parameter specifies what part(s) of SDL to initialize.
val init_with_auto_clean : init_flag list -> unit;;
Initialize the SDL library with automatic call the the quit
function at normal program termination
val quit : unit -> unit;;
quit
shuts down all SDL subsystems and frees the resources allocated
to them. This should always be called before you exit.