apecs-gloss-0.2.3: Simple gloss renderer for apecs

Safe HaskellNone
LanguageHaskell2010

Apecs.Gloss

Synopsis

Documentation

data Camera Source #

Constructors

Camera 
Instances
Eq Camera Source # 
Instance details

Defined in Apecs.Gloss

Methods

(==) :: Camera -> Camera -> Bool #

(/=) :: Camera -> Camera -> Bool #

Read Camera Source # 
Instance details

Defined in Apecs.Gloss

Show Camera Source # 
Instance details

Defined in Apecs.Gloss

Semigroup Camera Source # 
Instance details

Defined in Apecs.Gloss

Monoid Camera Source # 
Instance details

Defined in Apecs.Gloss

Component Camera Source # 
Instance details

Defined in Apecs.Gloss

Associated Types

type Storage Camera :: Type #

type Storage Camera Source # 
Instance details

Defined in Apecs.Gloss

cameraTransform :: Camera -> Picture -> Picture Source #

Apply a camera transformation to a picture

play Source #

Arguments

:: Has w IO Camera 
=> Display

Display mode

-> Color

Background color

-> Int

Desired FPS

-> System w Picture

Drawing function

-> (Event -> System w ())

Event handling function

-> (Float -> System w ())

Stepping function, with a time delta argument.

-> System w () 

foldDraw Source #

Arguments

:: (Get w IO c, Members w IO c) 
=> (c -> Picture)

Component render function.

-> System w Picture 

Renders a picture given a component rendering function.

foldDrawM Source #

Arguments

:: (Get w IO c, Members w IO c) 
=> (c -> System w Picture)

Component render function.

-> System w Picture 

Monadically renders a picture given a component rendering function.