yampa-sdl2-0.0.3.1: Yampa and SDL2 made easy

Safe HaskellNone
LanguageHaskell2010

YampaSDL2

Contents

Synopsis

MainLoop

mainLoop :: Backend a AppOutput -> SF AppInput AppOutput -> IO () Source #

Starts the Yampa loop

Backend

data Backend a b Source #

Constructors

Backend 

Fields

Input

data AppInput Source #

Your main SF receives AppInput as input

SFs

Output

data AppOutput Source #

Your main SF needs to create an AppOutput

Constructors

AppOutput 

data Graphics Source #

Constructors

Graphics 

Fields

data Camera Source #

Constructors

Camera 

Fields

Instances

data RenderShape Source #

Constructors

RS 

Fields

data Sound Source #

Constructors

NotImplementedYet 

Shapes

data Shape Source #

Constructors

Rectangle 
Circle 
Triangle

Think of shapeCentre as a vector which is applied to all 3 points of the triangle

Image 

Fields

Instances

Eq Shape Source # 

Methods

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

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

Show Shape Source # 

Methods

showsPrec :: Int -> Shape -> ShowS #

show :: Shape -> String #

showList :: [Shape] -> ShowS #

Animation

data Animation Source #

Constructors

Animation 

Fields

module Linear.V2