| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Raylib.Util
Synopsis
- data WindowResources
- cameraDirectionRay :: Camera3D -> Ray
- whileWindowOpen :: (a -> IO a) -> a -> IO a
- whileWindowOpen_ :: (a -> IO a) -> a -> IO ()
- whileWindowOpen0 :: IO () -> IO ()
- setMaterialShader :: Model -> Int -> Shader -> Model
- inGHCi :: Bool
- class Freeable a where
Documentation
data WindowResources Source #
cameraDirectionRay :: Camera3D -> Ray Source #
Gets the direction of a camera as a ray.
Arguments
| :: (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.
Arguments
| :: Model | The model to operate on |
| -> Int | The index of the material |
| -> Shader | The shader to use |
| -> Model | The modified model |
Sets the shader of a material at a specific index (WARNING: This will fail if the index provided is out of bounds).
class Freeable a where Source #
Minimal complete definition
Nothing