reflex-gloss-0.1.0.1: An reflex interface for gloss.

Copyright(c) 2015 Jeffrey Rosenbluth
LicenseBSD-style (see LICENSE)
Maintainerjeffrey.rosenbluth@gmail.com
Safe HaskellNone
LanguageHaskell2010

Reflex.Gloss

Description

A Gloss interface for Reflex.

Synopsis

Documentation

playReflex :: Display -> Color -> Int -> (forall t m. GlossApp t m) -> IO () Source

Play the GlossApp in a window, updating when the Behavior t Picture changes.

type InputEvent = Event Source

Synonym for a Gloss Event to prevent name clashes.

type GlossApp t m = (Reflex t, MonadHold t m, MonadFix m) => Event t Float -> Event t InputEvent -> m (Behavior t Picture) Source

Convert the refresh and input events to a Behavior t Picture.