| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
FRP.Spice
Description
This module re-exports some other modules in the spice library so that you needn't import all of them explicitly.
- module Data.Map.Strict
- data WindowConfig = WindowConfig {}
- defaultWindowConfig :: WindowConfig
- startEngine :: Game a => WindowConfig -> a -> IO ()
- data Input = Input {}
- type DeltaTime = Float
- class Game a where
Documentation
module Data.Map.Strict
data WindowConfig
A datatype to configure the window settings when creating an OpenGL context
using in the engine.
startEngine
Constructors
| WindowConfig | |
Fields | |
Instances
| Eq WindowConfig | |
| Read WindowConfig | |
| Show WindowConfig | |
| Default WindowConfig | A default instance for |
defaultWindowConfig :: WindowConfig
The default for WindowConfig
getWindowWidth = 640 getWindowHeight = 480 getWindowFullscreen = False getWindowTitle = "Spice Application"
startEngine :: Game a => WindowConfig -> a -> IO ()
Starting the spice engine with the parameters prescribed in the
. It updates and renders the WindowConfig automatically so all
you need to to is set up the Game and make a datatype with an
instance of WindowConfig.
Game