reflex-gloss-0.2: 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 Source

Arguments

:: Display

Display mode.

-> Color

Background color.

-> Int

Maximum frames per second.

-> (forall t m. GlossApp t m)

A reflex function that returns a 'Behavior t Picture'

-> IO () 

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.