Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- cameraDirectionRay :: Camera3D -> Ray
- whileWindowOpen :: (a -> IO a) -> a -> IO a
- whileWindowOpen_ :: (a -> IO a) -> a -> IO ()
- whileWindowOpen0 :: IO () -> IO ()
- setMaterialShader :: Model -> Int -> Shader -> Model
Documentation
cameraDirectionRay :: Camera3D -> Ray Source #
Gets the direction of a camera as a ray.
:: (a -> IO a) | The game loop. Its only argument should be the current application state, and it should return a new state. |
-> a | The initial application state. |
-> IO a | The application state after the last frame. |
Calls the game loop every frame as long as the window is open. For larger projects, instead of using this function, consider making a custom game loop for flexibility.
whileWindowOpen_ :: (a -> IO a) -> a -> IO () Source #
Same as whileWindowOpen
, but discards the final state.
whileWindowOpen0 :: IO () -> IO () Source #
Same as whileWindowOpen
, but without application state.