call-0.0: The call game engine

Copyright(c) Fumiaki Kinoshita 2014
LicenseBSD3
MaintainerFumiaki Kinoshita <fumiexcel@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Call.Component

Description

 

Documentation

class Mouse f where Source

Methods

cursorEvent :: Vec2 -> f () Source

scrollEvent :: Vec2 -> f () Source

mouseButtonEvent :: Int -> Bool -> f () Source

Instances

class Keyboard f where Source

Methods

keyEvent :: Key -> Bool -> f () Source

Instances

class Graphic e where Source

Methods

pullGraphic :: Time -> e (Picture ()) Source

Instances

class Audio e where Source

Methods

pullAudio :: Time -> Int -> e [V2 Float] Source

Instances

data PullGraphic a Source

Constructors

PullGraphic !Time (Picture () -> a) 

data PullAudio a Source

Constructors

PullAudio !Time !Int ([V2 Float] -> a) 

data KeyEvent a Source

Constructors

KeyEvent !Key !Bool a