| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Raylib.Util
Synopsis
- data WindowResources
- cameraDirectionRay :: Camera3D -> Ray
- whileWindowOpen :: MonadIO m => (a -> m a) -> a -> m a
- whileWindowOpen_ :: MonadIO m => (a -> m a) -> a -> m ()
- whileWindowOpen0 :: MonadIO m => m () -> m ()
- 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
| :: MonadIO m | |
| => (a -> m 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. |
| -> m 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_ :: MonadIO m => (a -> m a) -> a -> m () Source #
Same as whileWindowOpen, but discards the final state.
whileWindowOpen0 :: MonadIO m => m () -> m () 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