not-gloss-0.4.2: Painless 3D graphics, no affiliation with gloss

Safe HaskellSafe-Infered

Vis.Vis

Documentation

visSource

Arguments

:: Real b 
=> Double

sample time

-> a

initial state

-> (FullState a -> IO a)

sim function

-> (FullState a -> IO (VisObject b, Maybe Cursor))

draw function, can give a different cursor

-> (a -> IO ())

set camera function

-> Maybe (a -> Key -> KeyState -> Modifiers -> Position -> a)

keyboard/mouse callback

-> Maybe (a -> Position -> a)

motion callback

-> Maybe (a -> Position -> a)

passive motion callback

-> IO () 

type FullState a = (a, Float)Source