yampa-glut-0.1.1.1: Connects Yampa and GLUT

Safe HaskellNone
LanguageHaskell98

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

Instances

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

Top level reaction signal function

actionIO :: IO () -> Action Source

Simple IO action that do not control mainLoop life-time

actionExit :: Action Source

Terminate mainLoop action