Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
SDL.Init
Documentation
initialize :: (Foldable f, Functor m, MonadIO m) => f InitFlag -> m () #
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 () #
Equivalent to
.initialize
[minBound
.. maxBound
]
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.