| 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 Graphics.UI.GLFW
- 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 Graphics.UI.GLFW
module Data.Map.Strict
data WindowConfig Source
A datatype to configure the window settings when creating an OpenGL context
using in the engine.startEngine
Constructors
| WindowConfig | |
Fields | |
defaultWindowConfig :: WindowConfig Source
The default for WindowConfig
getWindowWidth = 640 getWindowHeight = 480 getWindowFullscreen = False getWindowResizeable = False getWindowTitle = "Spice Application"
startEngine :: Game a => WindowConfig -> a -> IO () Source
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
A container for all of the states themselves. It is used as a Signal in the Input (which is necessary to use it within
Elerea's FRP network).InputContainer