|
| Graphics.UI.SDL.General | | Portability | portable | | Stability | provisional | | Maintainer | lemmih@gmail.com |
|
|
|
| Description |
|
|
| Synopsis |
|
|
|
| Documentation |
|
| init :: [InitFlag] -> IO () |
| Initializes SDL. This should be called before all other SDL functions.
|
|
| withInit :: [InitFlag] -> IO a -> IO a |
|
| initSubSystem :: [InitFlag] -> IO () |
| After SDL has been initialized with SDL_Init you may initialize
uninitialized subsystems with SDL_InitSubSystem.
|
|
| quitSubSystem :: [InitFlag] -> IO () |
|
| quit :: IO () |
|
| wasInit :: [InitFlag] -> IO [InitFlag] |
| wasInit allows you to see which SDL subsytems have been initialized
|
|
| getError :: IO (Maybe String) |
| Returns a string containing the last error. Nothing if no error.
|
|
| failWithError :: String -> IO a |
|
| unwrapBool :: String -> IO Bool -> IO () |
|
| unwrapMaybe :: String -> IO (Maybe a) -> IO a |
|
| unwrapInt :: (Int -> Bool) -> String -> IO Int -> IO Int |
|
| data InitFlag |
| Constructors | | InitTimer | | | InitAudio | | | InitVideo | | | InitCDROM | | | InitJoystick | | | InitNoParachute | | | InitEventthread | | | InitEverything | |
| Instances | |
|
|
| Produced by Haddock version 2.1.0 |