| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
FWGL.Backend.IO
Documentation
class GLES => BackendIO where Source
Methods
initBackend :: IO BackendState Source
createCanvas :: String -> BackendState -> IO (Canvas, Int, Int) Source
Arguments
| :: 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
Arguments
| :: Int | FPS (not necessarily used). |
| -> Canvas | |
| -> BackendState | |
| -> IO () |
getTime :: BackendState -> IO Double Source
Time, in seconds.
terminateBackend :: BackendState -> IO () Source