Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class GLES => BackendIO where Source
initBackend :: IO BackendState Source
createCanvas :: String -> BackendState -> IO (Canvas, Int, Int) Source
:: Int | Width |
-> Int | Height |
-> Canvas | |
-> BackendState | |
-> IO () |
Set the size of the canvas/window.
setCanvasTitle :: String -> Canvas -> BackendState -> IO () Source
Set the title of the window.
setCanvasResizeCallback :: (Int -> Int -> IO ()) -> Canvas -> BackendState -> IO () Source
setCanvasRefreshCallback :: IO () -> Canvas -> BackendState -> IO () Source
popInput :: a -> Canvas -> BackendState -> IO (Input a) Source
getInput :: a -> Canvas -> BackendState -> IO (Input a) Source
safeFork :: Ctx -> (IO () -> IO ThreadId) -> IO () -> IO ThreadId Source
:: Int | FPS (not necessarily used). |
-> Canvas | |
-> BackendState | |
-> IO () |
getTime :: BackendState -> IO Double Source
Time, in seconds.
terminateBackend :: BackendState -> IO () Source