| Safe Haskell | Safe-Infered |
|---|
Vis.Interface
- display :: Real b => VisObject b -> IO ()
- animate :: Real b => (Float -> VisObject b) -> IO ()
- animateIO :: Real b => (Float -> IO (VisObject b)) -> IO ()
- simulate :: Real b => Double -> world -> (world -> VisObject b) -> (Float -> world -> world) -> IO ()
- simulateIO :: Real b => Double -> world -> (world -> IO (VisObject b)) -> (Float -> world -> IO world) -> IO ()
- play :: Real b => Double -> world -> (world -> VisObject b) -> (Float -> world -> world) -> (world -> IO ()) -> Maybe (world -> Key -> KeyState -> Modifiers -> Position -> world) -> Maybe (world -> Position -> world) -> Maybe (world -> Position -> world) -> IO ()
- playIO :: Real b => Double -> world -> (world -> IO (VisObject b)) -> (Float -> world -> IO world) -> (world -> IO ()) -> Maybe (world -> Key -> KeyState -> Modifiers -> Position -> world) -> Maybe (world -> Position -> world) -> Maybe (world -> Position -> world) -> IO ()
Documentation
Arguments
| :: Real b | |
| => Double | sample rate |
| -> world | initial state |
| -> (world -> VisObject b) | draw function |
| -> (Float -> world -> world) | state propogation function (takes current time and state as inputs) |
| -> IO () |
run a simulation
Arguments
| :: Real b | |
| => Double | sample rate |
| -> world | initial state |
| -> (world -> IO (VisObject b)) | draw function |
| -> (Float -> world -> IO world) | state propogation function (takes current time and state as inputs) |
| -> IO () |
run a simulation impurely
Arguments
| :: Real b | |
| => Double | sample time |
| -> world | initial state |
| -> (world -> VisObject b) | draw function |
| -> (Float -> world -> world) | state propogation function (takes current time and state as inputs) |
| -> (world -> IO ()) | set where camera looks |
| -> Maybe (world -> Key -> KeyState -> Modifiers -> Position -> world) | keyboard/mouse press callback |
| -> Maybe (world -> Position -> world) | mouse drag callback |
| -> Maybe (world -> Position -> world) | mouse move callback |
| -> IO () |
Arguments
| :: Real b | |
| => Double | sample time |
| -> world | initial state |
| -> (world -> IO (VisObject b)) | draw function |
| -> (Float -> world -> IO world) | state propogation function (takes current time and state as inputs) |
| -> (world -> IO ()) | set where camera looks |
| -> Maybe (world -> Key -> KeyState -> Modifiers -> Position -> world) | keyboard/mouse press callback |
| -> Maybe (world -> Position -> world) | mouse drag callback |
| -> Maybe (world -> Position -> world) | mouse move callback |
| -> IO () |