Safe Haskell | None |
---|---|
Language | Haskell98 |
- 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
display an animation impurely
:: Real b | |
=> Options | user options |
-> 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
:: 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 current time and state as inputs) |
-> IO () |
run a simulation impurely
:: 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 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 () |
:: 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 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 () |