Portability | non-portable |
---|---|
Stability | provisional |
Maintainer | Fumiaki Kinoshita <fumiexcel@gmail.com> |
Safe Haskell | None |
Provides the free embodiment.
Documentation
Draw (forall m. (Applicative m, Monad m, Picture2D m, Local m) => m a) | |
PreloadBitmap Bitmap a | |
FromFinalizer (FinalizerT IO a) | |
KeyStates (Map Key ButtonState -> a) | |
MouseButtons (Map Int ButtonState -> a) | |
MousePosition (Vec2 -> a) | |
TakeScreenshot (Bitmap -> a) | |
Bracket (Frame a) | |
SetFPS Int a | |
SetTitle String a | |
ShowCursor a | |
HideCursor a | |
ClearColor Color a | |
GetFPS (Int -> a) | |
ForkFrame (Frame ()) a |
class (Picture2D m, Local m, Keyboard m, Mouse m, FromFinalizer m) => FreeGame m whereSource
draw :: forall f. (Applicative f, Monad f, Picture2D f, Local f) => f a => m aSource
Draw an action that consist of Picture2D'
s methods.
preloadBitmap :: Bitmap -> m ()Source
bracket :: Frame a -> m aSource
Run a Frame
, and release all the matter happened.
forkFrame :: Frame () -> m ()Source
Run a Frame
action concurrently. Please do not use this function to draw pictures.
takeScreenshot :: m BitmapSource
Generate a Bitmap
from the front buffer.
setTitle :: String -> m ()Source
showCursor :: m ()Source
hideCursor :: m ()Source
clearColor :: Color -> m ()Source
FreeGame UI | |
(FreeGame m, Monad m) => FreeGame (IdentityT m) | |
(FreeGame m, Functor m) => FreeGame (F m) | |
(FreeGame m, Functor m) => FreeGame (Free m) | |
(FreeGame m, Monad m) => FreeGame (IterT m) | |
(FreeGame m, Monad m) => FreeGame (ListT m) | |
(FreeGame m, Monad m) => FreeGame (MaybeT m) | |
(FreeGame m, Monad m, Error e) => FreeGame (ErrorT e m) | |
(FreeGame m, Monad m) => FreeGame (ContT r m) | |
(FreeGame m, Monad m) => FreeGame (StateT s m) | |
(FreeGame m, Monad m) => FreeGame (StateT s m) | |
(FreeGame m, Monad m, Monoid w) => FreeGame (WriterT w m) | |
(FreeGame m, Monad m, Monoid w) => FreeGame (WriterT w m) | |
(FreeGame m, Monad m, Monoid w) => FreeGame (RWST r w s m) | |
(FreeGame m, Monad m, Monoid w) => FreeGame (RWST r w s m) |