Safe Haskell | None |
---|
- display :: Real b => Maybe ((Int, Int), (Int, Int)) -> String -> VisObject b -> IO ()
- animate :: Real b => Maybe ((Int, Int), (Int, Int)) -> String -> (Float -> VisObject b) -> IO ()
- animateIO :: Real b => Maybe ((Int, Int), (Int, Int)) -> String -> (Float -> IO (VisObject b)) -> IO ()
- simulate :: Real b => Maybe ((Int, Int), (Int, Int)) -> String -> Double -> world -> (world -> VisObject b) -> (Float -> world -> world) -> IO ()
- simulateIO :: Real b => Maybe ((Int, Int), (Int, Int)) -> String -> Double -> world -> (world -> IO (VisObject b)) -> (Float -> world -> IO world) -> IO ()
- play :: Real b => Maybe ((Int, Int), (Int, Int)) -> String -> 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 => Maybe ((Int, Int), (Int, Int)) -> String -> 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
:: Real b | |
=> Maybe ((Int, Int), (Int, Int)) | optional (window size, window position) |
-> String | window name |
-> VisObject b | object to draw |
-> IO () |
draw a static image
:: Real b | |
=> Maybe ((Int, Int), (Int, Int)) | optional (window size, window position) |
-> String | window name |
-> (Float -> IO (VisObject b)) | draw function |
-> IO () |
display an animation impurely
:: Real b | |
=> Maybe ((Int, Int), (Int, Int)) | optional (window size, window position) |
-> String | window name |
-> 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 | |
=> Maybe ((Int, Int), (Int, Int)) | optional (window size, window position) |
-> String | window name |
-> 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 | |
=> Maybe ((Int, Int), (Int, Int)) | optional (window size, window position) |
-> String | window name |
-> 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 | |
=> Maybe ((Int, Int), (Int, Int)) | optional (window size, window position) |
-> String | window name |
-> 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 () |