SDL-0.6.5.1: Binding to libSDL

Copyright(c) David Himmelstrup 2005
LicenseBSD-like
Maintainerlemmih@gmail.com
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

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 a Source

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

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

quit :: IO () Source

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.