sdl2-2.1.0: Both high- and low-level bindings to the SDL library (version 2.0.3).

Safe HaskellSafe
LanguageHaskell2010

SDL.Init

Synopsis

Documentation

initialize :: (Foldable f, Functor m, MonadIO m) => f InitFlag -> m () Source

Initializes SDL and the given subsystems. Do not call any SDL functions prior to this one, unless otherwise documented that you may do so.

You may call this function again with additional subsystems to initialize.

Throws SDLException if initialization fails.

initializeAll :: (Functor m, MonadIO m) => m () Source

Equivalent to initialize [minBound .. maxBound].

quit :: MonadIO m => m () Source

Quit and shutdown SDL, freeing any resources that may have been in use. Do not call any SDL functions after you've called this function, unless otherwise documented that you may do so.

version :: (Integral a, MonadIO m) => m (a, a, a) Source

The major, minor, and patch versions of the SDL library linked with. Does not require initialization.