yampa-sdl2-0.1.0.0: Yampa and SDL2 made easy

Safe HaskellNone
LanguageHaskell2010

YampaSDL2.InputOutput

Contents

Synopsis

Input

data AppInput Source #

Data type which stores all user inputs at the current time. You should not interact with this type directly, but use signal functions like anyKeyActive to get events.

Input Signals

Output

data AppOutput Source #

The Main signal function needs to return an AppOutput which tells SDL what to do.

Use output to create an AppOutput

Constructors

AppOutput 

Fields

Scene

data Scene Source #

Properties of the scene

Constructors

Scene 

Fields

Camera

data Camera Source #

Constructors

Camera 

Fields

RenderObject

data RenderObject Source #

Constructors

RO 

Fields

translate :: (Center -> Center) -> RenderObject -> RenderObject Source #

Move a RenderObject

data ShapeColour Source #

Used to set the colour of shapes like rectangle or circle and whether they are filled or not. This library uses Data.Colour to create colours.

Sound

data Sound Source #

Not implemented yet

Constructors

NotImplementedYet