SDL-0.6.3: Binding to libSDL

Portabilityportable
Stabilityprovisional
Maintainerlemmih@gmail.com
Safe HaskellSafe-Infered

Graphics.UI.SDL.General

Description

 

Synopsis

Documentation

init :: [InitFlag] -> IO ()Source

Initializes SDL. This should be called before all other SDL functions.

withInit :: [InitFlag] -> IO a -> IO aSource

initSubSystem :: [InitFlag] -> IO ()Source

After SDL has been initialized with SDL_Init you may initialize uninitialized subsystems with SDL_InitSubSystem.

wasInit :: [InitFlag] -> IO [InitFlag]Source

wasInit allows you to see which SDL subsytems have been initialized

getError :: IO (Maybe String)Source

Returns a string containing the last error. Nothing if no error.