package ocamlsdl

  1. Overview
  2. Docs
exception SDL_init_exception of string
type subsystem = [
  1. | `AUDIO
  2. | `CDROM
  3. | `JOYSTICK
  4. | `TIMER
  5. | `VIDEO
]
val init : ?auto_clean:bool -> [< `AUDIO | `CDROM | `EVENTTHREAD | `EVERYTHING | `JOYSTICK | `NOPARACHUTE | `TIMER | `VIDEO ] list -> unit
val init_subsystem : subsystem list -> unit
val was_init : unit -> subsystem list
val quit : unit -> unit
val quit_subsystem : subsystem list -> unit
type version = {
  1. major : int;
  2. minor : int;
  3. patch : int;
}
val version : unit -> version
val string_of_version : version -> string
val getenv : string -> string
val putenv : string -> string -> unit
type rwops_in
val rwops_from_mem : string -> rwops_in
val rwops_in_close : rwops_in -> unit
OCaml

Innovation. Community. Security.