yampa-glut-0.1.0: Connects Yampa and GLUT

Safe HaskellSafe-Infered

FRP.Yampa.GLUT.Adapter

Synopsis

Documentation

adaptSimple :: String -> IO () -> Reaction -> IO ()Source

Adapter to connect FRP.Yampa with Graphics.UI.GLUT and does simpleInit.

adapt :: IO () -> Reaction -> IO ()Source

Adapter to connect FRP.Yampa with Graphics.UI.GLUT. Assumes that GLUT have been initialized.

simpleInit :: String -> IO ()Source

Simple initialization of GLUT with fixed frame rate 60 fps

data Action Source

Action to perform in response to something

type Reaction = SF (Event UI) (Event Action)Source

Top level reaction signal function

actionIO :: IO () -> ActionSource

Simple IO action that do not control mainLoop life-time

actionExit :: ActionSource

Terminate mainLoop action