| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Vis.Interface
Synopsis
- display :: Real b => Options -> VisObject b -> IO ()
- animate :: Real b => Options -> (Float -> VisObject b) -> IO ()
- animateIO :: Real b => Options -> (Float -> IO (VisObject b)) -> IO ()
- simulate :: Real b => Options -> Double -> world -> (world -> VisObject b) -> (Float -> world -> world) -> IO ()
- simulateIO :: Real b => Options -> Double -> world -> (world -> IO (VisObject b)) -> (Float -> world -> IO world) -> IO ()
- play :: Real b => Options -> Double -> world -> (world -> (VisObject b, Maybe Cursor)) -> (Float -> world -> world) -> (world -> IO ()) -> Maybe (world -> Key -> KeyState -> Modifiers -> Position -> world) -> Maybe (world -> Position -> world) -> Maybe (world -> Position -> world) -> IO ()
- playIO :: Real b => Options -> Double -> world -> (world -> IO (VisObject b, Maybe Cursor)) -> (Float -> world -> IO world) -> (world -> IO ()) -> Maybe (world -> Key -> KeyState -> Modifiers -> Position -> world) -> Maybe (world -> Position -> world) -> Maybe (world -> Position -> world) -> IO ()
Documentation
draw a static image
Arguments
| :: Real b | |
| => Options | user options |
| -> (Float -> IO (VisObject b)) | draw function (takes time since start as input) |
| -> IO () |
display an animation impurely
Arguments
| :: Real b | |
| => Options | user options |
| -> Double | sample rate |
| -> world | initial state |
| -> (world -> VisObject b) | draw function |
| -> (Float -> world -> world) | state propogation function (takes time since start and state as inputs) |
| -> IO () |
run a simulation
Arguments
| :: Real b | |
| => Options | user options |
| -> Double | sample rate |
| -> world | initial state |
| -> (world -> IO (VisObject b)) | draw function |
| -> (Float -> world -> IO world) | state propogation function (takes time since start and state as inputs) |
| -> IO () |
run a simulation impurely
Arguments
| :: Real b | |
| => Options | user options |
| -> Double | sample time |
| -> world | initial state |
| -> (world -> (VisObject b, Maybe Cursor)) | draw function, can give a different cursor |
| -> (Float -> world -> world) | state propogation function (takes time since start 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 | |
| => Options | user options |
| -> Double | sample time |
| -> world | initial state |
| -> (world -> IO (VisObject b, Maybe Cursor)) | draw function, can give a different cursor |
| -> (Float -> world -> IO world) | state propogation function (takes time since start 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 () |