chickadee » sdl2 » init!

init! #!optional flags-listprocedure

Initialize SDL. You should call this soon after your program starts, after calling set-main-ready!. See Ensuring Proper Clean Up.

flags-list defaults to '(everything). It must be a list of one or more init flag symbols:

  • 'timer
  • 'audio
  • 'video
  • 'joystick
  • 'haptic
  • 'game-controller
  • 'events
  • 'everything

See SDL_Init.

Signals an exception of kind (exn sdl2) if initialization fails.